Let's say I am using DAW soft with MIDI keyboard.
When I start real time recording mode and press the key,
then the timing and velocity information is recorded to some file or memory.
Let's say I am using DAW soft with microphone.
When I start recording and sing a song,
then the sound pressure is recorded to some file or memory.
So, my question is,
How the MIDI device recognize the information of timing?
Consider the phonograph record case.
Information of "when" the needle moved
is recorded precisely thanks to "constant" rotation of the disc.
In MIDI device, what mechanism play a role of "turntable" ?
Simlarly, how the sound device records the sound pressure ?
One thing I can think of is,
when MIDI recording is started, store the information of time (GMT time),
and set that the origin of time axis,
and when key is pressed, again refer the GMT time,
and set the MIDI event to appropriate position.
However, sound recording case, I think this method can't be used.