![]() |
uvi-script
Musical event scripting with Lua
|
Public Member Functions | |
| MidiEvent (number timestamp, int channel, int status, int byte1, int byte2) | |
| creates a MidiEvent. | |
Public Attributes | |
| int | byte1 |
| MIDI byte 1 in range [0;127]. | |
| int | byte2 |
| MIDI byte 2 in range [0;127]. | |
| int | channel |
| MIDI channel in range [0;15]. | |
| int | type |
| MIDI event type (Event.NoteOn | Event.NoteOff | Event.ControlChange | Event.ProgramChange | Event.PitchBend | Event.AfterTouch | Event.PolyAfterTouch) | |
| int | status |
| alias for type: writing it sets the event type, leaving the channel untouched | |
| number | timestamp |
| event timestamp in midi ticks, resolution is given by the MidiSequence's division (read-only). | |
A Midi Event.
| MidiEvent::MidiEvent | ( | number | timestamp, |
| int | channel, | ||
| int | status, | ||
| int | byte1, | ||
| int | byte2 ) |
creates a MidiEvent.
Note the argument order: the channel comes before the event type.
channel = 0 is also accepted and means omni (same as omitting the field). MidiEvent objects (postMidiEvent(), MidiSequence) carry the raw MIDI channel, 0-based in [0;15]. Channel 1 in an event table and channel 0 in a MidiEvent designate the same MIDI channel.| timestamp | event timestamp in midi ticks |
| channel | MIDI channel in range [0;15] |
| status | MIDI status (Event.NoteOn | Event.NoteOff | Event.ControlChange | Event.ProgramChange | Event.PitchBend | Event.AfterTouch | Event.PolyAfterTouch) |
| byte1 | MIDI byte 1 in range [0;127] |
| byte2 | MIDI byte 2 in range [0;127] |