1 PySCLang - a python module for SuperCollider Lang
6 benjamin.golinvaux@euresys.com
7 messenger: bgolinvaux@hotmail.com
9 currently maintained by:
10 Christopher Frauenberger
13 -------------------------------------------------------------------------------
15 PySCLang is a python module that implements the SuperCollider lang and makes it
16 scriptable from python.
18 Functions available from python:
21 string is one of the following commands to the language:
22 interpretPrintCmdLine - evaluates the current command line string
23 run - runs something (defined in the library, does nothing if you didint override it)
25 openWinCodeFile - opens any code window
27 methodReferences - finds references to the method selected
33 sets the current command line to any string that contains usually sc3 code
39 set where the module should post to
42 returns a bool whether the library was compiled correctly
47 setPyPrOpenWinTextFile(path,startRange,rangeSize)
50 Example usage in python:
52 >>> import PySCLang, os
53 >>> os.chdir("/Applications/SuperCollider3/")
56 >>> PySCLang.setCmdLine("s = Server.local; s.boot; ")
57 >>> PySCLang.sendMain('interpretPrintCmdLine')
58 >>> PySCLang.setCmdLine("s.initTree; s.serverRunning=true")
59 >>> PySCLang.sendMain('interpretPrintCmdLine')
61 >>> PySCLang.setCmdLine(" { SinOsc.ar(440, 0, 0.4) }.play(s) ")
62 >>> PySCLang.sendMain('interpretPrintCmdLine')
64 -------------------------------------------------------------------------------
67 Windows: PySCLang is part of the Solution, please refer to the Windows documentation
69 OSX: open the Xcode file and
70 * make sure Xcode findes libscsysnth.a (in Frameworks) - if in red navigate to it manually
71 * set the active build to "Deployment"