Contents . 2. Midithing Objects .. 2.5. Event |
Next 2.5.1.1. Note |
MIDI Events are those events that can be sent over the MIDI wire as opposed to the Meta Events that contain information the sequencer uses itself.
To create an Event object, there are constructor functions like
Note()
which return a note Event with some default values for note height, length and velocity.
You can specify the Event data with the member names as keywords, for example
Controller (controller = 7, value = 127, tick = 192, channel = 3)
would create a Controller Event on channel 3 that most devices understand as 'set maximum volume'.
With both normal and SysEx events, data bytes are limited to seven bits (> 0x7F), or 127 decimal by the MIDI protocol. Midithing raises an error if you try to modify a value beyond this range with all MIDI events except for the SysEx type.
The attributes that have a different range are the status byte, and those that are not sent or received: port, tick and a note length.
The pitch attribute of the Pitch event is another exception because it is a floating point representation of a 14-bit two byte value.
The channel range is 0 to 15.
See also Port
Note
Controller
Program
Pitch
NoteTouch
ChannelTouch
NoteOff
SysEx
midithing 0.3.22 documentation | © Tim Goetze | Nov. 06 2001 |