[RTcmix-discuss] sample_sco question
Brad Garton
brad at music.columbia.edu
Sat Mar 19 19:45:54 EST 2005
Hey gang --
I've almost finished the 'scorefile commands' documentation, even though
they are probably already outdated. I figure it's best to get them done
and then we can change them without too much difficulty into whatever
modtable() etc. scheme we devise.
While looking at scorefiles in sample_scores/dynamic_insts/minc to figure
out how some of the new commands work, I ran into this construction in
"miditest2.sco":
if (0) {
freq = makeconnection("midi", min=100, max=2000, dflt=min, lag=50,
chan=1, "cntl", 93)
freq = makedisplay(freq, "freq", "Hz", 2)
}
else {
note = makeconnection("midi", min=0, max=127, dflt=60, lag=10,
chan=1, "noteonpitch")
note = makedisplay(note, "note", "MIDI", 0)
freq = makeconverter(note, "pchmidi")
}
How the heck does this logic work? It's the "if (0)" that I can't quite
grasp...
I don't have MIDI here at home, so can't try it out.
brad
More information about the RTcmix-discuss
mailing list