Cabbage Logo
Back to Cabbage Site

Gain and Pitch

I am trying to add a simple gain knob and a simple pitch knob to my synth but i can find the names i have to use in out.

if anybody can tell me that would be great.

Atleast for the gain knob, you can use a normal slider (knob) and multiply the value from the slider with the output.

So something like this:

kGain chnget “Gain”

outs a1 * kGain, a2 * kGain

The pitch depends on how you are generating the signal I suppose? What opcode are you using for the oscillator? with the opcode “oscil” you can multiply the kcps (frequency) with a knob the same way you do it with gain.

vco2PitchGainExample.csd (853 Bytes)

Here’s an example.