I think the clock for MIDI actually has to be the system clock; the other
clock is tied to a particular AudioContext (and different audio contexts
may have different clocks, since independent audio interfaces might have
separate clocks/crystals). I suppose it's possible we'd want to provide
AudioContext-hosted event at some point, but for now, I think the system
clock is the best place to host MIDI.
On Thu, Jun 7, 2012 at 1:16 AM, Philip Jägenstedt <philipj@opera.com> wrote:
> On Tue, 05 Jun 2012 18:57:29 +0200, Chris Wilson <cwilso@google.com>
> wrote:
>
> Definite +1 to that. Philip, what do you think of the timing type in
>> MIDI?
>> Should we have it be in seconds like Web Audio, or milliseconds? (Will
>> come back to the reference point on the other thread.)
>>
>
> I don't know anything about MIDI and haven't looked at the spec, so I
> don't know. All else equal, I prefer to use seconds in new APIs, but the
> main issue here is surely which clock is used, not the units.
>
>
> --
> Philip Jägenstedt
> Core Developer
> Opera Software
>