osc+chuck=wip
This commit is contained in:
@@ -11,13 +11,14 @@ SawOsc sr => dac.right;
|
||||
|
||||
OscIn oscin;
|
||||
OscMsg msg;
|
||||
|
||||
InPort => oscin.port;
|
||||
oscin.addAddress( "/joystick/xy, ii" );
|
||||
|
||||
int x, y;
|
||||
55 => int base;
|
||||
|
||||
0.5 => sl.gain => sr.gain;
|
||||
|
||||
<<< "listening on port", InPort >>>;
|
||||
|
||||
while( true ) {
|
||||
@@ -25,9 +26,17 @@ while( true ) {
|
||||
while ( oscin.recv(msg) ) {
|
||||
msg.getInt(0) => x;
|
||||
msg.getInt(1) => y;
|
||||
<<< "got (via ", InPort,") ", x, y >>>;
|
||||
<<< "got (via ", InPort,") ", x, y >>>;
|
||||
x => sl.freq;
|
||||
y => sr.freq;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* made in doubledragon2 by tTh */
|
||||
|
||||
/* --------------------------------------------------------
|
||||
conversion coordonnées vers frequence */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user