示例#1
0
def startServer(exe = 'scsynth', exedir = '/Applications/SuperCollider',
          port = 57110,
          inputs = 2, outputs = 2, samplerate = 48000,
          verbose = False, spew = False,
          ) :
##    print 'startserver server.py'
    instance = process.start_local(exe, exedir, port,
                                   inputs, outputs, samplerate, 
                                   verbose,
                                    )
    return instance
示例#2
0
def start(exe='scsynth', exedir='/Applications/SuperCollider',
          port=57110,
          inputs=2, outputs=2, samplerate=48000,
          verbose=False, spew=False):
    instance = process.start_local(exe, exedir, port,
                                   inputs, outputs, samplerate,
                                   verbose)
    import time
    time.sleep(1)
    s = connect('127.0.0.1', 57110, verbose=verbose, spew=spew)
    s.instance = instance
    return s
示例#3
0
def startServer(
    exe = 'scsynth', exedir = '/Applications/SuperCollider',
    port = 57110,
    inputs = 2,
    outputs = 2,
    samplerate = 48000,
    verbose = False,
    spew = False,
          ) :

    instance = process.start_local(exe, exedir, port,
                                   inputs, outputs, samplerate, 
                                   verbose,
                                    )
    return instance
示例#4
0
def startServer(
    exe = 'scsynth', exedir = '/Applications/SuperCollider',
    port = 4555,
    inputs = 2,
    outputs = 2,
    samplerate = 48000,
    verbose = False,
    spew = False,
          ) :

          # Andrew Hammacott - testing if already running
		  instance = get_process_ID("scsynth")
		  # If not running, start the process
		  if instance == -1:
		      instance = process.start_local(exe, exedir, port,
                                   inputs, outputs, samplerate, 
                                   verbose,
                                    )