Go to the source code of this file.
|
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 | mmxDrumkitFunc (percussionNote_t drum, uint32_t idx, bool *done, uint32_t scratch[4], void *data) |
|
◆ defaultDrumkitFunc()
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.
- Parameters
-
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 |
- Returns
- int8_t The signed 8-bit sample generated for this tick of the drumkit
◆ donutDrumkitFunc()
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
- Parameters
-
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 |
- Returns
- int8_t The signed 8-bit sample generated for this tick of the drumkit
◆ mmxDrumkitFunc()
int8_t mmxDrumkitFunc |
( |
percussionNote_t | drum, |
|
|
uint32_t | idx, |
|
|
bool * | done, |
|
|
uint32_t | scratch[4], |
|
|
void * | data ) |