Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Go to the source code of this file.
Functions | |
int8_t | defaultDrumkitFunc (percussionNote_t drum, uint32_t idx, bool *done, uint32_t scratch[4], void *data) |
Produces sounds for a standard drumkit according to the General MIDI standard. | |
int8_t | donutDrumkitFunc (percussionNote_t drum, uint32_t idx, bool *done, uint32_t scratch[4], void *data) |
Produces sounds for the drumkit that was included on the King Donut synth swadge. | |
int8_t defaultDrumkitFunc | ( | percussionNote_t | drum, |
uint32_t | idx, | ||
bool * | done, | ||
uint32_t | scratch[4], | ||
void * | data ) |
Produces sounds for a standard drumkit according to the General MIDI standard.
drum | The MIDI note corresponding to the drum to play |
idx | The sample index, which should start at 0 for each note and increase by one every sample |
done | A pointer to a boolean which will be set to true when the drum is finished sounding |
scratch | Not used by this drumkit |
data | Not used by this drumkit |
int8_t donutDrumkitFunc | ( | percussionNote_t | drum, |
uint32_t | idx, | ||
bool * | done, | ||
uint32_t | scratch[4], | ||
void * | data ) |
Produces sounds for the drumkit that was included on the King Donut synth swadge.
This drumkit does not use the General MIDI drum note numbers
drum | The drum index, between ACOUSTIC_BASS_DRUM_OR_LOW_BASS_DRUM and HIGH_BONGO, inclusive |
idx | The sample index |
done | A pointer to a boolean which will be set to true when the drum is finished sounding |
scratch | Scratch space which is used to faithfully reproduce the drum sounds |
data | Not used by this drumkit |