My project is to make a stand-alone drum machine with 30 sensors, each triggering a separate sound. I have a Teensy 3.5 and a Teensy audio shield.
I have successfully executed a number of tutorials and examples. I can get music to play from the SD card on the audio shield (from the audio library tutorial) and can get SimplePlayer to work with momentary switches playing sound files stored in the folder with the Arduino code. I have also made my own sound files for my project and formatted them with Wav2Sketch to make them *.cpp and *.h files. This all works fine.
The issue I have is that the Teensy does not have enough memory to store all of my audio files (*.cpp and *.h files).
From reading through the forum, it looks like you only play *.wav or *.raw files from the SD card. I’m unclear on this and wondering if I can store my *.cpp and *.h files on the SD card. Or do I need to have all of my sound files in wav or raw format on the SD card for my triggers to access?
Or should I purchase some additional flash memory so I can store all of my *.cpp and *.h files there. I’m not sure, but some information and/or advice would be appreciated.
And if someone can point me to some existing code with any kind of musical instrument where the sound files are on the SD card, that would be great. I wonder if that would cause latency.
Please note I am NOT wanting any MIDI in this project. This is a small, stand-alone project with nothing connected to the sensors other than the Teensy, it’s audio shield a battery and powered speaker.
I have successfully executed a number of tutorials and examples. I can get music to play from the SD card on the audio shield (from the audio library tutorial) and can get SimplePlayer to work with momentary switches playing sound files stored in the folder with the Arduino code. I have also made my own sound files for my project and formatted them with Wav2Sketch to make them *.cpp and *.h files. This all works fine.
The issue I have is that the Teensy does not have enough memory to store all of my audio files (*.cpp and *.h files).
From reading through the forum, it looks like you only play *.wav or *.raw files from the SD card. I’m unclear on this and wondering if I can store my *.cpp and *.h files on the SD card. Or do I need to have all of my sound files in wav or raw format on the SD card for my triggers to access?
Or should I purchase some additional flash memory so I can store all of my *.cpp and *.h files there. I’m not sure, but some information and/or advice would be appreciated.
And if someone can point me to some existing code with any kind of musical instrument where the sound files are on the SD card, that would be great. I wonder if that would cause latency.
Please note I am NOT wanting any MIDI in this project. This is a small, stand-alone project with nothing connected to the sensors other than the Teensy, it’s audio shield a battery and powered speaker.