1
MusE midi event scripting format 0.5
3
Some information for the budding script writer, here is some info
4
about the format currently used.
6
Scripts can be put in two different dirs.
7
<install_path>/share/muse/scripts
10
for user created scripts
12
There are two main requirements on scripts.
14
1. a script must have the executable flag set, that is, it must be considered
15
an executable from the perspective of the operating system.
16
2. a script shall take an input file as argument and will update this
17
file with the sought output.
19
The tags that may occur in the file sent to the script are:
20
PARTLEN <len in ticks>
21
BEATLEN <len in ticks>
22
QUANTLEN <len in ticks>
23
NOTE <tick> <pitch> <len in ticks> <velocity>
24
CONTROLLER <tick> <a> <b> <c>
26
PARTLEN, BEATLEN and QUANTLEN are there for informational purposes, to
27
make some transformations possible. e.g. quantization, beat delay.
29
NOTE and CONTROLLER are the ones that are read back into MusE when the filter
30
stops executing. These may be manipulated, removed or multiplied as seen
32
-- Note that it is a good idea to just pass on the lines your script is not
33
interested in, otherwise data may unintentionally be removed --
35
A short example in pyton that does nothing but pass on output from input
36
to output is available in script DoNothing