Bladeren bron

Got chuck to compile, added OSC

master
Pete Shadbolt 10 jaren geleden
bovenliggende
commit
af35d7034b
2 gewijzigde bestanden met toevoegingen van 26 en 2 verwijderingen
  1. +25
    -1
      chuck.ck
  2. +1
    -1
      run.sh

+ 25
- 1
chuck.ck Bestand weergeven

@@ -11,5 +11,29 @@ g => Gain feedback => DelayL delay => g;
.75 => delay.gain;

// infinite time loop
while( true ) 1::second => now;
<<< "hello from chuck (waiting for OSC)" >>>;

// create our OSC receiver
OscRecv recv;

// use port 9000
9000 => recv.port;
// start listening (launch thread)
recv.listen();

// create an address in the receiver, store in new variable
recv.event( "/test, f" ) @=> OscEvent oe;

// infinite event loop
while ( true )
{
// wait for event to arrive
oe => now;

// grab the next message from the queue.
while ( oe.nextMsg() != 0 )
{
<<< oe.getFloat() >>>;
}
}


+ 1
- 1
run.sh Bestand weergeven

@@ -1,2 +1,2 @@
#!/bin/bash
chuck.alsa --bufsize64 chuck.ck
./chuck --bufsize64 chuck.ck

Laden…
Annuleren
Opslaan