From f03fc538d5762ed5b540d4d21438d6aafa0a6fb8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 7 Sep 2012 21:04:14 +0200 Subject: removed ChubgraphStd workaround fixed in ChucK v1.3.1.0 --- lib.ck | 1 - lib/ChubgraphStd.ck | 25 ------------------------- lib/ClipperGraph.ck | 2 +- lib/SampOsc.ck | 2 +- 4 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 lib/ChubgraphStd.ck diff --git a/lib.ck b/lib.ck index f5508df..a3af988 100644 --- a/lib.ck +++ b/lib.ck @@ -1,5 +1,4 @@ /* Includes */ -Machine.add("lib/ChubgraphStd.ck"); Machine.add("lib/LiSaX.ck"); Machine.add("lib/SampOsc.ck"); Machine.add("lib/ClipperGraph.ck"); diff --git a/lib/ChubgraphStd.ck b/lib/ChubgraphStd.ck deleted file mode 100644 index 0e5ec90..0000000 --- a/lib/ChubgraphStd.ck +++ /dev/null @@ -1,25 +0,0 @@ -/* - * BUG WORKAROUND: - * Base class for all Chubgraphs, - * necessary because some default methods are unimplemented in the - * Chubgraph class - */ -public class ChubgraphStd extends Chubgraph { - fun float - gain(float g) - { - return g => outlet.gain; - } - - fun float - gain() - { - return outlet.gain(); - } - - fun float - last() - { - return outlet.last(); - } -} diff --git a/lib/ClipperGraph.ck b/lib/ClipperGraph.ck index 86e6183..db5fc14 100644 --- a/lib/ClipperGraph.ck +++ b/lib/ClipperGraph.ck @@ -1,7 +1,7 @@ /* * clip signal within -1 to 1 with simple UGens */ -public class ClipperGraph extends ChubgraphStd { +public class ClipperGraph extends Chubgraph { /* calculate a from HalfRect(inlet + 1) */ Step __one; 1 => __one.next; inlet => HalfRect __a; diff --git a/lib/SampOsc.ck b/lib/SampOsc.ck index d6adb4b..398e087 100644 --- a/lib/SampOsc.ck +++ b/lib/SampOsc.ck @@ -1,7 +1,7 @@ /* * Sample based oscillator */ -public class SampOsc extends ChubgraphStd { +public class SampOsc extends Chubgraph { static string @__sourceDir; /* pseudo-private */ inlet => blackhole; -- cgit v1.2.3