scoreline

scoreline — Issues one or more score line events from an instrument.

Description

Scoreline will issue one or more score events, if ktrig is 1 every k-period. It can handle strings in the same conditions as the standard score. Multi-line strings are accepted, using {{ }} to enclose the string.

Syntax

scoreline Sin, ktring

Initialization

Sin -- a string (in double-quotes or enclosed by {{ }}) containing one or more score events.

Performance

ktrig -- event trigger, 1 issues the score event, 0 bypasses it.

Examples

Here is an example of the scoreline opcode.

Example 413. Example


        instr 1
		 ktrig init 1
         scoreline {{
                       i 2  0  3  "flutec3.wav"
                       i 2  1  3  "clarc3.wav"
                     }}, ktrig
		 ktrig = 0
        endin

        instr 2
            aout soundin p4
            out aout
        endin


You can use string opcodes like sprintfk to produce strings to be passed to scoreline like this:

Sfil = "/Volumes/Bla/file.aif"
String  sprintfk {{i 2 0 %f "%s" %f %f %f %f}}, idur, Sfil, p5, p6, knorm, iskip
scoreline String, ktrig
 


Credits

Author: Victor Lazzarini, 2007