emacs, tcl and csound
Date | 2005-11-09 17:16 |
From | Victor Lazzarini |
Subject | emacs, tcl and csound |
I have been playing around with Tcl scripting and discovered something that seems to be quite useful, if you like that kind of thing. With emacs, it is possible to run/evaluate Tcl scripts interactively. If you load up the Tclsound module (with load), then it's possible to create instruments (using Tcl or just with the editor), compile and run them directly from emacs, with full transport control. It is possible to evaluate tcl code by selecting it and sending to the intepreter. It in fact feels a bit like SuperCollider, altough the only thing that is not possible is to actually add new instruments during performance (which in my view is not too much of a problem, just have to compile them first). I'd say this kind of thing is also possible under the other languages supported by the wrappers, but with Tcl it is very easy (since it's such a cheap and cheerful scripting language). I put up a new example (gen.tcl) with a very simple demonstration of a way to create and run csound instruments with Tcl, which can be run from any interpreter (or from emacs). Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2005-11-09 17:32 |
From | David Akbari |
Subject | Re: emacs, tcl and csound |
On Nov 9, 2005, at 12:16 PM, Victor Lazzarini wrote: > With emacs, it is possible to run/evaluate Tcl scripts interactively. > If you load up > the Tclsound module (with load), then it's possible to create > instruments > (using Tcl or just with the editor), compile and run them directly > from emacs, > with full transport control. It is possible to evaluate tcl code by > selecting it and > sending to the intepreter. It in fact feels a bit like SuperCollider, > altough the > only thing that is not possible is to actually add new instruments > during performance > (which in my view is not too much of a problem, just have to compile > them first). Wow!!!! Also, coupled with the fact that Csound is now capable of multiple instantiation, it seems almost like this is a non-issue. There is also seemingly an increasing array of possibilities in terms of flexibility in encapsulating the language! Especially in terms of "necessary compilation"... your number of Csound processes limited only by available memory. IMO, this multiple instantiation can be beneficial because it allows the user absolute control of CPU priority of simultaneous processes, with the use of things like the Unix command "nicer" or La Chose Interactive's "Process Wizard". This specific addition to the language (TCL / Wish) is incredibly powerful and useable, thanks for adding it! Are there any known locations for beginner to advanced tutorials using the TCL interpreter that may be useful to redirect users to from cSounds.com? -David |
Date | 2005-11-09 19:29 |
From | Iain Duncan |
Subject | Re: emacs, tcl and csound |
I wonder if this would be possible with gvim and python then too. I should give it a shot. Gvim has a very slick python scripting interface. Iain Victor Lazzarini wrote: > I have been playing around with Tcl scripting and discovered something that > seems to be quite useful, if you like that kind of thing. > > With emacs, it is possible to run/evaluate Tcl scripts interactively. If > you load up > the Tclsound module (with load), then it's possible to create instruments > (using Tcl or just with the editor), compile and run them directly from > emacs, > with full transport control. It is possible to evaluate tcl code by > selecting it and > sending to the intepreter. It in fact feels a bit like SuperCollider, > altough the > only thing that is not possible is to actually add new instruments > during performance > (which in my view is not too much of a problem, just have to compile > them first). > > I'd say this kind of thing is also possible under the other languages > supported > by the wrappers, but with Tcl it is very easy (since it's such a cheap > and cheerful > scripting language). > > I put up a new example (gen.tcl) with a very simple demonstration of a > way to > create and run csound instruments with Tcl, which can be run from any > interpreter > (or from emacs). > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth |