Controlling function with floats?
I'm wanting to treat function as an attack/decay generator, where I can control the length of the attack and the length of the decay with MIDI knobs, by (I guess) having knob 1 control the x coordinate of the end of attack, and knob 2 control the x coordinate of the end of decay. Can't seem to figure out how to make any function plot move with numbers though
Look at the help files and reference pages of objects you want to use (right click on the object). They explain almost everything.
To set the position of a point in [function] you can send it a list. The first value is the number of the point you want to move, starting at 0. The second value is x (horizontal) and the third value is y (vertical). See the patch below.
In the example, the horizontal x axis is set to 0-127 (like for MIDI) and the vertical y axis is set to 0.-1. The dials have a range of 1-126 to avoid overlapping endpoints which can make problems.