![]() |
![]() |
![]() |
GPS04 Reference Manual | ![]() |
---|---|---|---|---|
#include <PS04-bass-note.h> PS04BassNote; PS04BassNote* ps04_bass_note_new (PS04BassPitch pitch, guint velocity, guint duration); guint ps04_bass_note_get_duration (const PS04BassNote *self); const char* ps04_bass_note_get_duration_as_string (const PS04BassNote *self); void ps04_bass_note_set_duration (PS04BassNote *self, guint duration); void ps04_bass_note_set_pitch (PS04BassNote *note, PS04BassPitch pitch);
PS04BassNote* ps04_bass_note_new (PS04BassPitch pitch, guint velocity, guint duration);
Creates a new bass note.
pitch : |
|
velocity : |
|
duration : |
|
Returns : | a new PS04BassNote. |
guint ps04_bass_note_get_duration (const PS04BassNote *self);
Gets the note duration of a bass note.
self : |
A PS04BassNote. |
Returns : | the note duration in ticks (bass note) or 0 (drum note). |
const char* ps04_bass_note_get_duration_as_string (const PS04BassNote *self);
Gets the note duration as a string in the PS-04 format ("1", "3/4", etc.).
self : |
A PS04BassNote. |
Returns : | The note duration string, stored in a static buffer. |
void ps04_bass_note_set_duration (PS04BassNote *self, guint duration);
self : |
|
duration : |
void ps04_bass_note_set_pitch (PS04BassNote *note, PS04BassPitch pitch);
note : |
|
pitch : |