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 calculate 200 sample long waveform array for the audio file.
However, if I do this repeatedly - changing the selected sample - I get audio dropouts.
I minimized my code to the point where I only open the selected file and still get the dropouts, so my understanding is that I should come up with a better way to read the same file from multiple file handlers.
What are some of the best practices related to reading the same file with different offsets simultaneously?
I've seen some people playing back the same sample polyphonically, so I think it should be possible. Any help would be greatly appreciated.
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 calculate 200 sample long waveform array for the audio file.
However, if I do this repeatedly - changing the selected sample - I get audio dropouts.
I minimized my code to the point where I only open the selected file and still get the dropouts, so my understanding is that I should come up with a better way to read the same file from multiple file handlers.
What are some of the best practices related to reading the same file with different offsets simultaneously?
I've seen some people playing back the same sample polyphonically, so I think it should be possible. Any help would be greatly appreciated.