rsc3-arf

#rsc3-arf (sw-62)

rsc3-arf

rsc3 alternate rate flow

Unit generator constructors evaluate to a procedure (rate -> ugen).

The root of the graph is at audio rate. Inputs run at the rate of the unit generator they connect to. Branches introduce lower rate sub-graphs using the kr and ir functions.

Names of rsc3-arf unit generators are equal to those of the ordinary rsc3 unit generators, one or the other must be renamed.

The rsc3 graph:

(import (rsc3))
(define analog-bubbles
  (let* ((o (mul-add (lf-saw kr (mce2 8 7.23) 0) 3 80))
         (f (mul-add (lf-saw kr 0.4 0) 24 o))
         (s (mul (sin-osc ar (midi-cps f) 0) 0.1)))
    (out 0 (comb-n s 0.2 0.2 4))))

is re-written as:

(import (rsc3 arf))
(define analog-bubbles
  (let* ((o (mul-add (lf-saw (mce2 8 7.23) 0) 3 80))
         (f (mul-add (lf-saw 0.4 0) 24 o))
         (s (mul (sin-osc (kr (midi-cps f)) 0) 0.1)))
    (out 0 (comb-n s 0.2 0.2 4))))

© rohan drape, 2005–2012, gpl.

rsc3 alternate rate flow
rsc3, mk-r6rs, scheme, rhs, sosc
darcs get http://rd.slavepianos.org/sw/rsc3-arf [dir, README]