A virtual clock scheduler using continuations for precise timing in audio, MIDI, or real-time applications