Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added new interface for CsoundMYFLTArray class

  • Loading branch information...
commit cc4cb151818ba38d6207639df7d873b37c469938 1 parent 09bdb9f
@rorywalsh rorywalsh authored
View
12 csoundo/src/csoundo/Csoundo.java
@@ -37,6 +37,7 @@
import java.io.*;
public class Csoundo{
+ CsoundMYFLTArray table;
PApplet myParent;
public final static String VERSION = "0.2.1";
boolean androidMode;
@@ -392,6 +393,17 @@ public float tableGet(int t, int i) {
return (float) csound.TableGet(t, i);
}
+ public int getTable(SWIGTYPE_p_p_double tablePtr, int i) {
+ if (!compiledOK) return 0;
+ return csound.GetTable(tablePtr, i);
+ }
+
+// can't overload this for android interface.....
+// public int getTable(SWIGTYPE_p_p_float tablePtr, int i) {
+// if (!compiledOK) return 0;
+// return csound.GetTable(tablePtr, i);
+// }
+
/**
View
41 csoundo/src/csoundo/CsoundoArray.java
@@ -0,0 +1,41 @@
+/**
+ * A Csound interface library for Processing.
+ *
+ * (c) 2010
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307 USA
+ *
+ * @author Rory Walsh
+ * @modified 10/01/2012
+ * @version 0.2.1
+ */
+
+package csoundo;
+
+import processing.core.*;
+
+import csnd.*;
+import java.io.*;
+import java.util.*;
+
+
+public class CsoundoArray extends CsoundMYFLTArray{
+
+ public CsoundoArray(){
+ super();
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.