Csound Csound-dev Csound-tekno Search About

Re: emacs, tcl and csound

Date2005-11-09 18:08
FromMichael Gogins
SubjectRe: emacs, tcl and csound
I'm glad you've added Tcl/Tk to the arsenal, but having had some experience with many languages (C, C++, BASIC, COBOL, FORTRAN, Pascal, Tcl/Tk, Java, JavaScript, Python, Lua, a smidgeon of LISP, C#, Mathematica, a smidgeon of PHP), I personally find Python much easier to actually write in and use. Have you used Python? Of all these languages, I find Python easiest to think in, to write, and to get it to work.

I also rather like Lua, which is a tiny library suited to completely embedding in hosts; in this, it is like Tcl.

I have occasionally used Python with Csound interactively from editors including Emacs and SciTex.

Best,
Mike

-----Original Message-----
From: Victor Lazzarini 
Sent: Nov 9, 2005 12:16 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] 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 

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk


Date2005-11-09 19:31
FromIain Duncan
SubjectRe: emacs, tcl and csound
> I'm glad you've added Tcl/Tk to the arsenal, but having had some experience with many languages (C, C++, BASIC, COBOL, FORTRAN, Pascal, Tcl/Tk, Java, JavaScript, Python, Lua, a smidgeon of LISP, C#, Mathematica, a smidgeon of PHP), I personally find Python much easier to actually write in and use. Have you used Python? Of all these languages, I find Python easiest to think in, to write, and to get it to work.
> 
> I also rather like Lua, which is a tiny library suited to completely embedding in hosts; in this, it is like Tcl.
> 
> I have occasionally used Python with Csound interactively from editors including Emacs and SciTex.

Have you tried it with gvim then Michael? I hack on my score and ord 
data using the gvim hosted python interpreter, but haven't tried using 
that to send directly to csound. What would one have to do?

Iain