thestk / stk

The Synthesis ToolKit in C++ (STK) is a set of open source audio signal processing and algorithmic synthesis classes written in the C++ programming language.
https://ccrma.stanford.edu/software/stk/
Other
1.02k stars 181 forks source link

SineWave object that reacts to key presses #138

Open ladmeyer opened 1 year ago

ladmeyer commented 1 year ago

What would be the simplest way to get a sine wave to play while a key is held and then stop once it is released? Right now, I'm using SineWave and RtWvOut, and am running into audio buffer underrun errors. Thanks for the library!!

ladmeyer commented 1 year ago

guess what? I just figured this out -- referring to the crtsine.cpp in the examples folder was helpful.