Minor Changes
- f237c26: Device: a device can say how long it delays the sound, and a binding can be given the tempo.
defineDevicetakes an optionallatency(state, sampleRate)in seconds, and the device returns it asdevice.latency(state, sampleRate)(0 when it declares none, never negative), so a host that compensates latency can be told.DeviceBinding.update(state, context?)takes an optionalDeviceContextwith the host'stempo, for a time parameter that follows it.@audio-ui/core/timegainsSYNCED_DIVISIONS, the note values such a parameter can take (1/16, a triplet1/8t, a dotted1/8d, from 1/32 to a whole note), andsyncedSeconds(division, tempo), how long one lasts at a tempo.