summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ChubgraphStd.ck25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ChubgraphStd.ck b/lib/ChubgraphStd.ck
new file mode 100644
index 0000000..0e5ec90
--- /dev/null
+++ b/lib/ChubgraphStd.ck
@@ -0,0 +1,25 @@
+/*
+ * 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();
+ }
+}