From 800ce59a86b62a93cf3347991ec1b7dbcb2f77e9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 5 Sep 2012 02:48:22 +0200 Subject: add monitor port to Bus (goes to second soundcard for head phones) --- lib/Bus.ck | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/Bus.ck b/lib/Bus.ck index d9cd2a4..b490f8f 100644 --- a/lib/Bus.ck +++ b/lib/Bus.ck @@ -5,6 +5,9 @@ public class Bus { static Gain @out_left; static Gain @out_right; + static Gain @monitor_left; + static Gain @monitor_right; + /* chucked in Oscope.ck */ static Gain @oscope[]; @@ -13,6 +16,8 @@ public class Bus { /* initialization */ new Gain @=> Bus.out_left; new Gain @=> Bus.out_right; +new Gain @=> Bus.monitor_left; +new Gain @=> Bus.monitor_right; new Gain[3] @=> Bus.oscope; new Gain[8] @=> Bus.channels; @@ -23,5 +28,9 @@ dyn1.limit(); Bus.out_right => Dyno dyn2 => Clipper clipper2 => dac.chan(1); dyn2.limit(); +/* monitor output */ +Bus.monitor_left => Clipper clipper3 => dac.chan(2); +Bus.monitor_right => Clipper clipper4 => dac.chan(3); + /* keep shred running, so the graph persists */ while (day => now); -- cgit v1.2.3