I’m attempting to build a delay pedal that does only one thing: when you stomp the button, it plays back 30 seconds of high quality audio from 30 seconds ago.

I think it would need to be continuously overwriting some type of eeprom array. Does anyone have any advice?

I bought a few Teensy audio shields to try and prototype it. But I obviously need to understand how to achieve such a continuous rewrite on EEPROM or some other form of quick rewrite memory.

If someone could guide me to the right information, I’d be most grateful.

  • junderwood@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Have you looked at the audio libraries that are available?

    https://www.pjrc.com/teensy/td_libs_Audio.html

    That content seems old but maybe it’ll help or at least provide some direction. Personally I’ve only done predetermined audio file playback with a button press, but constant recording sounds like something that would be possible. True constant rewriting on the EEPROM is from what I understand not the best idea because of how quick you’d wear it out. A fast sd card might be the ticket there. Good luck, it sounds like a fun project!

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Don’t use an eeprom for that, just use RAM. For 30 seconds of HiFi stereo, you need 30480002*2 bytes, roughly 6MB. A Raspberry Pi like computer should have no problems with that, and there are high-end codecs available.

      • Treczoks@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Good luck finding a chip that is capable of storing the needed amount of data while being easily accessible and not wearing out quickly. SRAM could do this, but you are quickly approaching the USD100 mark for a single chip here. That’s why people use the way cheaper DRAM chips, which are used by bigger chips, I.e. the upper class of ARM chips. As far as I know, there are no sub-ARM class controllers with a DRAM interface.

        What you could do is use an FPGA like an Efinix Trion T20 or bigger, which has at least one version with a DDR memory interface. But that might be a bit big for a beginner to work with - even seasoned programmers fail at grocking HDLs.

  • Baron Von J@lemmy.worldM
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I’ve no idea how to help but it sounds like a neat project and would love to hear it after it’s done! I know there’s a few people in this community posting their DIY pedals so hopefully they chime in.