![]() |
![]() |
![]() |
GPS04 Reference Manual | ![]() |
---|---|---|---|---|
#include <PS04-rhythm-note.h> PS04RhythmNote; #define PS04_RHYTHM_NOTE_N_VELOCITIES guint ps04_rhythm_note_get_midi_key (const PS04RhythmNote *note); const char* ps04_rhythm_note_get_name (const PS04RhythmNote *self); guint ps04_rhythm_note_get_velocity (const PS04RhythmNote *self); void ps04_rhythm_note_set_velocity (PS04RhythmNote *self, guint velocity);
GObject +----PS04RhythmNote +----PS04BassNote +----PS04DrumNote +----PS04RhythmPatternEndNote
PS04RhythmNote is the abstract base class for drum and bass notes contained in a PS04RhythmPatternEvent.
guint ps04_rhythm_note_get_midi_key (const PS04RhythmNote *note);
note : |
|
Returns : |
const char* ps04_rhythm_note_get_name (const PS04RhythmNote *self);
Gets the display name of a note. This must be implemented by derived classes.
self : |
A PS04RhythmNote. |
Returns : | a string constant. |
guint ps04_rhythm_note_get_velocity (const PS04RhythmNote *self);
Gets the velocity of the event.
self : |
a PS04RhythmNote. |
Returns : | a value between 0 and 7. |
void ps04_rhythm_note_set_velocity (PS04RhythmNote *self, guint velocity);
Sets the velocity of the note.
self : |
A PS04RhythmNote. |
velocity : |
The velocity, a value between 0 and 7. |