lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
695 stars 60 forks source link

Add a trigger input to the line unit generators #167

Open colinbdclark opened 8 years ago

colinbdclark commented 8 years ago

Currently, there's no way to trigger a flock.ugen.line or flock.ugen.xLine to restart once it's finished, or to delay its start until a particular time.

We should add a new trigger input to them both, defaulting to 1.0 so the current behaviour is retained, which allows lines to be triggered by a standard trigger signal.

Of course this is possible now by using a line-shaped envelope with flock.ugen.envGen instead, but the line unit generators are so simple and easy to use that it seems justified to add this feature to them as well.