Kyma Forum
  Kyma Support
  sample loop in release

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   sample loop in release
eben
Member
posted 09 January 2001 14:01         Edit/Delete Message   Reply w/Quote
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
posted 09 January 2001 16:28         Edit/Delete Message   Reply w/Quote

sampleReleaseLoop.kym

 
Attached to this response is an example Sound that will play a sample with looping during the release.

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
posted 13 January 2001 05:44         Edit/Delete Message   Reply w/Quote
I did this by using the same Envelope for Gate and Scale.

IP: Logged

pete
Member
posted 15 January 2001 12:01         Edit/Delete Message   Reply w/Quote
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c