brand-music
is a TypeScript library which provides branded-types related to music theory.
Type | Representation | Description |
---|---|---|
MidiNoteNumber |
Int (0-127) | |
PitchClass |
Int (0-11) | Integer representation of pitch class |
PitchClassSet |
Int (0-4095) | Bit set of PitchClass |
Type | Representation | Description |
---|---|---|
PitchInterval |
Int | Ordered pitch interval |
Semitones |
Int (0-) | Unordered pitch interval |
PitchIntervalClass |
Int (0-11) | Ordered pitch-class interval |
IntervalClass |
Int (0-6) | Unordered pitch-class interval |
PitchIntervalClassSet |
Int (0-4095) | Bit set of PitchIntervalClass |