![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: sample loop in release | |
eben Member |
![]() ![]() ![]() how do i make a sample loop and keep looping after a trigger has occoured? for example: i have, say, a violin sample that i want to play via midi keyboard. the sample is 1 s long and then cuts off abruptly. i set it to loop [using the basic 'sample' prototype] between 0.5 s and 0.8 s. how do i get it to keep looping and have a release of, say, 3 s after each midi note is released, as opposed to playing up to the loop point and looping while Gate is positive, and then on midi note off playing until the end of the sample and stopping? IP: Logged | |
SSC Administrator |
![]() ![]() ![]()
Here is how to make it: Drag a Sample from the prototypes. Set the Sample's Gate field to !KeyDown + 0.5. This Sample is "on" and playing/looping when the key is up, since Gate is 0.5 (because !KeyDown is 0) and the Sample interprets positive Gates as meaning "on". When the key goes down, !KeyDown is -1 for 5 ms (to allow for envelope decay during voice stealing) and then becomes 1. This means the Gate is -0.5 and then 0.5, which causes the Sample to quickly turn off its output (when Gate is negative), and reset to the beginning (when Gate becomes positive). This means that we now have a Sample module that plays (with looping) whether the key is up or down, but resets when the key *goes* down. To this we add the "Drag&Drop AR" to the right of the Sample. The AR will silence the Sample output (which loops forever, independent of !KeyDown). Double click on the AR module, and set the Attack and Release times to what you need (say 1 ms attack and 3 s release). IP: Logged | |
Graham Breed Member |
![]() ![]() ![]() I did this by using the same Envelope for Gate and Scale. IP: Logged | |
pete Member |
![]() ![]() ![]() Graham Thats great, briliant and simple. Now that should go in the book of tips. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.