Changing the playback speed on Play Flash raw

Status
Not open for further replies.

lsrichard

Member
Hi I am working on a MIDI sample playback module that is starting to work well.
My samples are way to large to be part of the sketch.
I have a set of multiplexed serial flash chips holding all the samples.
I am noticing the some of the samples banks are slightly out of tune.
Is there a way to vary the playback speed on the playFlashRaw object or modify the library to do so ?
Thanks
 
Hi I am working on a MIDI sample playback module that is starting to work well.
My samples are way to large to be part of the sketch.
I have a set of multiplexed serial flash chips holding all the samples.
I am noticing the some of the samples banks are slightly out of tune.
Is there a way to vary the playback speed on the playFlashRaw object or modify the library to do so ?
Thanks

Not out of the box. You would have to write code to do that. The playFlashRaw object does not support it.
 
I thought it might be difficult

Not out of the box. You would have to write code to do that. The playFlashRaw object does not support it.

I would think it would require modifying a library like serial flash or one of the audio libraries and would require a deep understanding of how playFlashRaw works and what it uses for timing.

Is it tied to a division of the chips master clock or something else ?
I know it is using something to determine this playback rate.
 
No, you only need to modify update() in play_sd_raw
For example if you (easiest case) want double speed, just skip every 2.nd sample.
If you want smaller steps.. well... use smaller steps.
You might need a lowpass-filter afterwards.




 
Status
Not open for further replies.
Back
Top