![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: loop length syntax question. |
keph Member |
![]() ![]() ![]() could somebody check this syntex? i am travelling sans capybara but am still trying to work out some ideas. i am trying to create a loop with is always 4096 samps long regardless of the file size referenced. using loop end in the the sample sound object. i am at (!start + ('filename' sampleFileDuration s samp - ('filename' sampleFileDuration s samp - 4096 samp))) i don't have a lot of experience yet going back and forth between samps, time and in this case a 0-1 range. i think the next step is to covert back to a 0-1 range number. which i think works to: (!start + ('filename' sampleFileDuration s samp * (('filename' sampleFileDuration s samp - ('filename' sampleFileDuration s samp - 4096 samp)) inverse) removeunits)) next: how would i add Pitch to this mess? so for example if the i want to raise or lower the pitch of the sample via the freq field, it would still retain 4096 samples in length. IP: Logged |
SSC Administrator |
![]() ![]() ![]() You should use: !Start + (4096 samp / 'aSampleFile' samplesFileDuration samp) This will keep the EndLoop 4096 samples ahead of the StartLoop (except when !Start is closer than 4096 samples from the end of the sample). As for the Frequency, the Frequency field is independent of the loop length, but if your intention is to use the Sample as an Oscillator on a wavetable 4096 samples long, you could use: default hz * !Pitch hz / 4096 samp s hz The reasoning is that "default hz" will play 4096 samples in 4096 samples of time (or "4096 samp s hz", roughly 10 hz at 44.1 khz sample rate), so you need to scale the default frequency by the ratio of how much larger the desired pitch is above the default pitch. (If you are trying to make a multi-wave like oscillator, you should look at the examples in the Kyma Sound Library. They are based on the Waveshaper and may produce better results and be easier to understand.) 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.