Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Functions to load a tuning definition and transform it into a sparse tuning function.
- load_cps_tbl :: FilePath -> IO [(Int, Double)]
- load_tuning_scl :: String -> IO Tuning
- load_tuning_cps :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F
- load_tuning_d12 :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F
- load_tuning_tbl :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F
- type Choose_f st t = [t] -> st -> (t, st)
- default_choose_f :: RandomGen g => Choose_f g t
- load_tuning_tbl_st :: Choose_f st (Int, Double) -> (String, Double, Int) -> IO (Sparse_Midi_Tuning_ST_F st)
- load_tuning_ty :: String -> (String, Double, Int) -> IO Sparse_Midi_Tuning_F
- load_tuning_st_ty :: String -> (String, Double, Int) -> IO (Sparse_Midi_Tuning_ST_F StdGen)
Documentation
load_cps_tbl :: FilePath -> IO [(Int, Double)] Source #
Load possibly sparse and possibly one-to-many (midi-note-number,cps-frequency) table from CSV file.
load_cps_tbl "/home/rohan/dr.csv"
load_tuning_cps :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F Source #
Load scala file and apply cps_midi_tuning_f
.
load_tuning_d12 :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F Source #
Load scala file and apply d12_midi_tuning_f
.
load_tuning_tbl :: (String, Double, Int) -> IO Sparse_Midi_Tuning_F Source #
Lookup first matching element in table.
default_choose_f :: RandomGen g => Choose_f g t Source #
Randomly choose from elements in table, equal weighting.
load_tuning_tbl_st :: Choose_f st (Int, Double) -> (String, Double, Int) -> IO (Sparse_Midi_Tuning_ST_F st) Source #
Load tuning table with stateful selection function for one-to-many entries.
load_tuning_ty :: String -> (String, Double, Int) -> IO Sparse_Midi_Tuning_F Source #
load_tuning_st_ty :: String -> (String, Double, Int) -> IO (Sparse_Midi_Tuning_ST_F StdGen) Source #