Skip to content

Wrangle notes with Meantonal

A low-level library for representing pitch in Western music.

Install

curl https://meantonal.org/meantonal.h > meantonal.h

Flexible representation

Easily ingest and translate between Scientific Pitch Notation, Helmholtz notation, ABC and Lilypond. Extract MIDI values at any time.

Spelling matters

C♯ and D♭ are different notes. A major third and a diminished fourth are different intervals. Meantonal is semantically nondestructive.

It's just vectors

Under the hood pitches and intervals are 2d vectors. Operations are simple to understand, composable and fast to execute.

Tuning-agnostic

Target any meantone tuning system, not just 12-tone equal temperament. You want 31 tones per octave? Done.