Hi all, seeking opinions:
I have to choose a way to represent beat-based tempo time in 64 bits.
Uses are many, but the main one is event time stamps for plugins.
* No odd data sizes (for performance / programmer ease)
* High precision (ideally close to sample accurate for most tempos)
* Fits in the same space as two uint32_t's
* Is "bar" needed?
* Use floating point? Rounding errors an issue?
/* A (moderate range, ultra precise) */
/* B (high range, moderate precision) */
/* C (high range, good precision?) */
/* D (high range/precision, but no bar) */
I havn't run the math on precision yet, but I am leaning towards C. I
actually hadn't considered mixing int and float before writing this
email, but it seems the best trade-off, and working with float is
certainly more pleasant than fixed point.
Linux-audio-dev mailing list