#pitch #dsp #audio #music #conversion

pitch_calc

A library for musical pitch conversions! Provides functions and methods for converting between frequency, midi-step and letter-octave

17 releases

0.12.0 Mar 29, 2020
0.11.1 Apr 28, 2017
0.11.0 Jun 7, 2016
0.10.0 Dec 12, 2015
0.8.1 Dec 24, 2014

#19 in #dsp

Download history 128/week @ 2020-11-07 91/week @ 2020-11-14 95/week @ 2020-11-21 86/week @ 2020-11-28 239/week @ 2020-12-05 103/week @ 2020-12-12 91/week @ 2020-12-19 48/week @ 2020-12-26 100/week @ 2021-01-02 96/week @ 2021-01-09 126/week @ 2021-01-16 86/week @ 2021-01-23 89/week @ 2021-01-30 95/week @ 2021-02-06 166/week @ 2021-02-13 103/week @ 2021-02-20

508 downloads per month
Used in less than 11 crates

Apache-2.0/MIT

45KB
1.5K SLoC

pitch_calc Build Status

A library for musical pitch conversions!

pitch_calc provides functions and methods for converting between frequency, midi-step and letter-octave.

It looks like this.

assert!(Hz(440.0).letter_octave() == (A, 4))

Types

  • Hz: "times per second".
  • LetterOctave: musical letter notation.
  • Mel: a perceptual scale of pitches judged by listeners to be equal in distance from one another.
  • Perc: Percentage of the average human hearing range (20hz - 20khz).
  • ScaledPerc: Scaled percentage of the human hearing range.
  • Step: MIDI semitone steps.

lib.rs:

pitch_calc

Created by Mitchell Nordine at 11:26PM on November 02, 2014.

Dependencies

~435–750KB
~14K SLoC