add rtmidi-c formula