Repository navigation
v0.5.0
Pre-release
Pre-release
NEW
(new Pitch()).clone()returns a copy for preserving previous value and returning a new Pitch instance(new Pitch()).detuning(cents)(new Pitch()).isSharp(boolean)(new Pitch()).isFlat(boolean)(new Pitch()).addHz()(new Pitch()).multiply()
IMPROVEMENTS
enharmonicChromaticScalenow includes double-sharps/double-flats- allowed
getRoundingFunctionto receiveundefined
BREAKING
Pitchconstructor now accepts an argument of either:and still defaults to{ hz: Hz } | { namedNote: NoteName } | { midi: MIDINoteNumber }
{hz: 440}- removed
fromNamedNoteandfromMidiin favor of the above construction. modifications can still be chained after that- const pitch = Pitch.fromNamedNote("A3") + const pitch = new Pitch({namedNote: "A3"})
- const pitch = Pitch.fromMidi(69) + const pitch = new Pitch({midi: 69})
Full Changelog: v0.4.0...v0.5.0