Musical context related functions.
More...
Musical context related functions.
function getBarDuration |
( |
) | |
|
function getBeatDuration |
( |
) | |
|
function getSamplingRate |
( |
) | |
|
function getTimeSignature |
( |
) | |
|
the current time signature in the form num,den.
- Returns
- time signature numerator
-
time signature denominator
Retrieve the last control change value received for the given cc number.
- Parameters
-
cc | the contron change number in the range 0-127 |
- Returns
- the last control change value received
get the number of milliseconds elapsed since the script engine start.
- Returns
- current script engine time in milliseconds
get song position in beats.
- Returns
- current song beat position in samples
function getRunningBeatTime |
( |
) | |
|
get song position in beats.
From the host if playing and using an internal monotonic clock if not
- Returns
- current song beat position in samples
function getNoteDuration |
( |
note |
) | |
|
return the number of ms since the last note-on for the given note.
- Parameters
-
note | note number in the range 0-127 |
- Returns
- note duration in milliseconds
function isKeyDown |
( |
note |
) | |
|
test wether a note's key is down.
- Parameters
-
note | note number in the range 0-127 |
- Returns
- true if the note is down false otherwise
- See Also
- isOctaveKeyDown, isNoteHeld
function isOctaveKeyDown |
( |
note |
) | |
|
test if a note is down ignoring octave.
- Parameters
-
note | note number in the range 0-127 |
- Returns
- true if the note is down, false otherwise
- See Also
- isKeyDown, isNoteHeld