Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Changing the playback speed on Play Flash raw

  1. #1
    Junior Member lsrichard's Avatar
    Join Date
    Mar 2020
    Location
    Costa Mesa, CA
    Posts
    7

    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

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,920
    Quote Originally Posted by lsrichard View Post
    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.

  3. #3
    Junior Member lsrichard's Avatar
    Join Date
    Mar 2020
    Location
    Costa Mesa, CA
    Posts
    7

    I thought it might be difficult

    Quote Originally Posted by Frank B View Post
    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.

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,920
    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
  •