BtSongInfo

BtSongInfo — class that keeps the meta-data for a BtSong instance

Functions

Properties

gchar * author Read / Write
gulong bars Read / Write
gulong bpm Read / Write
gchar * change-dts Read / Write
gchar * create-dts Read / Write
gchar * file-name Read / Write
gchar * genre Read / Write
gchar * info Read / Write
gchar * name Read / Write
BtSong * song Read / Write / Construct Only
gpointer taglist Read
gulong tpb Read / Write

Types and Values

struct BtSongInfo

Object Hierarchy

    GObject
    ╰── BtSongInfo

Implemented Interfaces

BtSongInfo implements

Includes

#include <libbtcore/core.h>

Description

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.

Functions

bt_song_info_new ()

BtSongInfo *
bt_song_info_new (const BtSong * const song);

Create a new instance

Parameters

song

the song the new instance belongs to

 

Returns

the new instance or NULL in case of an error

Types and Values

struct BtSongInfo

struct BtSongInfo;

holds song metadata

Property Details

The “author” property

  “author”                   gchar *

songs author.

Flags: Read / Write

Default value: NULL


The “bars” property

  “bars”                     gulong

how many bars per meassure.

Flags: Read / Write

Allowed values: [1,64]


The “bpm” property

  “bpm”                      gulong

how many beats should be played in a minute.

Flags: Read / Write

Allowed values: [1,1000]


The “change-dts” property

  “change-dts”               gchar *

song changed date time stamp (iso 8601 format).

Flags: Read / Write

Default value: NULL


The “create-dts” property

  “create-dts”               gchar *

song creation date time stamp (iso 8601 format).

Flags: Read / Write

Default value: NULL


The “file-name” property

  “file-name”                gchar *

songs file name.

Flags: Read / Write

Default value: NULL


The “genre” property

  “genre”                    gchar *

songs genre.

Flags: Read / Write

Default value: NULL


The “info” property

  “info”                     gchar *

songs freeform info.

Flags: Read / Write

Default value: "comment me!"


The “name” property

  “name”                     gchar *

songs name.

Flags: Read / Write

Default value: "untitled song"


The “song” property

  “song”                     BtSong *

song object, the song-info belongs to.

Flags: Read / Write / Construct Only


The “taglist” property

  “taglist”                  gpointer

songs meta data as a taglist.

Flags: Read


The “tpb” property

  “tpb”                      gulong

event granularity in one beat.

Flags: Read / Write

Allowed values: [1,128]