

See the Teensy Audio Library documentation at for information on using AudioConnection objects to connect the AudioSynthWavetable object to mixers and audio output drivers for your specific Teensy board.

The instrument_data object can be found in the _samples.h file that was included from the output files from the SoundfontDecoder (see Including a Soundfont File in an Arduino Sketch above).īefore using an AudioSynthWavetable Object to synthesize music, it will be necessary to set up some audio connection objects. Locating the instrument_data Within the Decoded FilesĪn instance of the AudioSynthWavetable object requires a complete instrument_data object to be passed to the wavetable object. Once these files are in the same directory, within the Arduino sketch code, #include "\_samples.h" must be added to the top of the sketch in order to use it with the wavetable class. h files) need to be placed in the same directory as the Arduino sketch. When creating a sketch that uses the AudioSynthWavetable class, the output files from the soundfont decoder (in the form of. Including a Soundfont File in an Arduino Sketch sf2 file to a usable format for the AudioSynthWavetable class. See SoundFont Decoder User-Guide for information on how to decode a. The AudioSynthWavetable.h and AudioSynthWavetable.cpp files need to be in your Arduino library folder.
