hmt-0.20: Haskell Music Theory
Safe HaskellSafe-Inferred
LanguageHaskell2010

Music.Theory.Tuning.Anamark

Description

Synopsis

Documentation

tun_sec :: String -> String Source #

Format section string

tun_attr_txt :: (String, String) -> String Source #

Format String (text) attribute

tun_attr_int :: (String, Int) -> String Source #

Format Int attribute

tun_attr_real :: (String, Double) -> String Source #

Format Double attribute

tun_begin :: [String] Source #

TUN V.200 Scale Begin (header) section.

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_end :: [String] Source #

Format Scale End section header.

type TUN = [String] Source #

Synonym for a list of strings.

tun_from_cents_version_one :: (Double, [Double]) -> TUN Source #

Version 1 has just the Tuning and Exact Tuning.

tun_from_cents_version_two :: (String, String) -> (Double, [Double]) -> TUN Source #

Version 2 files have, in addition, Begin, Info, Functional Tuning and End sections.