Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using sc #1

Open
ghost opened this issue May 31, 2016 · 1 comment
Open

using sc #1

ghost opened this issue May 31, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented May 31, 2016

hello,
i have supercollider 3.6 and python 2.7 and i want to use sc to code supercollider from python.
In your tutorial you have said the the supercollider code should be compiled in the supercollider synthdefs folder. How should i do this?

Greetings

@enrike
Copy link
Owner

enrike commented Jun 1, 2016

hi

say you have a synthdef like this in Supercollider, if you do .store and evaluate the synth definition, Supercollider will compile a file called test.scsyndef in ~/.local/share/SuperCollider (I am on linux, I am not sure where they go in OSX but you could search for the test.scsyndef file)

SynthDef(\test, { arg freq=300, amp=0.5;
var out = SinOsc.ar(freq) !2;
Out.ar(0, out * amp);
}).store;

then from Python you have to load that test.scsyndef file to the server. I dont remember the syntax because I have not used this for long time but it should be in the documentation

best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant