forked from lichen-community-systems/phet-osc-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lichen-community-systemsgh-5: Adds SuperCollider example and unhides …
…the examples directory.
- Loading branch information
1 parent
66ec9f5
commit 68ca662
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/node_modules/ | ||
/examples/ | ||
/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
/examples/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SuperCollider Example | ||
|
||
This directory contains a example of an simple OSC listener function for SuperCollider, which listens to all incoming OSC messages and log them to the console. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
( | ||
~listener = {|msg, time, replyAddr, recvPort| | ||
if (msg[0] != "/status.reply", { | ||
// Log all received messages to the console. | ||
("PhET event received on port" + recvPort + "from " + replyAddr.ip + ":" + replyAddr.port + ":" + msg).postln; | ||
}); | ||
}; | ||
|
||
thisProcess.addOSCRecvFunc(~listener); | ||
) |