![]() |
![]() |
![]() |
Buzztard Bt-Core Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
BtSongInfoBtSongInfo — class that keeps the meta-data for a BtSong instance |
#include <libbtcore/core.h>
struct BtSongInfo;
BtSongInfo * bt_song_info_new (const BtSong * const song
);
"author" gchar* : Read / Write "bars" gulong : Read / Write "bpm" gulong : Read / Write "change-dts" gchar* : Read / Write "create-dts" gchar* : Read / Write "file-name" gchar* : Read / Write "genre" gchar* : Read / Write "info" gchar* : Read / Write "name" gchar* : Read / Write "song" BtSong* : Read / Write / Construct Only "taglist" gpointer : Read "tpb" gulong : Read / Write
Exposes the meta-data of a song as GObject properties. These are for one pure data fields such as author and song name. These fields get used when recording a song to a file (rendering) in the form of meta-tags.
Further there are fields that determine rythm and song-speed. The speed is determined by "bpm". The rythm is determined by "bars" and "tpb". If 'bars' is 16, than on can have 1/16 notes. And if 'ticks per beat' is 4 one will have 4 beats - a classic 4/4 meassure. For a 3/4 meassure, 'bars' would be 12. Thus bars = beats * tpb.
BtSongInfo * bt_song_info_new (const BtSong * const song
);
Create a new instance
|
the song the new instance belongs to |
Returns : |
the new instance or NULL in case of an error |
"bpm"
property "bpm" gulong : Read / Write
how many beats should be played in a minute.
Allowed values: [1,1000]
"change-dts"
property "change-dts" gchar* : Read / Write
song changed date time stamp (iso 8601 format).
Default value: NULL
"create-dts"
property "create-dts" gchar* : Read / Write
song creation date time stamp (iso 8601 format).
Default value: NULL
"song"
property"song" BtSong* : Read / Write / Construct Only
song object, the song-info belongs to.