C++ API - Pitch Chain
-
Hi guys!
Anyone can help on this??
Im using C++ API to create modules. But cannot figure out how to add modulators to the Pitch Chain. I've successfully created modules on the other chains (Gain, Midi, etc)Edit: I'm adding it correctly but cannot figure out how to manage Intensity
// Velocity mod successfully created auto veloMod = builder.create<hise::VelocityModulator>(sineSynth, raw::IDs::Chains::Gain); // lfo Mod can't make it work on Chains::Pitch auto lfoMod = builder.create<hise::LfoModulator>(sineSynth, raw::IDs::Chains::Pitch); pitchMod->setAttribute(LfoModulator::Frequency, 10, dontSendNotification);
-
pitchMod != lfoMod
-
@Christoph-Hart ahh, that was fixed. but that's not the problem
I want to add "any" modulator and pass the semitones value. but no luck.
Just trying LFO for instanceauto pitchMod = builder.create<hise::LfoModulator>(sineSynth, raw::IDs::Chains::Pitch); pitchMod->setId("pitchMod" + String(i+1)); pitchMod->setAttribute(0, 12, dontSendNotification);
-
Use setIntensity instead of setAttribute
-
@Christoph-Hart said in C++ API - Pitch Chain:
setIntensity
that was it!!!!!!!!!
Love the C++ API. having a lot of fun!!!!!!!!!!!!!
-
Yeah once you‘ve set it all up it becomes a joy, especially if you build redundant structures like, I don‘t know, Additive synths ;)
-
-
@hisefilo What is this magic?
-
@d-healey :) spectrums for a bunch of sine generators +envelopes + LFOs added programatically using the HISE C++ Api
-
@hisefilo Oooo, look forward to hearing the results!
-
following this cause you're so much further ahead than i am
-
-
@hisefilo Sounds great, well done! :)