![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: Sample sound looping question for Kyma experts... |
JackRosete Member |
![]() ![]() ![]() I'm an absolute beginner so forgive me if this question seems naive! I'm using a SAMPLE sound to playback a loop in real-time. I have checked the SETLOOP option. I would like to set LOOPSTART not to a specific point within the sample, but to the current playback position whenever a keydown is received. I would like LOOPEND to be set as LOOPSTART + a delay in milliseconds - the specific delay time depending on the note number of that keydown, for example 100ms for nn60, 200ms for nn61 etc. Is this achievable within the SAMPLE sound or is there another way to constuct this scenario in Kyma? Thanks in advance! Jack IP: Logged |
SSC Administrator |
![]() ![]() ![]() Say your sample was named 'myVoice.aif'. Then in the Start field, you could use: !KeyDown sampleAndHold: (1 repeatingRamp: 'myVoice.aif' sampleFileDuration s) Then in the End field you would add the duration of your blip as a fraction of the total duration, for example (2 ms / ('myVoice.aif' sampleFileDuration s)) + (!KeyDown sampleAndHold: (1 repeatingRamp: 'myVoice.aif' sampleFileDuration s)) --- !KeyDown sampleAndHold: (1 repeatingRamp: 'myVoice.aif' sampleFileDuration s) into the Value field of a Constant. Then press Enter to rename the Constant to 'StartPos'. Then copy and paste the Constant into the Start field and the End field where you currently have the full expression. IP: Logged |
SSC Administrator |
![]() ![]() ![]() "the specific delay time depending on the note number of that keydown, for example 100ms for nn60, 200ms for nn61 etc." Just saw this additional constraint. So, in place of the 2 ms in the previous post, you could use: ((!KeyNumber - 59) * 100 ms) That would give you (60 - 59 * 100 ms) = 100 ms (61 - 59 * 100 ms) = 200 ms, etc IP: Logged |
JackRosete Member |
![]() ![]() ![]() Thanks very much : ) Thoroughly enjoying Kyma so far! Jack 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.