Skip to content

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

Notifications You must be signed in to change notification settings

RustAudio/pitch_calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pitch_calc Build Status Crate info API docs

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages