summaryrefslogtreecommitdiff
path: root/lib/Bus.ck
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-04-16 17:09:49 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-04-16 17:09:49 +0200
commit7f8536b4a6d7fd06b1cd4929f548d241183c09cd (patch)
treee26f0579bc0988b4861e2da7582244121972442f /lib/Bus.ck
downloaddigitale-debutanten-7f8536b4a6d7fd06b1cd4929f548d241183c09cd.tar.gz
initial import of files relevant for noise project
Diffstat (limited to 'lib/Bus.ck')
-rw-r--r--lib/Bus.ck30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/Bus.ck b/lib/Bus.ck
new file mode 100644
index 0000000..fbbca74
--- /dev/null
+++ b/lib/Bus.ck
@@ -0,0 +1,30 @@
+/*
+ * Public data bus
+ */
+public class Bus {
+ static Gain @out_left;
+ static Gain @out_right;
+
+ /* chucked in Oscope.ck */
+ static Gain @oscope[];
+
+ static Gain @channels[];
+}
+/* initialization */
+new Gain @=> Bus.out_left;
+new Gain @=> Bus.out_right;
+new Gain[3] @=> Bus.oscope;
+new Gain[8] @=> Bus.channels;
+
+/* limiting and clipping for main stereo outputs */
+Clipper clipper1;
+Bus.out_left => Dyno dyn1 => clipper1.input;
+clipper1.output => dac.chan(0);
+dyn1.limit();
+
+Clipper clipper2;
+Bus.out_right => Dyno dyn2 => clipper2.input;
+clipper2.output => dac.chan(1);
+dyn2.limit();
+
+while (day => now);