Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data TTO t = TTO {}
- tto_identity :: Num t => TTO t
- tto_pp :: Show t => TTO t -> String
- p_tto :: Integral t => GenParser Char () (TTO t)
- tto_parse :: Integral i => String -> TTO i
- z_tto_univ :: Integral t => Z t -> [TTO t]
- z_tto_f :: Integral t => t -> Z t -> TTO t -> t -> t
- z_tto_apply :: Integral t => t -> Z t -> TTO t -> [t] -> [t]
- tto_apply :: Integral t => t -> TTO t -> [t] -> [t]
- z_tto_rel :: (Ord t, Integral t) => t -> Z t -> [t] -> [t] -> [TTO t]
- z_pcset :: Ord t => Z t -> [t] -> [t]
Documentation
Twelve-tone operator, of the form TMI.
tto_identity :: Num t => TTO t Source #
tto_parse :: Integral i => String -> TTO i Source #
Parser, transposition must be decimal.
map (tto_pp . tto_parse) (words "T5 T3I T11M T9MI")
z_tto_f :: Integral t => t -> Z t -> TTO t -> t -> t Source #
M is ordinarily 5, but can be specified here.
map (z_tto_f 5 mod12 (tto_parse "T1M")) [0,1,2,3] == [1,6,11,4]