make sure to create static RtMidi objects in static functions