[kooBase Index] [kooBase Hierarchy] [Headers]
The kooBase main class More...
#include <kbMain.h>
Inherits: KbId
This is the main kooBase class. main() will create exactly one object of this class and a factory for the presentation as a parameter. If you want to change the presentation, change the factory in the file main.C.
See Also: IfMain, QtMain, TxMain
[public]
Constructor. fac refers to the factory interface. The kb... classes do not own presentations of their contents, especially no graphical presentations! The presentations will be attached via this interface. E.g. QtFactory is derived from IfFactory and creates the QtMain-object, QtTrack-objects , QtPart-objects, etc.
argv | command line arguments. |
fac | the factory that creates the presentation specific objects. |
argc | command line arguments. |
[public]
adjust right border
[public]
returns the (n+1)īth track. This might be zero! Further tracks are connected to the first track via next-chain.
[public]
sets the first track. This is for internal use, e.g. when the first track gets deleted!
[public]
This adds a track to the track-chain.
[public]
i | the device number. |
[public]
[public]
[public]
This returns the current meter.
i | call with i=0 to obtain the numerator, and with i=1 to obtain the nominator |
[public]
This sets the snap value, which holds the midi-ticks used for quantization and other truncation.
s | the snap value. |
[public]
This sets the tempo value.
t | the tempo |
[public]
This sets the meter.
i | call with i=0 to set the nominator to m, call with i=1 to set the numerator to m. |
m | the nominator, numerator resp. |
[public]
returns the time position (in ticks)
[public]
returns the left locator (in ticks)
[public]
returns the right locator (in ticks)
[public]
returns the left locator (in bars)
[public]
returns the right locator (in bars)
[public]
sets the left locator
[public]
sets the right locator
[public]
toggles the cycle flag
[public]
sets the position either call with one parameter describing the position in ticks or call with bar, beat and ticks
[public]
same as sPos(int p, int b=-1, int t=-1), but returns and does not set the position!
[public]
returns the playWait variable, which is TRUE, if the playroutine shall wait for an acoustic signal before playing
[public]
does not set the position, and meter. calculates (updates) bar, beat and tick values from position.
pos | the position |
t0 | meter numerator |
t1 | meter nominator |
[public]
returns the bar value.
pos | if not -1: runs BBT(pos) first |
[public]
returns the beat valuee.
pos | if not -1: runs BBT(pos) first |
[public]
returns the beat valuee.
pos | if not -1: runs BBT(pos) first |
[public]
plays a song
delt | the number of midi ticks that are to be played |
off | the offset (in midi ticks) |
tracki | the track number to be played |
[public]
stops playing
| Kdoc |