Skip to content

Commit

Permalink
Change OSC ports to work with Sonic-Pi.
Browse files Browse the repository at this point in the history
  • Loading branch information
honnet committed Jun 13, 2018
1 parent 199fa71 commit 2f62d03
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 1_tests/b_communication/arduino/arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const IPAddress outIp(192,168,xx,xx); // TODO: remote IP of your computer


const unsigned int localPort = 8888; // local port to listen for OSC packets (not used for sending)
const unsigned int outPort = 9999; // remote port to receive OSC
const unsigned int outPort = 4559; // remote port to receive OSC
WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP


Expand Down
4 changes: 2 additions & 2 deletions 1_tests/b_communication/processing/processing.pde
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ OscP5 oscP5;
void setup() {
size(400,400);
frameRate(250);
/* start oscP5, listening for incoming messages at port 9999 */
oscP5 = new OscP5(this,9999);
/* start oscP5, listening for incoming messages at port 4559 */
oscP5 = new OscP5(this,4559);
}


Expand Down
2 changes: 1 addition & 1 deletion 2_play/final_arduino/final_arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const IPAddress outIp(192,168,xx,xx); // TODO: remote IP of your computer


const unsigned int localPort = 8888; // local port to listen for OSC packets (not used for sending)
const unsigned int outPort = 9999; // remote port to receive OSC
const unsigned int outPort = 4559; // remote port to receive OSC
WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP


Expand Down
2 changes: 1 addition & 1 deletion 2_play/final_processing/final_processing.pde
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void setup() {

smooth(8);
hint(DISABLE_DEPTH_TEST);
osc = new OscP5(this, 9999);
osc = new OscP5(this, 4559);
cp = new ControlP5(this);

float y = height-40;
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ Note: the visualization is derived from the work by Andreas Schlegel, you can fi

### MORE CHALLENGES!

- With Sonic Pi: [sonic-pi.net/tutorial.html#section-12-1](https://sonic-pi.net/tutorial.html#section-12-1)


#### Play with javascript

- [github.com/adzialocha/osc-js](https://github.com/adzialocha/osc-js#example-osc-between-maxmsppdsc-etc-and-your-browser)
Expand Down

0 comments on commit 2f62d03

Please sign in to comment.