Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- major :: Num a => [a]
- aug :: Num a => [a]
- six :: Num a => [a]
- sixNine :: Num a => [a]
- major7 :: Num a => [a]
- major9 :: Num a => [a]
- add9 :: Num a => [a]
- major11 :: Num a => [a]
- add11 :: Num a => [a]
- major13 :: Num a => [a]
- add13 :: Num a => [a]
- dom7 :: Num a => [a]
- dom9 :: Num a => [a]
- dom11 :: Num a => [a]
- dom13 :: Num a => [a]
- sevenFlat5 :: Num a => [a]
- sevenSharp5 :: Num a => [a]
- sevenFlat9 :: Num a => [a]
- nine :: Num a => [a]
- eleven :: Num a => [a]
- thirteen :: Num a => [a]
- minor :: Num a => [a]
- diminished :: Num a => [a]
- minorSharp5 :: Num a => [a]
- minor6 :: Num a => [a]
- minorSixNine :: Num a => [a]
- minor7flat5 :: Num a => [a]
- minor7 :: Num a => [a]
- minor7sharp5 :: Num a => [a]
- minor7flat9 :: Num a => [a]
- minor7sharp9 :: Num a => [a]
- diminished7 :: Num a => [a]
- minor9 :: Num a => [a]
- minor11 :: Num a => [a]
- minor13 :: Num a => [a]
- one :: Num a => [a]
- five :: Num a => [a]
- sus2 :: Num a => [a]
- sus4 :: Num a => [a]
- sevenSus2 :: Num a => [a]
- sevenSus4 :: Num a => [a]
- nineSus4 :: Num a => [a]
- sevenFlat10 :: Num a => [a]
- nineSharp5 :: Num a => [a]
- minor9sharp5 :: Num a => [a]
- sevenSharp5flat9 :: Num a => [a]
- minor7sharp5flat9 :: Num a => [a]
- elevenSharp :: Num a => [a]
- minor11sharp :: Num a => [a]
- chordTable :: Num a => [(String, [a])]
- chordL :: Num a => Pattern String -> Pattern [a]
- chordList :: String
- data Modifier
- applyModifier :: (Enum a, Num a) => Modifier -> [a] -> [a]
- applyModifierPat :: (Num a, Enum a) => Pattern [a] -> Pattern [Modifier] -> Pattern [a]
- applyModifierPatSeq :: (Num a, Enum a) => (a -> b) -> Pattern [a] -> [Pattern [Modifier]] -> Pattern [b]
- chordToPatSeq :: (Num a, Enum a) => (a -> b) -> Pattern a -> Pattern String -> [Pattern [Modifier]] -> Pattern b
- chord :: (Num a, Enum a) => Pattern a -> Pattern String -> [Pattern [Modifier]] -> Pattern a
Documentation
sevenFlat5 :: Num a => [a] Source #
sevenSharp5 :: Num a => [a] Source #
sevenFlat9 :: Num a => [a] Source #
diminished :: Num a => [a] Source #
minorSharp5 :: Num a => [a] Source #
minorSixNine :: Num a => [a] Source #
minor7flat5 :: Num a => [a] Source #
minor7sharp5 :: Num a => [a] Source #
minor7flat9 :: Num a => [a] Source #
minor7sharp9 :: Num a => [a] Source #
diminished7 :: Num a => [a] Source #
sevenFlat10 :: Num a => [a] Source #
nineSharp5 :: Num a => [a] Source #
minor9sharp5 :: Num a => [a] Source #
sevenSharp5flat9 :: Num a => [a] Source #
minor7sharp5flat9 :: Num a => [a] Source #
elevenSharp :: Num a => [a] Source #
minor11sharp :: Num a => [a] Source #
chordTable :: Num a => [(String, [a])] Source #
chordate cs m n
selects the n
th "chord" (a chord is a list of Ints)
from a list of chords cs
and transposes it by m
chordate :: Num b => [[b]] -> b -> Int -> [b]
chordate cs m n = map (+m) $ cs!!n
enchord chords pn pc
turns every note in the note pattern pn
into
a chord, selecting from the chord lists chords
using the index pattern
pc
. For example, Chords.enchord [Chords.major Chords.minor] "c g" "0 1"
will create a pattern of a C-major chord followed by a G-minor chord.
enchord :: Num a => [[a]] -> Pattern a -> Pattern Int -> Pattern a
enchord chords pn pc = flatpat $ (chordate chords) $ pn * pc
applyModifierPatSeq :: (Num a, Enum a) => (a -> b) -> Pattern [a] -> [Pattern [Modifier]] -> Pattern [b] Source #