I'm a bit hooked to TouchOSC nowadays, but now I want to take something that TouchOSC provides, i.e.
Default Pull and use it in a script.
The script uses
[else/multi.vsl] and it controls the amplitude of oscillators.
i'm using one message to set the amplitude of these 11 oscillators. they are set by throwing in a number:
0.5 0.125 0.083 0.062 0.05 0.042 0.036 0.031 0.028 0.025 0.023
but i wish for the numbers to go down, i.e. decay back to 0, in a lockstep fashion, i.e. if it is -0.001 per second, for instance, then each will be set to a lower and lower number until they all reach 0.
how do i accomplish this kind of "decay after 5 seconds or 10 seconds or 3 minutes" type thing, so that i can control, with a slider, how long it takes for the numbers to die off.
all of these numbers are sent out as a message to the multi.vsl object.
so, how do i take these numerous numbers, and then slowly ramp them down to 0?
if it helps, i'm trying to simulate tuning forks, or an acoustic instrument, well, not simulate, but the "release/decay" portion of it. i.e., "die after 5 seconds" or "die after 15 seconds".