Strength of envelope in Code Editor
-
How do you set the strength of an envelope or any modulator in general in code editor? The envelope itself just gives the following parameters
VCF1 Envelope: (AHDSR) - Parameter dump:
[0]: "Monophonic" | 0.00
[1]: "Retrigger" | 1.00
[2]: "Attack" | 325.00
[3]: "AttackLevel" | 0.00
[4]: "Hold" | 0.00
[5]: "Decay" | 2798.00
[6]: "Sustain" | -33.50
[7]: "Release" | 1.00
[8]: "AttackCurve" | 1.00
[9]: "DecayCurve" | 0.50
[10]: "EcoMode" | 1.00whats EcoMode btw?
const var VCF1Envelope = Synth.getModulator("VCF1 Envelope");
this is how I get the modulator to change attack, decay etc. but can't seem to acess the strength it has on the filter.
also, is there a way to set an initial attack level?
all the best
-
never mind the first question, I found it
VCF1Envelope.setIntensity(value);
-
@Morphoice The modulator intensity is not a generic parameter and must be set using the special method
https://docs.hise.audio/scripting/scripting-api/modulator/index.html#setintensity
-
@Christoph-Hart thanks, figured it out just a second ago. can you still tell me if there is a way to set an initial attack level or does the envelope always have to start at zero?
-
@Morphoice no there is no initial attack level (only the peak of the attack), for this you would use the intensity. If you‘re modulating the filter frequency, check the bipolar modulation chain this is much closer to how a analog synth modulates the filter.