midi-0.2.2.2: Handling of MIDI messages and files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.MIDI.KeySignature

Synopsis

Documentation

data T Source #

Constructors

Cons Mode Accidentals 

Instances

Instances details
Arbitrary T Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

arbitrary :: Gen T #

shrink :: T -> [T] #

Show T Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

Eq T Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

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

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

Ord T Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

compare :: T -> T -> Ordering #

(<) :: T -> T -> Bool #

(<=) :: T -> T -> Bool #

(>) :: T -> T -> Bool #

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

max :: T -> T -> T #

min :: T -> T -> T #

newtype Accidentals Source #

Accidentals as used in key signature.

Constructors

Accidentals Int 

Instances

Instances details
Arbitrary Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Bounded Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Enum Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Ix Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Show Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Eq Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Ord Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Random Accidentals Source # 
Instance details

Defined in Sound.MIDI.KeySignature

data Mode Source #

The Key Signature specifies a mode, either major or minor.

Constructors

Major 
Minor 

Instances

Instances details
Arbitrary Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

arbitrary :: Gen Mode #

shrink :: Mode -> [Mode] #

Bounded Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Enum Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

succ :: Mode -> Mode #

pred :: Mode -> Mode #

toEnum :: Int -> Mode #

fromEnum :: Mode -> Int #

enumFrom :: Mode -> [Mode] #

enumFromThen :: Mode -> Mode -> [Mode] #

enumFromTo :: Mode -> Mode -> [Mode] #

enumFromThenTo :: Mode -> Mode -> Mode -> [Mode] #

Ix Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

range :: (Mode, Mode) -> [Mode] #

index :: (Mode, Mode) -> Mode -> Int #

unsafeIndex :: (Mode, Mode) -> Mode -> Int #

inRange :: (Mode, Mode) -> Mode -> Bool #

rangeSize :: (Mode, Mode) -> Int #

unsafeRangeSize :: (Mode, Mode) -> Int #

Show Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

Eq Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

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

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

Ord Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

compare :: Mode -> Mode -> Ordering #

(<) :: Mode -> Mode -> Bool #

(<=) :: Mode -> Mode -> Bool #

(>) :: Mode -> Mode -> Bool #

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

max :: Mode -> Mode -> Mode #

min :: Mode -> Mode -> Mode #

Random Mode Source # 
Instance details

Defined in Sound.MIDI.KeySignature

Methods

randomR :: RandomGen g => (Mode, Mode) -> g -> (Mode, g) #

random :: RandomGen g => g -> (Mode, g) #

randomRs :: RandomGen g => (Mode, Mode) -> g -> [Mode] #

randoms :: RandomGen g => g -> [Mode] #

get :: C parser => Fragile parser T Source #

toBytes :: T -> [Int] Source #