| Portability | non-portable |
|---|---|
| Stability | experimental |
| Maintainer | bash@cs.uu.nl, jpm@cs.ox.ac.uk |
| Safe Haskell | None |
HarmTrace.Accompany
Description
Summary: Generate a melody (accompaniment) for a given harmony
Documentation
Constructors
| MyState | |
Fields
| |
allPossibleRel :: [ChordToken] -> [(ChordToken, [ScaleDegree])]Source
allPossible :: State MyState [(ChordLabel, [MelodyNote])]Source
notesRootedOn :: ScaleDegree -> ClassType -> [ScaleDegree]Source
refine :: [(ChordLabel, [MelodyNote])] -> State MyState [(ChordLabel, [MelodyNote])]Source
pickBest :: [(ChordLabel, [MelodyNote])] -> State MyState [(ChordLabel, MelodyNote)]Source
embellish :: [(ChordLabel, MelodyNote)] -> State MyState [(ChordLabel, [MelodyNote])]Source
connectNotes :: StdGen -> Key -> ChordLabel -> MelodyNote -> MelodyNote -> [MelodyNote]Source
notesInKey :: Key -> [MelodyNote]Source
notesInChord :: ChordLabel -> [MelodyNote]Source