SamiPerttu / fundsp

Library for audio processing and synthesis
Apache License 2.0
800 stars 43 forks source link

Updated live_adsr.rs example to use var() for pitch bending. #20

Closed gjf2a closed 2 years ago

gjf2a commented 2 years ago

I reworked the live_adsr.rs example so that it handles MIDI pitch-bend messages. I implemented pitch bends by using the newly created Var node (#16, #18), and I thought this might be a nice demonstration of the Var node's capabilities, as well as how to use it in practice in a live multithreaded program. I placed references to this example in the documentation comments for adsr_live() and var(), so as to help those learning how to use the library see in a realistic program how they are used.