Ported the TFT visualizer to Teensy 4, which seems to work fine even when using hardware CS pin for the TFT. The audio shield uses the hardware CS pin for SD card so it doesn't conflict with the player audio playback.
Unlikely if your memory manager isn't horrible, but if you want to be particular about it, it's left as an exercise to the reader to do it without the heap :p
Hey thanks Chris! Incidentally I worked on ILI9341 based visualizer for the project, currently running on Teensy 3.6, but I'm about to port it to Teensy 4 :D I think it should be quite straightforward, just make sure...
The problem with VMicro is that it copies all the dependent files needed for the project to a temp dir when you first time compile it, which can take a long time. After the initial compilation the succeeding...
Any Teensy board should easily manage 8000 lines project since the program is stored in the MCU flash memory. The dynamic memory usage is more likely to become a bottleneck, i.e. how you do heap and stack memory...
You could use free OpenMPT to do some basic sample editing, setup sample loops (forward/bidi), resample & adjust note pitch, convert to mono & bit depth and also setup instruments (note-sample mapping, volume envelopes,...
Hurdy gurdy sounds like quite a simple instrument which should easily fit in Teensy 4 flash, but you would need to do some work to set it up properly, i.e. setup sample loops and potentially volume envelopes. Also...
Ah yes, I was wondering if it's a common practice to have "soft clamping" for audio. We do this similar stuff in graphics where we use different tone mapping operators to map HDR image to SDR range, which gives specific...
It sounds an overkill to have several tens of megabytes for an instrument. Do you have a separate wavetable for every single note on the instrument?
FYI, I posted to this another thread about wavetable synthesis on...
For polyphony all the audio channel mixing is done on Teensy and the final data is sent to a DAC (onboard DAC for <T4 or external). For mixing you need to make sure you don't under/overflow the final data or it'll cause...
To convert a c-string to double try using atof() function. Also %-operator doesn't work with floats (only ints like you found out) but you should use fmod() function
You can use Audio Adaptor Board (rev D) at least, that's directly pin compatible with Teensy 4. Not sure if you could also use the PT8211 Audio Kit as well with T4 if you wire it differently?
Probably not a good idea to try to sync your external data sampling frequency with output device interrupt frequency. You should instead hook your data sampling to a separate interrupt with required sampling frequency...
Ported my Arduino Music Player to the Teensy Audio Shield.
You can download the project at: https://github.com/JarkkoPFC/arduino-music-player
Cheers, Jarkko