Skip to content

scorelinei

Issues one or more score line events from an instrument at i-time.

⚠ Deprecated alias

scoreline_i is a deprecated alias of scorelinei in Csound 7. Use scorelinei in new code. The old name still works for compatibility.

It can handle strings in the same conditions as the standard score. Multi-line strings are accepted, using {{ }} to enclose the string.

Syntax

scorelinei(Sin)
scoreline_i Sin

Initialization

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

Examples

Here is an example of the scorelinei opcode. It uses the file scorelinei.csd.

Example of the scorelinei opcode.
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac --old-parser   ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o scoreline.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1
  scorelinei({{
            i 2  0  3  "flute.aiff"
            i 2  1  3  "drumsMlp.wav"
            }})
endin

instr 2
  sig:a = soundin(p4)
  out(sig*0.8, sig*0.8)
endin
</CsInstruments>
<CsScore>

i1 0 1
e
</CsScore>
</CsoundSynthesizer>

Here is an example of the scoreline_i opcode. It uses the file scoreline_i.csd.

Example of the scoreline_i opcode.
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac --old-parser   ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o scoreline.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1

scoreline_i {{
            i 2  0  3  "flute.aiff"
            i 2  1  3  "drumsMlp.wav"
            }}

endin

instr 2

asig soundin p4
     outs asig*.8, asig*.8

endin
</CsInstruments>
<CsScore>

i1 0 1
e
</CsScore>
</CsoundSynthesizer>

See also

Instrument Invocation

More information on this opcode: http://www.csoundjournal.com/issue15/phrase_loops.html written by Jim Aikin, and in the Floss Manuals: https://flossmanual.csound.com/csound-language/live-events.

Credits

Author: Victor Lazzarini, 2007