music-pitch-literal-1.9.0: Overloaded pitch literals.

Copyright(c) Hans Hoglund 2012
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Alterable

Contents

Description

 

Synopsis

Alterable class

class Alterable a where Source

Class of things that can be altered.

accidental (sharpen a) = sharpen (accidental a)
accidental (flatten a) = flatten (accidental a)
sharpen . flatten      = id

Methods

sharpen :: a -> a Source

Increase the given pitch by one.

flatten :: a -> a Source

Decrease the given pitch by one.

Instances

alter :: Alterable a => Int -> a -> a Source