more bla from Terreblanque
This commit is contained in:
@@ -19,6 +19,15 @@ arguments: arguments.c Makefile
|
||||
no-op: no-op.c Makefile
|
||||
gcc -Wall $< -o $@
|
||||
|
||||
#------------- OSC -----------------------
|
||||
|
||||
osc: send-osc listen-osc
|
||||
|
||||
send-osc: send-osc.c Makefile
|
||||
gcc -Wall $< -llo -o $@
|
||||
listen-osc: listen-osc.c Makefile
|
||||
gcc -Wall $< -llo -o $@
|
||||
|
||||
#------------- IPC -----------------------
|
||||
|
||||
get-signal: get-signal.c Makefile
|
||||
@@ -45,3 +54,10 @@ plugiciel.so: plugiciel.c plugiciel.h Makefile
|
||||
appelant: appelant.c plugiciel.h Makefile
|
||||
gcc -Wall $< -ldl -o $@
|
||||
|
||||
#------------- GRAPHISME --------------------
|
||||
|
||||
flydraw.png: dessiner.fly
|
||||
flydraw < $<
|
||||
convert flydraw.gif flydraw.png
|
||||
|
||||
|
||||
|
||||
10
code/dessiner.fly
Normal file
10
code/dessiner.fly
Normal file
@@ -0,0 +1,10 @@
|
||||
comment Juste un petit dessin...
|
||||
|
||||
new 640,480
|
||||
|
||||
line 10,10,300,300,red
|
||||
line 12,10,302,300,red
|
||||
line 14,10,304,300,red
|
||||
|
||||
output flydraw.gif
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
/* LISTEN OSC */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <lo/lo.h>
|
||||
|
||||
#define LOCAL_PORT "9000"
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1 +1,18 @@
|
||||
/* SEND OSC */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <lo/lo.h>
|
||||
|
||||
#define REMOTE_HOST "localhost"
|
||||
#define REMOTE_PORT "9000"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
lo_address loana;
|
||||
int foo;
|
||||
|
||||
loana = lo_address_new(REMOTE_HOST, REMOTE_PORT);
|
||||
foo = lo_send(loana, "/dev/kmem", "is", 61, "meg, efface !");
|
||||
fprintf(stderr, "foo %d\n", foo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user