A key/scale definition anchored on a root pitch class.
modeMask12 is a 12-bit mask where bit n set means the pitch class
(rootPc + n) % 12 belongs to the scale. Bit 0 (the root) is always set;
maskFromOffsets enforces this so the root is always a scale tone.
A key/scale definition anchored on a root pitch class.
modeMask12is a 12-bit mask where bitnset means the pitch class(rootPc + n) % 12belongs to the scale. Bit 0 (the root) is always set; maskFromOffsets enforces this so the root is always a scale tone.