MCPcopy Create free account
hub / github.com/csound/csound / PlayCsd

Function PlayCsd

Emscripten/src/csound.js:157–163  ·  view source on GitHub ↗

* Starts real-time audio playback with a CSD. The variable can contain * a filepath or the literal text of a CSD. * * @param {string} s A string containing the pathname to the CSD.

(s)

Source from the content-addressed store, hash-verified

155 * @param {string} s A string containing the pathname to the CSD.
156 */
157 function PlayCsd(s) {
158 CopyUrlToLocal(s, s, function() {
159 csound.Csound.compileCSD(s);
160 csound.Csound.start();
161 started = true;
162 });
163 }
164
165 /**
166 * Compiles a CSD passed as a string of text.

Callers

nothing calls this directly

Calls 3

CopyUrlToLocalFunction · 0.85
compileCSDMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected