hsc3-db-0.12: Haskell SuperCollider Unit Generator Database

Safe HaskellSafe-Inferred

Sound.SC3.UGen.DB

Description

SuperCollider UGen database.

The database is generated by an sclang program and is given by the constant value ugenDB, which is a list of U entries.

 length ugenDB == 740

Synopsis

Documentation

uLookup :: String -> Maybe USource

Lookup U at ugenDB.

 fmap ugen_default_rate (uLookup "SinOsc") == Just Sound.SC3.AR

uLookup_ci :: String -> Maybe USource

Case-insensitive variant of uLookup.

 fmap ugen_default_rate (uLookup_ci "fft") == Just Sound.SC3.KR

i_is_mce :: U -> I -> BoolSource

Is the input I mce collapsed at U.

iPP :: U -> I -> StringSource

Pretty printer for I.

 let Just u = uLookup "SinOsc"
 in iPP u (I (0,0) "freq" 440.0) == "freq=440.0"
 let Just u = uLookup "Out"
 in iPP u (I (1,1) "channelsArray" 0) == "*channelsArray=0.0"

u_summary :: U -> StringSource

Generate simple summary string for U.

ugenSummary' :: Bool -> String -> StringSource

Lookup named UGen and generate simple summary string. If the fold case flag is true the name lookup is case insensitive.

ugenSummary :: String -> StringSource

Lookup named UGen and generate simple summary string.

 ugenSummary "SinOsc" == "SinOsc [AR,KR] freq=440.0 phase=0.0"

ugenSummary_ci :: String -> StringSource

Case-insensitive variant of ugenSummary.

 ugenSummary_ci "fSinOsc" == "FSinOsc [AR,KR] freq=440.0 iphase=0.0"