| Hi Joel,
For Vim, I'd first install two plugins:
Plugin 'luisjure/csound'
Plugin 'kunstmusik/csound-repl'
(I use Vundle for plugin management in Vim; those two plugins
correspond to Github projects https://github.com/luisjure/csound and
https://github.com/kunstmusik/csound-repl).
The first plugin has all of the language things (syntax highlighting,
opcode docs, etc.) and the second has just a few pieces for live
coding.
Once installed, the process generally works:
1. Start csound on commandline using --port flag (i.e., csound
--port=10000 some.csd). That starts Csound with UDP listening on port
10000 for commands.
2. In Vim, load a Csound file or create an empty new Csound buffer to
use. csound-repl will default to using port 10000 for UDP.
3. With Csound running, select text and use eo (on my system,
leader key is comma). That's short for "evaluate orchestra" code.
You can also use es to evaluate and send score code to the
running Csound.
4. If in normal mode and you don't have any visual selection, using
eo will assume you are inside an instrument definition and you
want to evaluate the code between instr and endin that surrounds where
your cursor is.
You can see it all happening in this video:
https://www.youtube.com/watch?v=G5P_MP_2a18
(If it's not quite clear what's going on,I can record more of a
tutorial-style video that shows score and orchestra evaluations.)
steven
On Tue, Jan 9, 2018 at 2:24 PM, Joel Ramsbottom
wrote:
> Does this mean an instrument can be set up in the code and you can fire score/note events ?
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |