Forum Rule: Always post complete source code & details to reproduce any issue!
-
Junior Member
Changing the playback speed on Play Flash raw
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
-
Senior Member+

Originally Posted by
lsrichard
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.
-
Junior Member
I thought it might be difficult

Originally Posted by
Frank B
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.
-
Senior Member+
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules