readscoreInstrument Control:Invocationreadscorereadscore
Read, preprocess and schedule a score from an input string.
Description
Readscore will issue one or more score events.
It can handle strings in the same conditions as
the standard score, including preprocessing (carry, sort, ramp, etc).
Multi-line strings are accepted, using {{ }} to enclose the string.
Syntaxreadscore Sin InitializationSin -- a string (in double-quotes or enclosed by {{ }}) containing one or more score events.
Examples
Here is an example of the readscore opcode. It uses the file readscore.csd.
Example of the readscore opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
You can use string opcodes like sprintfk to produce strings to be passed to readscore like this:
Sfil = "/Volumes/Bla/file.aif"
String sprintfk {{i 2 0 %f "%s" %f %f %f %f}}, idur, Sfil, p5, p6, knorm, iskip
readscore String
See alsoInstrument InvocationCreditsAuthor: &namevictor;, 2013