|
|
|
note_on(self,
channel=0,
note=64,
velocity=64)
channel: 0-15
note, velocity: 0-127 |
source code
|
|
|
note_off(self,
channel=0,
note=64,
velocity=64)
channel: 0-15
note, velocity: 0-127 |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header(self,
format=0,
nTracks=1,
division=96)
format: type of midi file in [1,2]
nTracks: number of tracks
division: timing division |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tempo(self,
value)
value: 0-2097151
tempo in us/quarternote
(to calculate value from bpm: int(60,000,000.00 / BPM)) |
source code
|
|
|
smtp_offset(self,
hour,
minute,
second,
frame,
framePart)
hour,
minute,
second: 3 bytes specifying the hour (0-23), minutes (0-59) and
seconds (0-59), respectively. |
source code
|
|
|
time_signature(self,
nn,
dd,
cc,
bb)
nn: Numerator of the signature as notated on sheet music
dd: Denominator of the signature as notated on sheet music
The denominator is a negative power of 2: 2 = quarter
note, 3 = eighth, etc. |
source code
|
|
|
key_signature(self,
sf,
mi)
(+ve) that identifies the key signature (-7 = 7 flats, -1
= 1 flat, 0 = key of C, 1 = 1 sharp, etc). |
source code
|
|
|
|
Inherited from MidiOutStream.MidiOutStream :
__init__ ,
abs_time ,
active_sensing ,
get_current_track ,
get_run_stat ,
rel_time ,
reset_run_stat ,
reset_time ,
set_current_track ,
set_run_stat ,
song_continue ,
song_start ,
song_stop ,
system_reset ,
timing_clock ,
update_time
|