music-pitch-1.9.0: Musical pitch representation.

Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Absolute

Contents

Description

Absolute pitch representation.

Synopsis

Absolute pitch representation

newtype Hertz Source

Absolute frequency in Hertz.

Constructors

Hertz 

Fields

getHertz :: Double
 

data Cents Source

Number of cents.

Cents are a logarithmic representation of frequency such that

f * (2/1) = frequency (cents f + 1200)

data Fifths Source

Number of pure fifths.

Fifths are a logarithmic representation of frequency.

f * (3/2) = frequency (fifths f + 1)

HasFrequency class

fifths :: HasFrequency a => a -> Fifths Source

 Convert a frequency to fifths.

cents :: HasFrequency a => a -> Cents Source

 Convert a frequency to cents.