Hi,
Is there a way to fire events in C# at a resolution of a few microseconds?
I am building a midi sequencer and it requires an event to be fired every midi tick which will then play any note registered at that time. At 120 beats per minute and at a resolution of 120 ppqn (pulses per beat/quarter note), that event should fire every 4.16666 milliseconds. Modern sequencers have higher resolutions such as 768ppqn which would require that event to be fired every 651 microseconds.
The best resolution for short-timed events i have found is of 1 millisecond. How can i go beyond that?
This problem must have already been solved by any c# midi sequencer or midi file player. Maybe am i just not looking at the problem through the right angle.
Thank you for your help.