Csound Csound-dev Csound-tekno Search About

[Csnd] Which plays first? (the answer might surprise you)

Date2009-12-05 15:50
FromJacob Joaquin
Subject[Csnd] Which plays first? (the answer might surprise you)
Question:  Which plays first?
    a) event_i "i", 1, 0, 1
    b) i 2 0 1

Answer: b

Why?

Here's the CSD:



sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
0dbfs = 1.0

event_i "i", 1, 0, 1

instr 1
    prints "instr 1 played\n"
    turnoff
endin

instr 2
    prints "instr 2 played\n"
    turnoff
endin



i 2 0 1



Best,
Jake