Kyma Forum
  Kyma Sound Exchange
  random freq on each loop of a sample

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

next newest topic | next oldest topic
Author Topic:   random freq on each loop of a sample
SSC
Administrator
posted 16 May 2010 13:35         Edit/Delete Message   Reply w/Quote
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.
The random duration scale factor is:

!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
posted 19 May 2010 08:20         Edit/Delete Message   Reply w/Quote
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


Sean

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