Re: [LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Fons Adriaensen
On Thu, May 19, 2022 at 11:17:28PM +0200, Jeanette C. wrote: > Thanks both of you. Based on timed_wait, I looked at the boost libraries and > found two candidates in the Thread library: > conditional_varaible::timed_wait > and > thread::sleep_until > which can both take an absolute time. I suppose

Re: [LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Jeanette C.
Thanks both of you. Based on timed_wait, I looked at the boost libraries and found two candidates in the Thread library: conditional_varaible::timed_wait and thread::sleep_until which can both take an absolute time. I suppose both should be equally usable, since again absolute time can be calcul

Re: [LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Fons Adriaensen
On Thu, May 19, 2022 at 10:40:48PM +0200, Robin Gareus wrote: > While there is a corresponding mach/clock.h, for the case at hand it is > preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is > abstracted, and there is dedicated API to convert timestamped events > with high pre

Re: [LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Robin Gareus
On 5/19/22 22:27, Fons Adriaensen wrote: > Don't know about Apple. Last time I looked it didn't have clock_gettime(), While there is a corresponding mach/clock.h, for the case at hand it is preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is abstracted, and there is dedicated

[LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Fons Adriaensen
- Forwarded message from Fons Adriaensen - Date: Thu, 19 May 2022 22:22:12 +0200 From: Fons Adriaensen To: "Jeanette C." On Thu, May 19, 2022 at 07:52:33PM +0200, Jeanette C. wrote: > I know about one or two applications that use the timeofday/sleep mechanism, > but from first hand e

[LAD] Deriving a steady MIDI clock crossplatform?

2022-05-19 Thread Jeanette C.
Hey hey, I wonder how would you best derive a steady MIDI clock in software for a cross platform application? Cross platform in this case almost certainly means Linux and mac. I know about one or two applications that use the timeofday/sleep mechanism, but from first hand experience I know th