What also worked for my DJ-player was precalculating the waveform and saving it in a separate file. You might not need all the data, making loading after calculation faster and you could also do some FFT for frequency detection. Takes about 6...
Hi guys,
I finally managed to finish and release my DIY synthesizer project, hope it is of use or inspiration to anyone!
TeensyMix synth is an 8-voice polyphonic synthesizer based on the Teensy 4.1 development board. It is designed to be an...
Great news. Don’t forget to wrap file.close() as well…
AudioPlaySdWav is usable in simple applications, but not really for 8 voices, and certainly not if you want to do other file access while streaming. That’s because it only reads tiny chunks...
Thank you, it worked.
I used AudioPlaySdResmp as a drop-in replacement for AudioPlaySdWav and wrapped SD.open(...) and file.read(...) with the mentioned calls.
I'm noticing some distortion on my samples that I have to look into, but otherwise the...
Just the latest TeensyVariablePlayback library should do it, but you must wrap all SD filesystem accesses with calls to AudioEventResponder::disableResponse() and AudioEventResponder::enableResponse() - see the FileAccess example.
“Best practice” is to post a short sketch that someone else can compile and try out, using only the Arduino IDE and minimal hardware.
There are a couple of libraries capable of streaming multiple audio files from SD card while also doing other...
Thanks for the reply, in the mean time I went down the rabbit hole of reading this thread, which seems to discuss this exact topic: https://forum.pjrc.com/index.php?threads/attempting-non-blocking-concurrent-sd-read-write-access.75896/
I will...
I'm implementing a sequencer on the Teensy 4.1.
While the sequencer is playing back up to 8 voices I'd like to generate the waveform of the selected sample.
I'm using `SD.open` to open the file and process the samples in batches of 128 samples to...