processing / processing-sound

Audio library for Processing built with JSyn
https://processing.org/reference/libraries/sound/
GNU Lesser General Public License v2.1
149 stars 50 forks source link

update AudioSample #92

Open trackme518 opened 11 months ago

trackme518 commented 11 months ago

Allow reference of new instance of AudioSample so we can call .amp() function on it. 385537290_1713129859097902_6896483319543280360_n 405592024_1154903345470799_7816452084975749997_n

kevinstadler commented 11 months ago

Hello,

thanks for the pull requests! As you probably saw this is some old code where I could never make up my mind about how to return from the method... I'm happy to merge your changes, only I don't think the code currently compiles because the return type of play() will need to be changed from void to AudioSample?

By the way there is a whole audiosample-playmodes branch which adds the option to control what happens when calling play() on a sample that is already playing, if this would be interesting for you I will try to get it merged soon...

Best!