2020+2 a new hope ?
This commit is contained in:
1 parent
95046aa71d
commit
85c1846a0b
4 files changed
+22
-6
No files matched your search
+9
-5
@@ -7,8 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
7777 => int OSCPort;
|
||||
31000.0 => float Amplitude;
|
||||
9000 => int OSCPort;
|
||||
32760.0 => float Amplitude;
|
||||
|
||||
OscOut xmit;
|
||||
float dx, dy;
|
||||
@@ -20,17 +20,19 @@ clear_the_screen();
|
||||
for (0 => int foo; foo<25800; foo++) {
|
||||
<<< foo >>>;
|
||||
|
||||
Amplitude * Math.sin(foo * 0.30001) => dx;
|
||||
Amplitude * Math.cos(foo * 0.50001) => dy;
|
||||
Amplitude * Math.sin(foo * 0.3001) => dx;
|
||||
Amplitude * Math.cos(foo * 0.4999) => dy;
|
||||
|
||||
xmit.start("/joystick/xy");
|
||||
Std.ftoi(dx) => xmit.add;
|
||||
Std.ftoi(dy) => xmit.add;
|
||||
xmit.send();
|
||||
|
||||
0.02::second => now;
|
||||
0.025::second => now;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
|
||||
fun void clear_the_screen()
|
||||
{
|
||||
xmit.start("/joystick/b");
|
||||
@@ -40,3 +42,5 @@ xmit.start("/joystick/b");
|
||||
50 => xmit.add; 0 => xmit.add;
|
||||
xmit.send();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
Reference in new issue
Block a user