lichen-community-systems / Flocking

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

Schedule-rate synths such as flock.synth.frameRate fail to obtain the correct sample rate. #154

Closed colinbdclark closed 8 years ago

colinbdclark commented 8 years ago

A regression occurred when Synths were refactored recently, causing synths that are configured at schedule rate to not correctly reflect their sample rate, and to pass that sample rate down to its unit generators.

This needs to be fixed by correctly overriding a Synth's audioSettings member and ensuring that flock.makeUGens prefers the synth's own audio settings, which may be different from those of the global environment.