|
Boost Users : |
From: Alexandru Onea (onea.alex_at_[hidden])
Date: 2021-02-27 17:01:30
Hello community,
I am working on a project which works with units such as scale intervals
(cents, moria, etc.) depending on the temperament system used (24-EDO,
72-EDO, etc.).
My implementation defines a namespace for each tuning system. Within the
namespaces I define base units, units and a system, as well as conversion
factors between the systems. The base dimension is defined in only one of
the namespaces (corresponding to the tuning system which I consider
"standard" which is the 1200 cents per octave system).
1. Does such an approach qualify as a good approach in general (leaving
aside the musical aspects)?
2. Is it a good practice to place all these namespaces in boost::units
(extend boost::units)? Or should I keep them within my own namespaces?
Learning the answer to #2 is more interesting to me, even in the absence of
an answer to #1.
Best regards,
Alexandru Onea
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net