hsc3-0.17: Haskell SuperCollider

Safe HaskellSafe
LanguageHaskell98

Sound.SC3.UGen.Protect

Description

Functions to re-write assigned node identifiers at UGen graphs. Used carefully it allows for composition of sub-graphs with psuedo-random nodes.

Synopsis

Documentation

edit_ugenid :: ID a => a -> UGenId -> UGenId Source #

Replace UId i at z with (e,i).

uprotect :: ID a => a -> UGen -> UGen Source #

edit_ugenid of e at all Primitive_U of u.

uprotect_seq :: ID a => a -> [UGen] -> [UGen] Source #

Variant of uprotect with subsequent identifiers derived by incrementing initial identifier.

uclone_seq :: ID a => a -> Int -> UGen -> [UGen] Source #

Make n instances of UGen with protected identifiers.

uclone :: ID a => a -> Int -> UGen -> UGen Source #

ucompose :: ID a => a -> [UGen -> UGen] -> UGen -> UGen Source #

Left to right UGen function composition with UGenId protection.

useq :: ID a => a -> Int -> (UGen -> UGen) -> UGen -> UGen Source #

Make n sequential instances of f with protected Ids.