Re: MIDITimeStamp ?
Re: MIDITimeStamp ?
- Subject: Re: MIDITimeStamp ?
- From: Bill Stewart <email@hidden>
- Date: Tue, 12 Feb 2002 12:21:56 -0800
on 12/2/02 5:59 AM, Joe Chang (@e@gH#) wrote:
>
Hi !
>
>
A quick question about MIDI time-stamp:
>
>
<CoreMIDI/MIDIServices.h> says:
>
Since MIDI applications will tend to do a fair amount of
>
math with the times of events, it's more convenient to use a
>
UInt64 than an AbsoluteTime.
>
>
OK, but what is the format or unit (milliseconds?) of time-stamp in
>
UInt64?
>
If I want to send a note-on message right now and note-off message after
>
1 second, what time-stamp values should I set for each MIDIPacket?
This is the time of the bus clock (UpTime in Carbon).
Take a look at <CoreAudio/HostTime.h> it publishes calls to convert host
time to nano's, etc.
Bill
>
>
Thanks,
>
Joe.
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"We'll talk about it later...."
"When?"
"In a future life when we're both cats"
__________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.