![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: random freq on each loop of a sample |
SSC Administrator |
![]() ![]() ![]() This post on tweaky includes an example Sound that might be useful. Maybe some of you have come up with alternative solutions? Question (or Task) I have a sample I want to loop seamlessly at a random frequency/pitch every time the sample loops again. So I use the SampleFileDuration? to generate a random number that I multiply by the frequency of my sample. But the duration (length) of my sample changes according to its frequency and so when it triggers the sample again with a different pitch, my sample has either already looped again or it's still playing... Solution(s) In this example, I used SoundToGlobalControllers to generate the random duration scale factor and !Gate for the Sample. !Gate nextRandom abs which gives a scale factor between 0 and 1. To get a scale factor between 0 and 2, you could instead use !Gate nextRandom + 1 Instead of checking the Loop box, I generate a !Gate using: ('count.aif' sampleFileDuration * !DurScale) s tick This generates a gate once every (scaled) duration of the sample. IP: Logged |
SeanFlannery Member |
![]() ![]() ![]() in this example I like !Gate nextRandom abs * n where n is an integer It shows off good sounding sample playback at different rates. $AUD 0.02 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.