Skip to content

v0.5.0

Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 02 May 07:01
ff673b0

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

  • enharmonicChromaticScale now includes double-sharps/double-flats
  • allowed getRoundingFunction to receive undefined

BREAKING

  • Pitch constructor now accepts an argument of either:
    {
      hz: Hz
    } | {
      namedNote: NoteName
    } | {
      midi: MIDINoteNumber
    } 
    and still defaults to {hz: 440}
  • removed fromNamedNote and fromMidi in 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