Permalink
Browse files

adding modules

  • Loading branch information...
1 parent 1183f5b commit 3e07c9c76b1d9909af350701ba4f5aa4ab0b0593 @heuermh committed Nov 30, 2012
Showing with 394 additions and 0 deletions.
  1. +41 −0 Module.ck
  2. +43 −0 Module2.ck
  3. +45 −0 Module3.ck
  4. +47 −0 Module4.ck
  5. +49 −0 Module5.ck
  6. +51 −0 Module6.ck
  7. +53 −0 Module7.ck
  8. +55 −0 Module8.ck
  9. +10 −0 import.ck
View
@@ -0,0 +1,41 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module extends Chugen
+{
+ Gain _cv;
+
+ {
+ _cv => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,43 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module2 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,45 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module3 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,47 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module4 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+ Gain _cv3;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ _cv3 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last(), _cv3.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2, float cv3)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,49 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module5 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+ Gain _cv3;
+ Gain _cv4;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ _cv3 => blackhole;
+ _cv4 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last(), _cv3.last(), _cv4.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2, float cv3, float cv4)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,51 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module6 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+ Gain _cv3;
+ Gain _cv4;
+ Gain _cv5;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ _cv3 => blackhole;
+ _cv4 => blackhole;
+ _cv5 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last(), _cv3.last(), _cv4.last(), _cv5.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2, float cv3, float cv4, float cv5)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,53 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module7 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+ Gain _cv3;
+ Gain _cv4;
+ Gain _cv5;
+ Gain _cv6;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ _cv3 => blackhole;
+ _cv4 => blackhole;
+ _cv5 => blackhole;
+ _cv6 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last(), _cv3.last(), _cv4.last(), _cv5.last(), _cv6.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2, float cv3, float cv4, float cv5, float cv6)
+ {
+ return in;
+ }
+}
View
@@ -0,0 +1,55 @@
+/*
+
+ LiCK Library for ChucK.
+ Copyright (c) 2007-2012 held jointly by the individual authors.
+
+ This file is part of LiCK.
+
+ LiCK is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LiCK is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LiCK. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+public class Module8 extends Chugen
+{
+ Gain _cv0;
+ Gain _cv1;
+ Gain _cv2;
+ Gain _cv3;
+ Gain _cv4;
+ Gain _cv5;
+ Gain _cv6;
+ Gain _cv7;
+
+ {
+ _cv0 => blackhole;
+ _cv1 => blackhole;
+ _cv2 => blackhole;
+ _cv3 => blackhole;
+ _cv4 => blackhole;
+ _cv5 => blackhole;
+ _cv6 => blackhole;
+ _cv7 => blackhole;
+ }
+
+ fun float tick(float in)
+ {
+ return tick(in, _cv0.last(), _cv1.last(), _cv2.last(), _cv3.last(), _cv4.last(), _cv5.last(), _cv6.last(), _cv7.last());
+ }
+
+ // subclasses override this function
+ fun float tick(float in, float cv0, float cv1, float cv2, float cv3, float cv4, float cv5, float cv6, float cv7)
+ {
+ return in;
+ }
+}
Oops, something went wrong.

0 comments on commit 3e07c9c

Please sign in to comment.