|
Swadge ESP32-S2
2.0.0
APIs to develop for the Magfest Swadge
|
Data Fields | |
| struct { | |
| const uint8_t * | data |
| The raw sample data. | |
| uint32_t | length |
| The number of samples in the data. | |
| uint32_t | rate |
| The number of samples per second of raw sample data. | |
| uint32_t | loopStart |
| The sample number to return to after reaching the loop end. | |
| uint32_t | loopEnd |
| The sample number after which to return to the loop start. | |
| uq16_16 | baseNote |
| The sample's base frequency. | |
| int8_t | tune |
| The sample's fine tuning. | |
| uq24_8 | error |
| The number of fractional samples remaining. | |
| uint32_t | loopsRemaining |
| The number of loops remaining before the voice will transition to the released state. | |
| uq24_8 | sampleRateRatio |
| The pre-calculated samples-per-second. | |
| } | sample |
| struct { | |
| waveFunc_t | func |
| synthOscillator_t | oscillator |
| } | wave |
| struct { | |
| percussionFunc_t | func |
| uint32_t | scratch [4] |
| } | playFunc |