diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-12-18 20:55:49 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-12-18 20:55:49 +0100 |
commit | 46e77b128373ad7d10e004e790f1ff4d4021d4af (patch) | |
tree | 202cec07ab007396ab489bad96349ca4cbcd6dc0 /lib | |
parent | a7278be9668c5f09165f7a673a54dfff324a65a2 (diff) | |
download | digitale-debutanten-46e77b128373ad7d10e004e790f1ff4d4021d4af.tar.gz |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SoftClipperGen.ck | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/SoftClipperGen.ck b/lib/SoftClipperGen.ck new file mode 100644 index 0000000..9969cd8 --- /dev/null +++ b/lib/SoftClipperGen.ck @@ -0,0 +1,10 @@ +/* + * soft-clip a signal within -1 to 1 using a Ghugen + */ +public class SoftClipper extends Chugen { + fun float + tick(float in) + { + return Math.atan(in*2)/(Math.PI/2); + } +} |