KbTrack Class Reference

[kooBase Index] [kooBase Hierarchy] [Headers]


The kooBase Track class More...

#include <kbTrack.h>

Inherits: KbId

Public Members


Detailed Description

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


KbTrack( KbMain * kbMain, int i=0 ) [public]

Constructor to create a track.

Parameters:
i this optional parameter may set the midi channel, when constructing a track.
kbMain to remember the main object.

KbTrack * gNext() [public]

Returns:
the next track in the chain.
See Also:
sNext

void sNext( KbTrack * tr ) [public]

sets the next track in the chain.

Parameters:
tr the track supposed to follow this track.
See Also:
gNext

KbMain * gMain() [public]

Returns:
the main object.
See Also:
KbMain

int trackNum() [public]

calculates a track's order number within the chain.

Returns:
the order number of the track within the chain. (This is calculated each time trackNum() is called!)

IfTrack * gInterface() [public]

Returns:
the interface to the presentation.
See Also:
IfTrack

KbPart * gPart() [public]

returns the first part

void sPart(KbPart * p) [public]

sets the first part

int gProgram() [public]

Returns:
the current midi program.
See Also:
sProgram

int gChannel() [public]

Returns:
the current midi channel.
See Also:
sChannel

int gOutput() [public]

Returns:
the current output device.
See Also:
sOutput

int gVolume() [public]

Returns:
the current relative volume.
See Also:
sVolume

int gDelay() [public]

Returns:
the current delay.
See Also:
sDelay

bool gToggle(int n) [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).

Parameters:
n describes the toggle button: 0=mute, 1=type, 2=lock.
Returns:
the state of the tracks n'th toggle button.
See Also:
sToggle

void sProgram(int n) [public]

Parameters:
n the midi program, the track will be set to.
See Also:
gProgram

void sChannel(int n) [public]

Parameters:
n the midi channel, the track will be set to.
See Also:
gChannel

void sOutput(int n) [public]

Parameters:
n the output device, the track's midi events will be sent to.
See Also:
gOutput

void sVolume(int n) [public]

Parameters:
n the relative volume, the track will be set to.
See Also:
gVolume

void sDelay(int n) [public]

Parameters:
n the delay, the track will be set to.
See Also:
gDelay

void sToggle(int i,bool n) [public]

Parameters:
i the track's toggle button (0=mute, 1=type, 2=lock).
n the track's i'th toggle button's state.
See Also:
gToggle

KbPart * addPart(int left, int right) [public]

adds a part to the track.

char * gName() [public]

returns the tracks name

void sName(char * n) [public]

sets the tracks name


  • Author: Jan Wuerthner
  • Version: 0.95
  • Documentation generated by wuerthne@clouseau on Sat Feb 20 16:41:13 MST 1999
Kdoc