Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Anamark tuning (TUN) files
Synopsis
- tun_sec :: String -> String
- tun_attr_txt :: (String, String) -> String
- tun_attr_int :: (String, Int) -> String
- tun_attr_real :: (String, Double) -> String
- tun_begin :: [String]
- tun_info :: (String, String) -> [String]
- tun_tuning :: [Int] -> [String]
- tun_f0_default :: Double
- tun_exact_tuning :: Double -> [Double] -> [String]
- tun_functional_tuning :: Double -> [Double] -> [String]
- tun_end :: [String]
- type TUN = [String]
- tun_from_cents_version_one :: (Double, [Double]) -> TUN
- tun_from_cents_version_two :: (String, String) -> (Double, [Double]) -> TUN
- tun_store :: FilePath -> TUN -> IO ()
Documentation
tun_info :: (String, String) -> [String] Source #
Format Info section given Name and ID (the only required fields).
tun_info ("name","id")
tun_tuning :: [Int] -> [String] Source #
Format Tuning section given sequence of 128 integral cents values.
tun_tuning [0,100.. 12700]
tun_f0_default :: Double Source #
The default base frequency for Exact Tuning (A4=440)
tun_exact_tuning :: Double -> [Double] -> [String] Source #
Format Exact Tuning section given base frequency and sequence of 128 real cents values.
tun_exact_tuning tun_f0_default [0,100.. 12700]
tun_functional_tuning :: Double -> [Double] -> [String] Source #
Format Functional Tuning section given base frequency and sequence of 128 real cents values.
This simply sets note zero to f0 and increments each note by the difference from the previous note.
tun_functional_tuning tun_f0_default [0,100.. 12700]
tun_from_cents_version_one :: (Double, [Double]) -> TUN Source #
Version 1 has just the Tuning and Exact Tuning.