![]() |
![]() |
![]() |
Buzztard Bt-Core Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
BtWavelevelBtWavelevel — a single part of a BtWave item |
#include <libbtcore/core.h> #define BT_WAVELEVEL_DEFAULT_ROOT_NOTE struct BtWavelevel; BtWavelevel * bt_wavelevel_new (const BtSong * const song
,const BtWave * const wave
,const guchar root_note
,const gulong length
,const glong loop_start
,const glong loop_end
,const gulong rate
,gconstpointer sample
);
"data" gpointer : Read / Write / Construct "length" gulong : Read / Write / Construct "loop-end" glong : Read / Write / Construct "loop-start" glong : Read / Write / Construct "rate" gulong : Read / Write / Construct "root-note" guchar : Read / Write / Construct "song" BtSong* : Read / Write / Construct Only "wave" BtWave* : Read / Write / Construct Only
BtWavelevel contain the digital audio data of a BtWave to be used for a certain key-range.
#define BT_WAVELEVEL_DEFAULT_ROOT_NOTE (1+(4*16))
Default base-note for a wavelevel (c-3).
struct BtWavelevel;
A tone level for a BtWave. In most cases a BtWave has only one BtWavelevel.
BtWavelevel * bt_wavelevel_new (const BtSong * const song
,const BtWave * const wave
,const guchar root_note
,const gulong length
,const glong loop_start
,const glong loop_end
,const gulong rate
,gconstpointer sample
);
Create a new instance
|
the song the new instance belongs to |
|
the wave the new wavelevel belongs to |
|
the keyboard note this sample is related |
|
the number of samples |
|
the start of the loop |
|
the end of the loop |
|
the sampling rate |
|
the sample data |
Returns : |
the new instance or NULL in case of an error |
"length"
property "length" gulong : Read / Write / Construct
length of the sample.
Allowed values: <= G_MAXLONG
"loop-end"
property "loop-end" glong : Read / Write / Construct
end of the sample loop.
Allowed values: >= -1
Default value: -1
"loop-start"
property "loop-start" glong : Read / Write / Construct
start of the sample loop.
Allowed values: >= -1
Default value: -1
"root-note"
property "root-note" guchar : Read / Write / Construct
the base note associated with the sample.
Default value: 0
"song"
property"song" BtSong* : Read / Write / Construct Only
Set song object, the wavelevel belongs to.
"wave"
property"wave" BtWave* : Read / Write / Construct Only
Set wave object, the wavelevel belongs to.