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

Thread: Teensy based DIY Eurorack module - AudioFreeze

  1. #1

    Teensy based DIY Eurorack module - AudioFreeze

    Thought I'd share this video I've just put together of my latest DIY project. It's a Teensy based Eurorack module, making use of the Audio Shield. It essentially samples small sections of live audio and lets you manipulate them.



    See www.cutlasses.co.uk for build details and links to sourcecode

  2. #2
    The code for this is handy if you want to see how to add your own effect in the audio library, thanks!

  3. #3
    Glad it was useful!

  4. #4
    Junior Member
    Join Date
    Feb 2016
    Posts
    11
    That's pretty cool! It reminds me of the atomizer feature on my Access Virus TI.
    https://www.youtube.com/watch?v=dseuZ9ZajEI

  5. #5
    Senior Member
    Join Date
    Dec 2014
    Posts
    134
    Sick! I'm going to check deeply into this for something I'm working on! Good work!

  6. #6
    Senior Member
    Join Date
    Dec 2014
    Posts
    134
    a few questions:
    what is the m_ before all of the variable names in the library for? what does it mean/stand for?
    what is impl mean in the names such as "set_bit_depth_impl" ?

    also, are your current settings using all of the internal memory available?

    I think I may modify this to work with external memory, I am hoping to find something that will work that is larger than the current expansion memory options for the mem delay object.

  7. #7

  8. #8
    Quote Originally Posted by MacroMachines View Post
    a few questions:
    what is the m_ before all of the variable names in the library for? what does it mean/stand for?
    what is impl mean in the names such as "set_bit_depth_impl" ?

    also, are your current settings using all of the internal memory available?

    I think I may modify this to work with external memory, I am hoping to find something that will work that is larger than the current expansion memory options for the mem delay object.
    m_ just means it's a member variable. _impl means implementation, it just splits the implementation of the function away from the calling function. This is done in this case because I was experimenting with where to calculate those values such as length and speed. I needed to set the desired values in the main loop (where the physical pots are read), but as they do a bunch of calculations, the audio interrupt could be generated during these functions, causing the code to jump before the calculations have finished (leaving the values in an unknown state). Rather than disabling interrupts as this point, I just store the desired values and then calculate the actual values inside the interrupt function. Another solution would be to sample the pots at a set rate, and then disable interrupts when calling the set_xx functions, in this case the _impl functions would not be necessary, the code will just live in the set_xx function.

    I'd be interested in seeing how you get on with using external memory. I want to experiment with using the SD card to buffer the audio (with a RAM buffer in between), not sure how well this will work yet.

  9. #9
    Senior Member
    Join Date
    Dec 2014
    Posts
    134
    Quote Originally Posted by unicornpower View Post
    Another solution would be to sample the pots at a set rate, and then disable interrupts when calling the set_xx functions, in this case the _impl functions would not be necessary, the code will just live in the set_xx function.

    I'd be interested in seeing how you get on with using external memory. I want to experiment with using the SD card to buffer the audio (with a RAM buffer in between), not sure how well this will work yet.
    I think for the impl, it might be more user friendly to boil things down to set.

    Also I had great Results in my tests using only the built in buffer and SD card for recording, the only issue was I had to generate a whole reversed version of the file to have smooth reverse playback, so I am thinking a clever mix of SD for long wave sampling and some regional buffering for the window playback.

    I'm still looking through all of your code, my plan is to hopefully adapt it to a more open ended grain sampler/lerp delay object that can be used in many different ways. As soon as I make some headway I will post here as I go.

  10. #10
    Quote Originally Posted by MacroMachines View Post
    I think for the impl, it might be more user friendly to boil things down to set.

    Also I had great Results in my tests using only the built in buffer and SD card for recording, the only issue was I had to generate a whole reversed version of the file to have smooth reverse playback, so I am thinking a clever mix of SD for long wave sampling and some regional buffering for the window playback.

    I'm still looking through all of your code, my plan is to hopefully adapt it to a more open ended grain sampler/lerp delay object that can be used in many different ways. As soon as I make some headway I will post here as I go.
    Great! Can't wait to see what you come up with.

  11. #11
    Senior Member
    Join Date
    Dec 2014
    Posts
    134
    I am reading your code to get an idea of how to do things, but writing my own from scratch only using it as a reference. I had this interesting idea to make a multifunction DSP buffer object that will be insanely flexible with methods that allow configuring it as a variable delay with or without lerp, multi taps, dub in amount, feedback amount/freeze, allpass/comb, nesting of all pass filters etc... based on my last year of heady DSP study. I will likely make it available to the library as soon as its good and working, but since I am working on a commercial product using it, it could be a little while to develop and test that it is optimized, full featured and flexible, and "bug free" hehehe :P

    Thank you for this great reference though, I find it easier to follow than some of the other objects and that is enabling me to get some good headway tonight!

    Cheers! and let me know if you are open to doing any freelance work, I have so many product designs and have always been actively trying to find some good DSP freelancers

    You can hit me up at contact at macromachines.net (I'm updating the website as part of the omnimod final release this weekend at knob con in Chicago!)

  12. #12
    Glad it was useful! I'm looking forward to the new Teensy (3.5 and 3.6) as they have considerably more memory, and audio built in, so no need to use the audio shield.

Posting Permissions

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