teensy 4 audiomemory maximum delay is about 2.5seconds

Status
Not open for further replies.

mattvenn

Member
Hi,
I'm working on an effects unit with the teensy4.

I see this fairly recent commit by Paul that should allow delays up to 4 seconds.

https://github.com/PaulStoffregen/Audio/commit/bbcfe3bd201d86aa7aa0e87d97c989f4259465de

I set AudioMemory(1300), which should give me 3.9s of delay. When the program starts and delay is set to 0, the memory usage reported by AudioMemoryUsageMax() is 18.

As I increase the length of the delay the sound starts going wrong about 2.5s. I'm also monitoring AudioMemoryUsageMax(), which tops out at 896 at this point.

Any ideas what's happening? Code is here: https://github.com/mattvenn/teensy-audio-fx

I'm using platformio with following version:

teensy @ 4.7.0
framework-arduinoteensy @ 1.149.
 
Hi Paul, thanks for the reply.
Yes I can reproduce it with those versions.

Screenshot from 2020-02-12 10-00-42.jpg
 
Can you help me to reproduce it in Arduino? Please post that test program here on a forum message, so I can just copy it into Arduino and upload to a Teensy here to reproduce the issue.

I did look briefly at your github link. But it is many files. I looked at several files but did not see any which look the same as the code in this screenshot.

Please post (here on the forum) the exact code I should try in Arduino, so when I look into this I can recreate the problem quickly without guesswork.
 
Ok, I've put this on my list of issues to investigate. I can't promise I'll get to it quickly, but it is on the list so I won't forget.
 
no problem. I actually thought I was more likely to be me doing something wrong. Would you prefer I open an issue on github?
 
Try changing the mixer1 amplitudes to this:
Code:
  mixer1.gain(0,0.5);
  mixer1.gain(1,0.5);
so that the total gain through the mixer is 1.

Pete
 
Status
Not open for further replies.
Back
Top