Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
WriteShort(status <, data1><, data2>)
 output MIDI information of 3 bytes or less.
 data fields are optional
 status byte could be:
      0xc0 = program change
      0x90 = note on
      etc.
      data bytes are optional and assumed 0 if omitted
 example: note 65 on with velocity 100
      WriteShort(0x90,65,100)

src/p/o/portmidizero-0.1/portmidizero/testportmidizero.py   portmidizero(Download)
  MidiOut.Write([[[0x90,60,0],pm.Time()]])
  dummy = raw_input("ready to note-on (short form)... (type RETURN):")
  MidiOut.WriteShort(0x90,60,100)
  dummy = raw_input("ready to note-off (short form)... (type RETURN):")
  MidiOut.WriteShort(0x90,60,0)