forked from kunstmusik/csound-repl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsound-repl.txt
64 lines (39 loc) · 2.43 KB
/
csound-repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
*csound-repl.txt* Plugin for live coding with Csound
Author: Steven Yi <[email protected]>
License: MIT
INTRODUCTION *csound-repl*
This plugin provides basic functionality to send Csound code over UDP to a
running instance of Csound. This will allow you to interactively evaluate and
compile new instruments and UDOs, update existing instruments and UDOs, as
well as execute opcode calls in instrument 0 space.
This plugin is best used together with Luis Jure's csound-vim plugin
(https://github.com/ljure/csound).
REQUIREMENTS *csound-repl:requirements*
This plugin requires that the version of Vim used has Python or Python3 support built-in.
FILE TYPES *csound-repl:filetypes*
csound-repl work with csound filetypes (i.e., .orc, .sco, .csd, .udo).
SETTING UP CSOUND REPL *csound-repl:setup*
csound-repl is preconfigured to run with UDP port 10000. If you need to use a
different port, execute the command ":call Csound_set_port(portNumber)" with
the port number you would like to use.
Currently, Csound itself should be started in a separate terminal with the
--port command. For example:
csound --port=10000 some.csd
This will begin Csound in server mode and evaluate some.csd as initial code.
Once Csound is running, you will be able to use this plugin to evaluate and
send code to that running Csound instance.
EVALUATING CODE *csound-repl:eval*
*csound-repl:evaluate_orc*
<leader>eo In visual mode, evaluates selected Csound code as
Orchestra code.
In normal mode, it will select the surrounding UDO or
instrument (if found) and evaluate that. Otherwise,
will evaluate the current line.
*csound-repl:evaluate_sco*
<leader>es Evaluate selected Csound code as Score code.
(Does not currently work as Csound Server mode only
accepts orchestra code at this time.)
ABOUT *csound-repl:about*
Grab the latest version or report a bug on GitHub:
http://github.com/kunstmusik/csound-repl
vim:tw=78:ts=8:ft=help:norl: