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

Thread: Recording while playback

  1. #1
    Junior Member
    Join Date
    Nov 2020
    Location
    Kyiv, Ukraine
    Posts
    3

    Recording while playback

    Hi guys,
    so I'm trying to build a looper with a function of overdubbing tracks, which means I have to record while the sound is playing. I had no luck with using SD card for that, and looks like the SD library does not support reading and writing simultaneously.
    But is that true for SerialFlash library too?
    Is there any other way I could achieve simultaneous recording and playback?

    Thank you!

  2. #2
    Junior Member
    Join Date
    Nov 2020
    Location
    Kyiv, Ukraine
    Posts
    3
    It probably doesn't matter, but I've been trying this with Teensy 3.6 and Audio Adaptor.
    This thread gives the most definite answer about SD card capability, and this was tested by me as well. But so far I couldn't find anything regarding simultaneous reading-writing to Flash.

  3. #3
    Junior Member
    Join Date
    Aug 2017
    Location
    Helsinki, Finland
    Posts
    7
    I've been working on the same thing today (looper with overdub using serial flash) and got it working. I'll post some code or tutorial later, but basically what I did:
    - I have three erasable files
    - One file is recording
    - Another one is playing
    - A third one gets erased

    Each loop I'm just cycling through the files and changing which one is getting recorded/played/erased.

    I had to do it like this since the erasing is quite slow. Probably also doable with two files, but it depends on how large files do you want to have. Meaning how long of a loop you are able to record.

    I'm getting a lot of noise at the moment though and it really adds up with the overdubbing, but I think it's just my mic. I'll try with another mic or the line input to see if that makes things better.

  4. #4
    Junior Member
    Join Date
    Nov 2020
    Location
    Kyiv, Ukraine
    Posts
    3
    Thanks, mnstri!
    That gives me hope, and I'd really love to see how it goes and take a look at your code eventually.
    I'll try setting up my own thing meanwhile.

  5. #5
    Junior Member
    Join Date
    Aug 2017
    Location
    Helsinki, Finland
    Posts
    7
    My student made a tutorial about this: https://create.arduino.cc/projecthub...ing-box-3224e4. I think the LEDs get out of sync in this version when the erasing happens, but the audio looping works smoothly.

    I'm still planning on making some video tutorial about this since a lot of people seem to be interested in doing this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •