TonicAudio / Tonic

Easy and efficient audio synthesis in C++
The Unlicense
523 stars 63 forks source link

Added ControlCallback #231

Closed morganpackard closed 10 years ago

morganpackard commented 11 years ago

ControlCallback object. Constructor takes a pointer to a synth and a lambda function. The constructor have been designed with out the pointer to the synth, but forcing this ensures that the object will be added to the Synth's auxControlGenerators_ list, and will be ticked whether or not it's part of the synthesis tree.

morganpackard commented 11 years ago

Forgot to add the files.

ndonald2 commented 11 years ago

@morganpackard Except for the empty constructor/destructor, this looks great. Feel free to merge it yourself.