diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-08-30 15:02:07 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-08-30 15:02:07 +0200 |
commit | ebb2c113ca26cd936c6b5a16b7b501240b41c559 (patch) | |
tree | deece0f0888a470584393b072ee26fd62985816b | |
parent | 02db8b72d1d692596e8ba21bd8fe285b0d4a438d (diff) | |
download | digitale-debutanten-ebb2c113ca26cd936c6b5a16b7b501240b41c559.tar.gz |
add base clase for Chubgraphs implementing some standard methods
-rw-r--r-- | lib/ChubgraphStd.ck | 25 |
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(); + } +} |