-
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.
- Loading branch information
1 parent
5b8fe7e
commit 9d85f19
Showing
5 changed files
with
62 additions
and
29 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__author__ = 'mpevans' |
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,8 @@ | ||
This folder contains my implementation of OSC communication between python and Supercollider. | ||
|
||
The "executable" folder contains an old version of supercollider (the reason being that the old version did not contain the large QT library). A better approach would be to compile a newer version of supercollider without qt, but somehow that kept failing on my computer. Anyway, the class library has one custom class called "PyCom" used in the supercollider code for setting up responders to OSC messages coming from python (and sending messages if desired). | ||
|
||
"supercollider.py" contains the python implementation. A short example at the end of that file opens supercollider, runs "Test.scd", and does some basic communication with the synth. | ||
|
||
Hopefully it's pretty self-explanatory. | ||
|
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,15 @@ | ||
fork { | ||
SynthDef("pinkWobble", { |wobbleFreq=0.5| | ||
Out.ar(0, Pan2.ar(PinkNoise.ar(0.2), SinOsc.kr(wobbleFreq))); | ||
}).add; | ||
|
||
s.sync; | ||
|
||
~wobble = Synth.new("pinkWobble"); | ||
}; | ||
|
||
PyCom.receive("setWobbleFrequency", { |time, node, msg| | ||
// msg[0] is just the name of the message | ||
~wobble.set("wobbleFreq", msg[1]); | ||
PyCom.send("/chatter", "I can talk back too!"); | ||
}); |
This file was deleted.
Oops, something went wrong.
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