[kooBase Index] [kooBase Hierarchy] [Headers]
The kooBase Track class More...
#include <kbTrack.h>
Inherits: KbId
A kooBase song can consist of several tracks, where each track may consist of several parts and each part finally consists of a bunch of notes (in future: as well as other midi-events). The KbMain object is connected to the first track, the other tracks are added in a chain, i.e. each track has a pointer next, that points to the next track and can be set via sNext() and obtained via gNext().\\ The presentation is attached via the interface (as in KbMain and KbPart), which can be obtained gInterface.
See Also: KbMain, IfTrack, QtTrack, TxTrack
[public]
Constructor to create a track.
i | this optional parameter may set the midi channel, when constructing a track. |
kbMain | to remember the main object. |
[public]
[public]
sets the next track in the chain.
tr | the track supposed to follow this track. |
[public]
[public]
calculates a track's order number within the chain.
[public]
[public]
returns the first part
[public]
sets the first part
[public]
[public]
[public]
[public]
[public]
[public]
Each track has (currently three) toggle buttons: mute, type and lock For mute and lock the states TRUE and FALSE mean on and off respectively. For type TRUE means MIDI-Track and FALSE means Audio-Track (which is not implemented yet).
n | describes the toggle button: 0=mute, 1=type, 2=lock. |
[public]
n | the midi program, the track will be set to. |
[public]
n | the midi channel, the track will be set to. |
[public]
n | the output device, the track's midi events will be sent to. |
[public]
n | the relative volume, the track will be set to. |
[public]
n | the delay, the track will be set to. |
[public]
i | the track's toggle button (0=mute, 1=type, 2=lock). |
n | the track's i'th toggle button's state. |
[public]
adds a part to the track.
[public]
returns the tracks name
[public]
sets the tracks name
| Kdoc |