Change reading speed of sample
Posted: Mon Jul 10, 2017 4:59 am
I thought this would be trivial to achieve but I can't seem to figure out how to go about it...
Basically I would like to record a 1s sample and slow it down, or speed it up. Just like a tape recorder, where the pitch also changes.
The best I could get until now is using the method as shown here:
If someone could give me some pointers on how to get the same for 1 sec, that would be great
Basically I would like to record a 1s sample and slow it down, or speed it up. Just like a tape recorder, where the pitch also changes.
The best I could get until now is using the method as shown here:
This code was posted by Frank for a reverse delay. Changing the ramp rate gives me the results I want, but it only allows for a 1/4s long sample.frank wrote:Code: Select all
mem delay 32767 skp run, loop sof 0, -0.25 wrax rmp0_rate,0 wrax rmp0_range, 0 loop: sof 0,0 rdax adcl, 1.0 wra delay, 0.0 cho rdal, rmp0 wrax addr_ptr, 0 rmpa 1.0 wrax dacr, 1.0 wrax dacl, 0.0
If someone could give me some pointers on how to get the same for 1 sec, that would be great