csoundSubproc#
- csoundengine.csoundlib.csoundSubproc(args, piped=True, wait=False)[source]#
Calls csound with given args in a subprocess, returns a subprocess.Popen object.
- Parameters:
args (
list
[str
]) – the args passed to csound (each argument is a string)piped – if True, stdout and stderr are piped to the Popen object
wait – if True, wait until csound exits
- Return type:
Popen
- Returns:
the subprocess.Popen object
Raises RuntimeError if csound is not found
Example
>>> from csoundengine import csoundlib >>> proc = csoundlib.csoundSubproc(["-+rtaudio=jack", "-odac", "myfile.csd"])
See also