summaryrefslogtreecommitdiff
path: root/lib/Clipper.ck
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Clipper.ck')
-rw-r--r--lib/Clipper.ck20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Clipper.ck b/lib/Clipper.ck
deleted file mode 100644
index eb45ea2..0000000
--- a/lib/Clipper.ck
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * clip signal within -1 to 1 with simple UGens
- */
-public class Clipper extends ChubgraphStd {
- /* calculate a from HalfRect(inlet + 1) */
- Step __one; 1 => __one.next;
- inlet => HalfRect __a;
- __one => __a;
-
- /* calculate b from HalfRect(2 - HalfRect(inlet + 1)) */
- Step __two; 2 => __two.next;
- -1 => __a.gain;
- __a => HalfRect __b;
- __two => __b;
-
- /* the result we want: 1 - HalfRect(2 - HalfRect(inlet + 1)) */
- -1 => __b.gain;
- __one => outlet;
- __b => outlet;
-}