music-diatonic-0.1.2: Implementation of basic western musical theory objects.

Safe HaskellSafe
LanguageHaskell98

Music.Diatonic.Key

Description

This module inplements keys.

Synopsis

Documentation

data Key Source #

Instances

Eq Key Source # 

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Read Key Source # 
Show Key Source # 

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Qual Key Source # 

Methods

quality :: Key -> Quality Source #

Equiv Key Source # 

Methods

equiv :: Key -> Key -> Bool Source #

Nte Key Source # 

Methods

noteMap :: (Note -> Note) -> Key -> Key Source #

($#) :: (Note -> Note) -> Key -> Key Source #

notePlus :: (Note -> Note -> b) -> Key -> Key -> b Source #

Scl Key Source # 

Methods

scale :: Key -> Scale Source #

majorKey :: Note -> Key Source #

Creates a Major Key centered around the specified Note.

minorKey :: Note -> Key Source #

Creates a Major Key centered around the specified Note.

center :: Key -> Note Source #

Returns the Note that is the key's center.

key :: Scale -> Key Source #

Creates a Key based on the specified Scale.

parallel :: Key -> Key Source #

Returns the parallel Key of the specified Key.

relative :: Key -> Key Source #

Returns the relative Key of the specified Key.

relativeMajor :: Key -> Key Source #

Returns the relative Major Key of the specified Key.

relativeMinor :: Key -> Key Source #

Returns the relative Minor Key of the specified Key.

signature :: Key -> Signature Source #

Returns the Signature of the specified Key.

sigDetails :: Signature -> (Accidental, Int) Source #

Returns the details of the specified Key:

  1. The Accidental that is used in the Key Signature.
  2. The number of those Accidentals used in the Key Signature.