Skip to content

v0.4.0

Pre-release
Pre-release

Choose a tag to compare

@danielgamage danielgamage released this 15 Dec 05:55
· 14 commits to main since this release
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