File: ReadMe.txt

package info (click to toggle)
supercollider 1%3A3.4.5-1wheezy1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,972 kB
  • sloc: cpp: 116,645; lisp: 64,914; ansic: 10,725; python: 3,548; perl: 766; ruby: 487; sh: 152; makefile: 117; xml: 13
file content (73 lines) | stat: -rw-r--r-- 2,007 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
PySCLang - a python module for SuperCollider Lang
Project : Psycollider

by:
Benjamin Golinvaux
benjamin.golinvaux@euresys.com
messenger: bgolinvaux@hotmail.com

currently maintained by:
Christopher Frauenberger
frauenberger@iem.at

-------------------------------------------------------------------------------

PySCLang is a python module that implements the SuperCollider lang and makes it
scriptable from python.

Functions available from python:

sendMain(string)
	string is one of the following commands to the language:
	interpretPrintCmdLine - evaluates the current command line string
	run - runs something (defined in the library, does nothing if you didint override it)
	stop - stops the lang
	openWinCodeFile - opens any code window
	methodTemplates -
	methodReferences - finds references to the method selected

compileLibrary()
	compiles the library

setCmdLine(string)
	sets the current command line to any string that contains usually sc3 code

start()
	start the module

setSCLogSink(window)
	set where the module should post to

compiledOK
	returns a bool whether the library was compiled correctly

Rtf2Ascii
	ugly conversion...

setPyPrOpenWinTextFile(path,startRange,rangeSize)
	a file to open

Example usage in python:

>>> import PySCLang, os
>>> os.chdir("/Applications/SuperCollider3/")
>>> PySCLang.start()

>>> PySCLang.setCmdLine("s = Server.local; s.boot; ")
>>> PySCLang.sendMain('interpretPrintCmdLine')
>>> PySCLang.setCmdLine("s.initTree; s.serverRunning=true")
>>> PySCLang.sendMain('interpretPrintCmdLine')

>>> PySCLang.setCmdLine(" { SinOsc.ar(440, 0, 0.4) }.play(s) ")
>>> PySCLang.sendMain('interpretPrintCmdLine')

-------------------------------------------------------------------------------
Compilation

Windows: PySCLang is part of the Solution, please refer to the Windows documentation

OSX: open the Xcode file and
	* make sure Xcode findes libscsysnth.a (in Frameworks) - if in red navigate to it manually
	* set the active build to "Deployment"

Have fun!