![]() |
uvi-script
Musical event scripting with Lua
|
| function | getBarDuration () |
| return the duration of a bar in ms. | |
| function | getBeatDuration () |
| return the duration of a beat in ms. | |
| function | getSamplingRate () |
| return the current audio sampling rate. | |
| function | getTempo () |
| return the current tempo. | |
| function | getTimeSignature () |
| the current time signature in the form num,den. | |
| function | getCC (cc) |
| Retrieve the last control change value received for the given cc number. | |
| function | getTime () |
| get the number of milliseconds elapsed since the script engine start. | |
| function | getBeatTime () |
| get song position in beats. | |
| function | getRunningBeatTime () |
| get song position in beats. | |
| function | getNoteDuration (note) |
| return the number of ms since the last note-on for the given note. | |
| function | isKeyDown (note) |
| test wether a note's key is down. | |
| function | isOctaveKeyDown (note) |
| test if a note is down ignoring octave. | |
| function | isNoteHeld () |
| return true is the note that created this callback is still held. | |
Functions for querying the current musical context and performance state.
These functions provide access to timing information (tempo, beat position, time signature), MIDI controller values, key states, and other performance context that your scripts can use to make musically intelligent decisions.
Tempo & Duration:
Beat Position:
Note & Key State:
MIDI State:
| function getBarDuration | ( | ) |
return the duration of a bar in ms.
| function getBeatDuration | ( | ) |
return the duration of a beat in ms.
| function getBeatTime | ( | ) |
| function getCC | ( | cc | ) |
Retrieve the last control change value received for the given cc number.
| cc | the contron change number in the range 0-127 |
| function getNoteDuration | ( | note | ) |
return the number of ms since the last note-on for the given note.
| note | note number in the range 0-127 |
| function getRunningBeatTime | ( | ) |
get song position in beats.
From the host if playing and using an internal monotonic clock if not
| function getSamplingRate | ( | ) |
return the current audio sampling rate.
| function getTempo | ( | ) |
return the current tempo.
| function getTime | ( | ) |
get the number of milliseconds elapsed since the script engine start.
| function getTimeSignature | ( | ) |
the current time signature in the form num,den.
| function isKeyDown | ( | note | ) |
test wether a note's key is down.
| note | note number in the range 0-127 |
| function isNoteHeld | ( | ) |
return true is the note that created this callback is still held.
| function isOctaveKeyDown | ( | note | ) |
test if a note is down ignoring octave.
| note | note number in the range 0-127 |