Skip to content

Releases

v0.5.0

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

v0.4.0

v0.4.0 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 15 Dec 05:55
b5af12f
  • Hz-related inputs now validate the argument before calculating
  • getRoundingFunction now returns Math.round if some broken argument is passed in
  • Pitch class additions:
    • instantiation via Pitch.fromMidi() (like fromNamedNote)
    • octave
    • noteName
    • removed the following A4-relative getters:
      • .semitones
      • .cents
      • .ratio
    • added the following methods to be relative to another Pitch instance or Hz:
      • .semitonesFrom
      • .semitonesTo
      • .centsFrom
      • .centsTo
      • .ratioFrom
      • .ratioTo
  • New conversions
    • semitonesToNoteName
    • semitonesToNoteObject
    • centsToNoteName
    • centsToNoteObject
    • namedNoteToNoteObject
    • ratioToNoteName
    • ratioToNoteObject
  • adding roundingMethod argument to MIDI-related functions

v0.3.1

v0.3.1 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 12 Nov 06:36
1e2af2e

README update

v0.3.0

v0.3.0 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 21 Oct 14:59
eee4ba6

MIDI conversion, white/black keys
Full Changelog: v0.2.0...v0.3.0

v0.2.0

v0.2.0 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 24 Apr 06:02
a9218db

Full Changelog: v0.1.3...v0.2.0

v0.1.3

v0.1.3 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 19 Apr 00:43
f0f5245

Full Changelog: v0.1.1...v0.1.3

v0.1.1

v0.1.1 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 17 Apr 05:21
5f55005

Full Changelog: v0.1.0...v0.1.1

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 16 Apr 23:31
5aed97f

Initial release