From 9ab8a44358bb82822e02b42ca33d58bcd9430100 Mon Sep 17 00:00:00 2001 From: James Ball Date: Sat, 24 Feb 2024 09:39:05 +0000 Subject: [PATCH] Change default rotation of 3D rotate effect to be in the Y direction --- Source/PluginProcessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 724b5c9..181fd95 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -89,7 +89,8 @@ OscirenderAudioProcessor::OscirenderAudioProcessor() new EffectParameter("Rotate Z", "Controls the rotation of the object in the Z axis.", "rotateZ", VERSION_HINT, 0.0, -1.0, 1.0), } ); - rotateEffect->getParameter("rotateZ")->lfo->setUnnormalisedValueNotifyingHost((int) LfoType::Sawtooth); + rotateEffect->getParameter("rotateY")->lfo->setUnnormalisedValueNotifyingHost((int) LfoType::Sawtooth); + rotateEffect->getParameter("rotateY")->lfoRate->setUnnormalisedValueNotifyingHost(0.2); toggleableEffects.push_back(rotateEffect); toggleableEffects.push_back(std::make_shared( [this](int index, Point input, const std::vector& values, double sampleRate) {