Integral timestamps/deltas
ejconlon opened this issue · 5 comments
This looks like a nice revamp of RtMidi, thanks! One thing that bugs me as I maintain the Haskell bindings to RtMidi is that event times are represented as doubles. No other music protocol at that level uses floating point - not midi files, and not OSC! I think some of the backends even have integral timestamps. Are you open to changing this (or getting contributions along those lines)?
hi! yes, it's a pretty bad decision. I'm thinking of tagging the current branch as it is, and starting a v4 branch which would have deep API changes and fix long-standing API issues such as this and some other ones
it's done in branch v4
That's great! It will take me a little while to test it out (looking to try out fficxx for generated Haskell-C++ bindings) but I look forward to using it!
i'm almost done with the complete overhauling of timestamps.. now it should be nano seconds everywhere, plus you'll have the choice between relative timestamps, absolute (as given by the host api with an "unknown" reference frame), and absolute as per the system's monotonic clock :)
done in all the backends in branch v4