BtWavelevel

BtWavelevel — a single part of a BtWave item

Functions

Properties

gpointer data Read / Write / Construct
gulong length Read / Write / Construct
glong loop-end Read / Write / Construct
glong loop-start Read / Write / Construct
gulong rate Read / Write / Construct
guchar root-note Read / Write / Construct
BtSong * song Read / Write / Construct Only
BtWave * wave Read / Write / Construct Only

Types and Values

struct BtWavelevel

Object Hierarchy

    GObject
    ╰── BtWavelevel

Implemented Interfaces

BtWavelevel implements

Includes

#include <libbtcore/core.h>

Description

BtWavelevel contain the digital audio data of a BtWave to be used for a certain key-range.

Functions

BT_WAVELEVEL_DEFAULT_ROOT_NOTE

#define BT_WAVELEVEL_DEFAULT_ROOT_NOTE (1+(4*16))

Default base-note for a wavelevel (c-3).


bt_wavelevel_new ()

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

Parameters

song

the song the new instance belongs to

 

wave

the wave the new wavelevel belongs to

 

root_note

the keyboard note this sample is related

 

length

the number of samples

 

loop_start

the start of the loop

 

loop_end

the end of the loop

 

rate

the sampling rate

 

sample

the sample data

 

Returns

the new instance or NULL in case of an error

Types and Values

struct BtWavelevel

struct BtWavelevel;

A tone level for a BtWave. In most cases a BtWave has only one BtWavelevel.

Property Details

The “data” property

  “data”                     gpointer

the sample data.

Flags: Read / Write / Construct


The “length” property

  “length”                   gulong

length of the sample.

Flags: Read / Write / Construct

Allowed values: <= G_MAXINT64


The “loop-end” property

  “loop-end”                 glong

end of the sample loop.

Flags: Read / Write / Construct

Allowed values: >= -1

Default value: -1


The “loop-start” property

  “loop-start”               glong

start of the sample loop.

Flags: Read / Write / Construct

Allowed values: >= -1

Default value: -1


The “rate” property

  “rate”                     gulong

sampling rate of the sample.

Flags: Read / Write / Construct


The “root-note” property

  “root-note”                guchar

the base note associated with the sample.

Flags: Read / Write / Construct

Default value: 0


The “song” property

  “song”                     BtSong *

Set song object, the wavelevel belongs to.

Flags: Read / Write / Construct Only


The “wave” property

  “wave”                     BtWave *

Set wave object, the wavelevel belongs to.

Flags: Read / Write / Construct Only