hsc3-0.12: Haskell SuperCollider

Safe HaskellNone

Sound.SC3.Server.Synthdef.Transform

Contents

Description

Transformations over Graph structure.

Synopsis

Lift constants

constant_to_control :: NodeId -> Node -> (NodeId, Node)Source

Transform NodeC to NodeK, id for other Node types.

 constant_to_control 8 (NodeC 0 0.1) == (NodeK 8 KR "k_8" 0.1 K_KR,9)

c_lift_from_port :: Graph -> NodeId -> FromPort -> (NodeId, Either FromPort Node)Source

If the FromPort is a constant generate a control Node, else retain FromPort.

c_lift_inputs :: Graph -> NodeId -> [FromPort] -> (NodeId, [FromPort], [Node])Source

Lift a set of NodeU inputs from constants to controls. The result triple gives the incremented NodeId, the transformed FromPort list, and the list of newly minted control Nodes.