aboutsummaryrefslogtreecommitdiff
path: root/chuck/OSCGraphics.ck
diff options
context:
space:
mode:
Diffstat (limited to 'chuck/OSCGraphics.ck')
-rw-r--r--chuck/OSCGraphics.ck18
1 files changed, 17 insertions, 1 deletions
diff --git a/chuck/OSCGraphics.ck b/chuck/OSCGraphics.ck
index 6c2fcec..82da22e 100644
--- a/chuck/OSCGraphics.ck
+++ b/chuck/OSCGraphics.ck
@@ -1,6 +1,6 @@
public class OSCGraphics {
static OscSend @osc_send;
- 1 => static int free_id;
+ static int free_id;
fun static void
clear()
@@ -8,6 +8,20 @@ public class OSCGraphics {
osc_send.startMsg("/layer/*/delete", "");
}
+ fun static string
+ record(string file)
+ {
+ osc_send.startMsg("/recorder/start", "s");
+ file => osc_send.addString;
+
+ return file;
+ }
+ fun static void
+ stopRecord()
+ {
+ osc_send.startMsg("/recorder/stop", "");
+ }
+
fun static OSCGraphicsImage @
getImage(string name)
{
@@ -165,3 +179,5 @@ public class OSCGraphics {
/* static initialization */
new OscSend @=> OSCGraphics.osc_send;
OSCGraphics.osc_send.setHost("localhost", 7770);
+
+1 => OSCGraphics.free_id;