Hi there!
I’m brandy-spankin’ new to this - I started with the “play tone with a button” example, but now I want to use a slider to change the pitch of the instrument during performance. Is it possible to change a-rate variables with a slider?
what I have looks like this:
— Cabbage bits
vslider bounds(-20, 30, 100, 100), channel(“slider1”), text(“Tone 1”), range(100,800,100,1,1)
button bounds(10, 140, 40, 40), channel(“button1”), text(“1”), latched(0)
— Instrument
instr 1
aTone vco2 chnget:k(“button1”), chnget:a(“slider1”)
outs aTone, aTone
endin
— Score
f0 z
i1 0 z
This gives an error about wrong argument types. I’ve looked through the docs but they are rather voluminous. Can someone point me in the right direction? I’m probably missing something super simple.
Thanks!!