#tcl
If the score begins on the first line with the word tcl
preceded by a sharp sign, the following lines will be
interpreted as a tcl program. Any tcl procedure or program
will be interpreted and a score will be compiled and then
passed on to Csound. To do this, it is useful to know that
the array "value" contains all the current values of the
interface objects. Hence, $value(offset1) will contain the
current time-based value of a graph (or slider) named
"offset1" . Two possible ways of doing this:
---- simple example ---
#tcl
set dummy "
i1 $value(offset1) $value(duree1)
i1 $value(offset1) $value(duree1)
"
-----------------------
---- more complex ---
#tcl
proc whatever {} {
global value soundOutInfo
#code tcl complexe
}
proc more {} {
global value
#encore +!
}
proc makeScore {} {
#blah blah
}
makeScore
-----------------------