Arkham / elm-chords / Chords.Pitch

Represents a note in a certain octave


type Pitch

A Pitch describes a note in a certain octave.


type alias Octave =
Basics.Int

The octave of our pitch.

Creating Pitches

build : Chords.Note.Note -> Octave -> Pitch

Creates a Pitch.

Manipulating Pitches

next : Pitch -> Pitch

Returns the next Pitch, which could be in another octave.

transpose : Basics.Int -> Pitch -> Pitch

Returns the Pitch transposed by a number of semitones.

Exporting

toNote : Pitch -> Chords.Note.Note

Converts a Pitch to a Note.