#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

#30 in #dsp

Download history 171/week @ 2021-02-16 151/week @ 2021-02-23 136/week @ 2021-03-02 52/week @ 2021-03-09 74/week @ 2021-03-16 99/week @ 2021-03-23 96/week @ 2021-03-30 100/week @ 2021-04-06 256/week @ 2021-04-13 129/week @ 2021-04-20 113/week @ 2021-04-27 99/week @ 2021-05-04 67/week @ 2021-05-11 125/week @ 2021-05-18 75/week @ 2021-05-25 116/week @ 2021-06-01

511 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

~430–770KB
~15K SLoC