TclCsound as a language wrapper

It is possible to use TclCsound at a slightly lower level, as many of the C API functions have been wrapped as Tcl commands. For instance it is possible to create a ‘classic' Csound command-line frontend completely written in Tcl. The following script demonstrates this:

#!/usr/local/bin/cstclsh 
set result 1
csCompileList $argv
while { $result != 0 } {
set result csPerformKsmps
}