![]() |
![]() |
![]() |
GPS04 Reference Manual | ![]() |
---|---|---|---|---|
#include <PS04-drum-note.h> enum PS04Drum; const char* ps04_drum_get_name (PS04Drum drum); PS04DrumNote; PS04DrumNote* ps04_drum_note_new (PS04Drum drum, guint velocity); PS04Drum ps04_drum_note_get_drum (const PS04DrumNote *self); void ps04_drum_note_set_drum (PS04DrumNote *self, PS04Drum drum);
typedef enum { PS04_DRUM_METRONOME_1 = 0x15, PS04_DRUM_METRONOME_2 = 0x16, PS04_DRUM_KICK = 0x18, /* GM bass drum 1 */ PS04_DRUM_STICK = 0x19, /* GM side stick */ PS04_DRUM_SNARE = 0x1A, /* GM acoustic snare */ PS04_DRUM_HAND_CLAP = 0x1B, PS04_DRUM_LOW_FLOOR_TOM = 0x1D, PS04_DRUM_CLOSED_HIHAT = 0x1E, PS04_DRUM_TOM_3 = 0x1F, /* GM high floor tom */ PS04_DRUM_PEDAL_HIHAT = 0x20, PS04_DRUM_LOW_TOM = 0x21, PS04_DRUM_OPEN_HIHAT = 0x22, PS04_DRUM_TOM_2 = 0x23, /* GM low mid tom */ PS04_DRUM_CRASH_CYMBAL = 0x25, /* GM crash cymbal 1 */ PS04_DRUM_TOM_1 = 0x26, /* GM high tom */ PS04_DRUM_RIDE_CYMBAL = 0x27, /* GM ride cymbal 1 */ PS04_DRUM_RIDE_BELL = 0x29, PS04_DRUM_TAMBOURINE = 0x2A, PS04_DRUM_SPLASH_CYMBAL = 0x2B, PS04_DRUM_COWBELL = 0x2C, PS04_DRUM_HIGH_BONGO = 0x30, PS04_DRUM_LOW_BONGO = 0x31, PS04_DRUM_MUTE_HIGH_CONGA = 0x32, PS04_DRUM_OPEN_HIGH_CONGA = 0x33, PS04_DRUM_LOW_CONGA = 0x34, PS04_DRUM_HIGH_TIMBALE = 0x35, PS04_DRUM_LOW_TIMBALE = 0x36, PS04_DRUM_HIGH_AGOGO = 0x37, PS04_DRUM_LOW_AGOGO = 0x38, PS04_DRUM_CABASA = 0x39, PS04_DRUM_MARACAS = 0x3A, PS04_DRUM_SHORT_GUIRO = 0x3D, PS04_NOTE_END = 0x3F } PS04Drum;
The PS04Drum enumeration represents the different drums available for a PS04DrumNote, and their internal pitch values.
PS04DrumNote* ps04_drum_note_new (PS04Drum drum, guint velocity);
Creates a new drum note.
drum : |
The drum played. |
velocity : |
The velocity (0-7). |
Returns : | a new PS04DrumNote. |
PS04Drum ps04_drum_note_get_drum (const PS04DrumNote *self);
Gets the drum played.
self : |
A PS04DrumNote. |
Returns : | a PS04Drum. |
void ps04_drum_note_set_drum (PS04DrumNote *self, PS04Drum drum);
Sets the drum played.
self : |
A PS04DrumNote. |
drum : |
A PS04Drum. |