Changes between Version 40 and Version 41 of python-rtmidi


Ignore:
Timestamp:
10/15/2019 10:46:10 AM (5 weeks ago)
Author:
carndt
Comment:

Update page for release 1.3.1

Legend:

Unmodified
Added
Removed
Modified
  • python-rtmidi

    v40 v41  
    55}}} 
    66 
    7 The current version is '''1.3.0''', released on 2019-04-15. 
     7The current version is '''1.3.1''', released on 2019-10-15. 
    88 
    99= Quick links = 
     
    6666    midiout.open_virtual_port("My virtual output") 
    6767 
    68 note_on = [0x90, 60, 112] # channel 1, middle C, velocity 112 
    69 note_off = [0x80, 60, 0] 
    70 midiout.send_message(note_on) 
    71 time.sleep(0.5) 
    72 midiout.send_message(note_off) 
     68with midiout: 
     69    # channel 1, middle C, velocity 112 
     70    note_on = [0x90, 60, 112] 
     71    note_off = [0x80, 60, 0] 
     72    midiout.send_message(note_on) 
     73    time.sleep(0.5) 
     74    midiout.send_message(note_off) 
     75    time.sleep(0.1) 
    7376 
    7477del midiout