![]() |
![]() |
![]() |
GPS04 Reference Manual | ![]() |
---|---|---|---|---|
#include <PS04-rhythm-song.h> PS04RhythmSong; PS04RhythmSong* ps04_rhythm_song_new (void); void ps04_rhythm_song_add_event (PS04RhythmSong *self, PS04RhythmSongEvent *event); void ps04_rhythm_song_clear (PS04RhythmSong *self); const GList* ps04_rhythm_song_get_events (const PS04RhythmSong *self); guint ps04_rhythm_song_get_n_events (const PS04RhythmSong *self); gboolean ps04_rhythm_song_is_empty (const PS04RhythmSong *self);
The PS04RhythmSong class represents a “song” in the PS-04 lingo, that is the rhythm arrangement of a project: changes of patterns, time signatures, drum sounds, chords and such. You could compare this to a Standard MIDI File with the patterns as “sub-files”.
Technically the song is a GList of PS04RhythmSongEvent objects,
which can be retrieved with ps04_rhythm_song_get_events()
.
PS04RhythmSong* ps04_rhythm_song_new (void);
Creates a new rhythm song.
Returns : | a new PS04RhythmSong. |
void ps04_rhythm_song_add_event (PS04RhythmSong *self, PS04RhythmSongEvent *event);
self : |
|
event : |
const GList* ps04_rhythm_song_get_events (const PS04RhythmSong *self);
self : |
|
Returns : |
guint ps04_rhythm_song_get_n_events (const PS04RhythmSong *self);
self : |
|
Returns : |
gboolean ps04_rhythm_song_is_empty (const PS04RhythmSong *self);
self : |
|
Returns : |