Adds schedule_relative etc to midi_pm
Factors out default sample rate