Top | ![]() |
![]() |
![]() |
![]() |
gboolean | bt_wavetable_add_wave () |
BtWave * | bt_wavetable_get_wave_by_index () |
BtWavetable * | bt_wavetable_new () |
void | bt_wavetable_remember_missing_wave () |
gboolean | bt_wavetable_remove_wave () |
gpointer | missing-waves | Read |
BtSong * | song | Read / Write / Construct Only |
gpointer | waves | Read |
Each wave table entry can constist of multiple BtWaves, were each of the waves has a BtWavelevel with the data for a note range.
gboolean bt_wavetable_add_wave (const BtWavetable * const self
,const BtWave * const wave
);
Add the supplied wave to the wavetable. This is automatically done by
bt_wave_new()
.
BtWave * bt_wavetable_get_wave_by_index (const BtWavetable * const self
,const gulong index
);
Search the wavetable for a wave by the supplied index.
The wave must have been added previously to this wavetable with bt_wavetable_add_wave()
.
Unref the wave, when done with it.
BtWavetable *
bt_wavetable_new (const BtSong * const song
);
Create a new instance
void bt_wavetable_remember_missing_wave (const BtWavetable * const self
,const gchar * const str
);
Loaders can use this function to collect information about wavetable entries that failed to load. The front-end can access this later by reading BtWavetable::missing-waves property.
gboolean bt_wavetable_remove_wave (const BtWavetable * const self
,const BtWave * const wave
);
Remove the supplied wave from the wavetable.
“missing-waves”
property “missing-waves” gpointer
The list of missing waves, don't change.
Flags: Read
“song”
property“song” BtSong *
Set song object, the wavetable belongs to.
Flags: Read / Write / Construct Only
“wave-added”
signalvoid user_function (BtWavetable *self, BtWave *wave, gpointer user_data)
A new wave item has been added to the wavetable
self |
the wavetable object that emitted the signal |
|
wave |
the new wave |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
“wave-removed”
signalvoid user_function (BtWavetable *self, BtWave *wave, gpointer user_data)
A wave item has been removed from the wavetable
self |
the setup object that emitted the signal |
|
wave |
the old wave |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks