![]() |
uvi-script
Musical event scripting with Lua
|
Classes | |
| class | Event |
| Event types. More... | |
| class | MidiEvent |
| A Midi Event. More... | |
| class | MidiSequence |
| A Midi sequence that represent a midi file. More... | |
Functions | |
| void | postMidiEvent (MidiEvent e) |
| send a MidiEvent directly to the script engine event queue. | |
| function | controlChange (cc, val, ch, inp) |
| sends a ControlChange event. | |
| function | programChange (val, ch, inp) |
| sends a ProgramChange event. | |
| function | pitchBend (b, ch, inp) |
| sends a PitchBend event. | |
| function | afterTouch (v, ch, inp) |
| sends an AfterTouch event. | |
| function | polyAfterTouch (v, n, ch, inp) |
| sends a PolyAfterTouch event. | |
MIDI event generation, file handling, and event structures.
Provides helper functions for generating outgoing MIDI events, classes for loading and manipulating MIDI files, and functions to post raw MIDI events to the engine.
Event Generation Helpers:
Key Classes:
MIDI File Operations:
Raw Event Posting:
| function afterTouch | ( | v | , |
| ch | , | ||
| inp | ) |
sends an AfterTouch event.
| v | MIDI AfterTouch value |
| ch | (optional) MIDI channel |
| inp | (optional) MIDI input |
| function controlChange | ( | cc | , |
| val | , | ||
| ch | , | ||
| inp | ) |
sends a ControlChange event.
| cc | MIDI Control Change number |
| val | MIDI Control Change value |
| ch | (optional) MIDI channel |
| inp | (optional) MIDI input |
| function pitchBend | ( | b | , |
| ch | , | ||
| inp | ) |
sends a PitchBend event.
| b | PitchBend value in [-1;1] |
| ch | (optional) MIDI channel |
| inp | (optional) MIDI input |
| function polyAfterTouch | ( | v | , |
| n | , | ||
| ch | , | ||
| inp | ) |
sends a PolyAfterTouch event.
| v | MIDI AfterTouch value |
| n | MIDI note number |
| ch | (optional) MIDI channel |
| inp | (optional) MIDI input |
| void postMidiEvent | ( | MidiEvent | e | ) |
send a MidiEvent directly to the script engine event queue.
MidiEvent are posted as-is to the event queue in order to make midi file playing easy. i.e. they don't have voiceId If you need more advanced events processing, you should use playNote() and releaseVoice() and keep track yourself of which note triggered each voiceId.
| e | MIDI event to be sent |
| function programChange | ( | val | , |
| ch | , | ||
| inp | ) |
sends a ProgramChange event.
| val | MIDI Program Change value |
| ch | (optional) MIDI channel |
| inp | (optional) MIDI input |