Open kirbysayshi opened 5 years ago
There are several places where rounding errors make for tricky code and bugs. Ideally:
feed
sampleIndex: number
renderTime: TimeInstant
SampleTime.fromNanos(nanos:number, hz: number): number
TimeInstants are really useful for reading values from Scores, but should not be used as the base unit for sample math.
There are several places where rounding errors make for tricky code and bugs. Ideally:
feed
calls accept asampleIndex: number
instead ofrenderTime: TimeInstant
SampleTime.fromNanos(nanos:number, hz: number): number
conversion utility to avoid instantiating so many TimeInstants.TimeInstants are really useful for reading values from Scores, but should not be used as the base unit for sample math.