1use crate::stepname::StepName;
2use fraction::GenericFraction;
3
4pub type IntegerType = i32;
6pub type UnsignedIntegerType = u32;
8pub type FloatType = f64;
10
11pub type FractionType = GenericFraction<IntegerType>;
13
14pub type Octave = Option<IntegerType>;
16
17pub(crate) const LIMIT_OFFSET_DENOMINATOR: UnsignedIntegerType = 65535;
19
20pub(crate) const PITCH_STEP: StepName = StepName::C;
21pub(crate) const PITCH_OCTAVE: UnsignedIntegerType = 4;
22
23pub(crate) const TWELFTH_ROOT_OF_TWO: FloatType = 1.059_463_1; pub(crate) const PITCH_SPACE_SIGNIFICANT_DIGITS: UnsignedIntegerType = 6;