Contents
. 2. Midithing Objects
.. 2.5. Event
... 2.5.1. MIDI Events  
 
 
Next 2.5.1.2. Controller

2.5.1.1. Note

Note ([note=39, velocity=80, tick=0, length=48, velocity_off=80, channel=0, port=0, type=144])

creates a Note event.

This event usually starts the playing of a note on the device that receives it. Be careful with the velocity since many devices interpret 0 as a NoteOff instead, and the behaviour inside midithing varies.

See also NoteOff

Properties

status

Type: int
Default: 144

note

Type: int
Default: 39

Notes can be specified as a plain number, where 60 is middle C and 61 C# above it, or you can use strings to specify notes: 'C5' for the same middle C, note 60. Note 61 could also be described as for example 'C#5', 'Db5', 'Ebbb5' or 'C#b#5'.

velocity

Type: int
Default: 80

The note velocity value usually indicates how loud the note should sound.

tick

Type: int
Default: 0

length

Type: int
Default: 48

The length in midi ticks of the Note. Midithings behaviour if tick + length is greater than maximum signed int on your system is undefined.

velocity_off

Type: int
Default: 80

The velocity sent when the NoteOff event is sent.

channel

Type: int
Default: 0

port

Type: int
Default: 0

type

Type: type
Default: 144

Next is Controller

midithing 0.3.22 documentation © Tim Goetze Nov. 06 2001