PS04RhythmNote

PS04RhythmNote — a drum/bass note in a rhythm pattern

Synopsis


#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);


Object Hierarchy


  GObject
   +----PS04RhythmNote
         +----PS04BassNote
         +----PS04DrumNote
         +----PS04RhythmPatternEndNote

Description

PS04RhythmNote is the abstract base class for drum and bass notes contained in a PS04RhythmPatternEvent.

Details

PS04RhythmNote

typedef struct _PS04RhythmNote PS04RhythmNote;


PS04_RHYTHM_NOTE_N_VELOCITIES

#define PS04_RHYTHM_NOTE_N_VELOCITIES 8


ps04_rhythm_note_get_midi_key ()

guint       ps04_rhythm_note_get_midi_key   (const PS04RhythmNote *note);

note :
Returns :

ps04_rhythm_note_get_name ()

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.

ps04_rhythm_note_get_velocity ()

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.

ps04_rhythm_note_set_velocity ()

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.

See Also

PS04RhythmPatternEvent, PS04BassNote, PS04DrumNote, PS04RhythmPatternEndNote