hsc3-dot-0.16: haskell supercollider graph drawing

Safe HaskellSafe
LanguageHaskell2010

Sound.SC3.UGen.Dot.Common

Synopsis

Documentation

bracket1 :: (a, a) -> [a] -> [a] Source #

Bracket with elements.

bracket :: ([a], [a]) -> [a] -> [a] Source #

Bracket with lists.

string_pp :: String -> String Source #

bracket with double quotes.

label_pp :: String -> String Source #

bracket with double quotes and braces.

int_pp :: Int -> String Source #

Type specialised show.

right_variant :: ([a] -> [b]) -> [a] -> [b] Source #

reverse of f of reverse.

let drop_while_right f = right_variant (dropWhile f)
in drop_while_right isUpper "abcDEF" == "abc"

limit_precision_p :: PrintfArg n => Bool -> Int -> n -> String Source #

Limited precision PP for n, no scientific notation.

map (limit_precision_p True 2) [1,1.25,1.12345,0,0.05,pi*1e8,1e9]

limit_precision_e :: (Read n, Show n) => Int -> n -> String Source #

Limited precision PP for n, with scientific notation.

map (limit_precision_e 3) [1,1.25,0.05,pi*1e8,1e9,read "Infinity"]

limit_precision :: (Floating n, Ord n, Read n, Show n, PrintfArg n) => Bool -> Int -> n -> String Source #

Variant selecting scientific notation more cautiously than haskells default PP.

map (limit_precision True 3) [1,1.25,0.05,0,pi*1e8,1e9]