PS04RhythmSong

PS04RhythmSong — Rhythm accompaniment for an entire song

Synopsis


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

Object Hierarchy


  GObject
   +----PS04RhythmSong

Implemented Interfaces

PS04RhythmSong implements PS04Streamable.

Description

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().

Details

PS04RhythmSong

typedef struct _PS04RhythmSong PS04RhythmSong;


ps04_rhythm_song_new ()

PS04RhythmSong* ps04_rhythm_song_new        (void);

Creates a new rhythm song.

Returns : a new PS04RhythmSong.

ps04_rhythm_song_add_event ()

void        ps04_rhythm_song_add_event      (PS04RhythmSong *self,
                                             PS04RhythmSongEvent *event);

self :
event :

ps04_rhythm_song_clear ()

void        ps04_rhythm_song_clear          (PS04RhythmSong *self);

self :

ps04_rhythm_song_get_events ()

const GList* ps04_rhythm_song_get_events    (const PS04RhythmSong *self);

self :
Returns :

ps04_rhythm_song_get_n_events ()

guint       ps04_rhythm_song_get_n_events   (const PS04RhythmSong *self);

self :
Returns :

ps04_rhythm_song_is_empty ()

gboolean    ps04_rhythm_song_is_empty       (const PS04RhythmSong *self);

self :
Returns :

See Also

PS04RhythmPattern, PS04RhythmSongEvent