Cabbage Logo
Back to Cabbage Site

P value * k values

Can you * multiply a p value by a k value say for example
Slider channel (“detune”), range(0.5, 1.5, 1, 1, 0.01)

kdetunevalue = chnget "detune"

asig vco2 p5, p4 * kdetunevalue

Yes, p value are basically i-rate value passed from a score, or MIDI event. And you are free to multiply them by whatever you like. But the issue with your code is the mixture of traditional and function syntax. It has to be one or the other I’m afraid. So either:

kdetunevalue = chnget:k("detune")


kdetunevalue chnget "detune"