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.

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

Types

Usage

Add the following to your Cargo.toml.

toml [dependencies.pitch_calc] git = "https://github.com/RustAudio/pitch_calc" or toml [dependencies] pitch_calc = "X.X.X" where "X.X.X" is the version you want (find the latest version in the Cargo.toml).

See the example for a simple demonstration.