[Stk] Polyphony and Stereo Panning with CrtSine
Adams, Alexander
aadams85 at uncc.edu
Wed Sep 19 14:44:31 PDT 2012
I need to generate two Sinewaves and assign outputs to them either by hard panning left and right or with selected outputs. i am able generate one sine wave and pane it either way by doing
*outputSamples++ = data->sine->tick();
*outputSamples++ = data->pan;
or
*outputSamples++ = data->sineTwo->tick();
*outputSamples++ = data->pan;
What is the best way to generate multiple tones and implement this simultaneously with a callback function or should i be using something from the instrument class...i am on a bit of a time constraint so help would be greatly appreciated.
Thanks
also i am new to Stk so details and/or sample code would be great.....Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20120919/a1afa153/attachment.html
More information about the Stk
mailing list