lichen-community-systems / Flocking

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

flock.ugen.valueChangeTrigger should support a resetOnChange option #159

Open colinbdclark opened 8 years ago

colinbdclark commented 8 years ago

Mapping triggers to user events can be tricky at times. To make it easier, flock.ugen.valueChangeTrigger should support an option similar to the resetOnNext option in flock.ugen.scheduler, which will reset the trigger's state to 0.0 for one sample, and then back to 1.0 whenever its source input is changed at all.