Copyright | (c) Hans Hoglund 2012-2014 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
Provides a representation of harmonics.
- class HasHarmonic a where
- setNatural :: Bool -> a -> a
- setHarmonic :: Int -> a -> a
- newtype HarmonicT a = HarmonicT {
- getHarmonicT :: Couple (Any, Sum Int) a
- harmonic :: HasHarmonic a => Int -> a -> a
- artificial :: HasHarmonic a => a -> a
Harmonics
class HasHarmonic a where Source
setNatural :: Bool -> a -> a Source
setHarmonic :: Int -> a -> a Source
HasHarmonic a => HasHarmonic [a] | |
HasHarmonic a => HasHarmonic (Score a) | |
HasHarmonic a => HasHarmonic (TieT a) | |
HasHarmonic a => HasHarmonic (SlideT a) | |
HasHarmonic a => HasHarmonic (TextT a) | |
HasHarmonic (HarmonicT a) | |
HasHarmonic a => HasHarmonic (TremoloT a) | |
HasHarmonic a => HasHarmonic (ColorT a) | |
HasHarmonic a => HasHarmonic (b, a) | |
HasHarmonic a => HasHarmonic (Couple b a) | |
HasHarmonic a => HasHarmonic (PartT n a) |
harmonic :: HasHarmonic a => Int -> a -> a Source
Make all notes natural harmonics on the given overtone (1 for octave, 2 for fifth etc). Sounding pitch is unaffected, but notated output is transposed automatically.
artificial :: HasHarmonic a => a -> a Source
Make all notes natural harmonics on the given overtone (1 for octave, 2 for fifth etc). Sounding pitch is unaffected, but notated output is transposed automatically.