Samples sounds unexpectedly stretched

I am trying to follow along the music creation of aerodynamic as mentioned here.

when i download the sample and play, the sample sounds stretched.

maquillage = "~/il-macquillage-lady.wav"
load_sample maquillage
sample maquillage

To bring it to the original rate, i am having to use:

sample "/Users/vaibhvmadhavan/Documents/funk.mp3",rate:3

Why is it?

Hi
do you know the original bpm of that sample? Sonic Pi defaults to 60bpm unless you call

use_bpm

PD-Pi

And there’s also:

use_sample_bpm
1 Like

Is that the only code you are running? I downloaded the sample and ran the code and it sounds fine on my setup without the rate change.

Thanks @emlyn and @brendanmac. The very same code code works now/today without any tweaks to rate. didnt do anything different :smiley:

1 Like

Sonic Pi shouldn’t change the rate of any sample unless you use the :beat_stretch, :rate or :rpitch opts. The BPM should have no effect whatsoever unless you’re using the :beat_stretch which will stretch/shrink the sample (and thus modify the rate) to match the specified number of beats.

Any other behaviour is definitely a bug - and I’m not currently aware of any such reports that have been verified on any platform. However, that said, with an incorrectly configured sound card, strange rate-like issues can occur if the hardware’s sample rate doesn’t match the hardware rate that is reported to SuperCollider (the internal synth engine). Perhaps this happened in your case?

Glad you got it working though.

I’ve run into weirdness in the past when my system settings for soundcard sample rate differ from the software sample rate. You know, 48k vs. 44.2.
(Though I’ve not experienced this with Sonic Pi.)
Might be worth a look.