Archive of the Gamebuino Classic forum (2014-2018), rebuilt from the pages kept by the Wayback Machine: only part of the topics and pages were captured. Read-only. Removal on request: hi@gamebuino.com.
More about instruments
Risike Tue Sep 29, 2015 8:21 am
I've read a lot of code about music management on the Gamebuino. I think all is ok for me except a little thing.
I don't understand how to create a new instrument.
When i look the Gamebuino Sound.cpp file I can see this :
const uint16_t squareWaveInstrument[] PROGMEM = {0x0101, 0x03F7};
const uint16_t noiseInstrument[] PROGMEM = {0x0101, 0x03FF};
But what are these numbers (0x0101, 0x03F7 and 0x03FF) ?
Thanks
I don't understand how to create a new instrument.
When i look the Gamebuino Sound.cpp file I can see this :
const uint16_t squareWaveInstrument[] PROGMEM = {0x0101, 0x03F7};
const uint16_t noiseInstrument[] PROGMEM = {0x0101, 0x03FF};
But what are these numbers (0x0101, 0x03F7 and 0x03FF) ?
Thanks