Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added new interface for CsoundMYFLTArray class

  • Loading branch information...
commit cc4cb151818ba38d6207639df7d873b37c469938 1 parent 09bdb9f
Rory Walsh authored January 05, 2013
12  csoundo/src/csoundo/Csoundo.java
@@ -37,6 +37,7 @@
37 37
 import java.io.*;
38 38
 
39 39
 public class Csoundo{
  40
+    CsoundMYFLTArray table;
40 41
     PApplet myParent;
41 42
     public final static String VERSION = "0.2.1";
42 43
     boolean androidMode;
@@ -392,6 +393,17 @@ public float tableGet(int t, int i) {
392 393
         return (float) csound.TableGet(t, i);
393 394
     }
394 395
     
  396
+    public int getTable(SWIGTYPE_p_p_double tablePtr, int i) {
  397
+	if (!compiledOK) return 0;
  398
+        return csound.GetTable(tablePtr, i);
  399
+    }
  400
+
  401
+// can't overload this for android interface.....    
  402
+//    public int getTable(SWIGTYPE_p_p_float tablePtr, int i) {
  403
+//	if (!compiledOK) return 0;
  404
+//        return csound.GetTable(tablePtr, i);
  405
+//    }
  406
+        
395 407
    
396 408
 
397 409
     /**
41  csoundo/src/csoundo/CsoundoArray.java
... ...
@@ -0,0 +1,41 @@
  1
+/**
  2
+ * A Csound interface library for Processing.
  3
+ *
  4
+ * (c) 2010
  5
+ *
  6
+ * This library is free software; you can redistribute it and/or
  7
+ * modify it under the terms of the GNU Lesser General Public
  8
+ * License as published by the Free Software Foundation; either
  9
+ * version 2.1 of the License, or (at your option) any later version.
  10
+ * 
  11
+ * This library is distributed in the hope that it will be useful,
  12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14
+ * Lesser General Public License for more details.
  15
+ * 
  16
+ * You should have received a copy of the GNU Lesser General
  17
+ * Public License along with this library; if not, write to the
  18
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  19
+ * Boston, MA  02111-1307  USA
  20
+ * 
  21
+ * @author	Rory Walsh
  22
+ * @modified	10/01/2012
  23
+ * @version	0.2.1
  24
+ */
  25
+
  26
+package csoundo;
  27
+
  28
+import processing.core.*;
  29
+
  30
+import csnd.*;
  31
+import java.io.*;
  32
+import java.util.*; 
  33
+
  34
+
  35
+public class CsoundoArray extends CsoundMYFLTArray{
  36
+  
  37
+    public CsoundoArray(){
  38
+        super();
  39
+    }
  40
+    
  41
+}

0 notes on commit cc4cb15

Please sign in to comment.
Something went wrong with that request. Please try again.