#pitch #conversion #dsp #music

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

#1169 in Audio

Download history 107/week @ 2024-07-19 110/week @ 2024-07-26 98/week @ 2024-08-02 122/week @ 2024-08-09 186/week @ 2024-08-16 158/week @ 2024-08-23 92/week @ 2024-08-30 85/week @ 2024-09-06 90/week @ 2024-09-13 157/week @ 2024-09-20 107/week @ 2024-09-27 53/week @ 2024-10-04 56/week @ 2024-10-11 64/week @ 2024-10-18 52/week @ 2024-10-25 79/week @ 2024-11-01

255 downloads per month
Used in fewer than 11 crates

Apache-2.0/MIT

46KB
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

~0.5–1MB
~15K SLoC