Contents
. 2. Midithing Objects
.. 2.5. Event
... 2.5.2. Meta Events  
Previous 2.5.2.2. Time
 
Next 2.5.2.4. SMPTE

2.5.2.3. Meta (Key)

Meta (Key[, key=0, flavour=0, tick=0, data='\000\000'])

creates a Key meta event.

This meta specifies the current key and should, like all globally effective meta events, be kept in the first part of a song.

Properties

status

Type: int
Default: 255

meta

Type: int
Default: 89

key

Type: int
Default: 0

The distance of the key from C in semitones. -2 for Bb, 3 for Eb. The MIDI specification says you should keep it -7 at min and +7 at max.

flavour

Type: int
Default: 0

0 means major, 1 means minor.

tick

Type: int
Default: 0

data

Type: string
Default: '\000\000'

Next is SMPTE

midithing 0.3.22 documentation © Tim Goetze Nov. 06 2001