txtmus/abc2svg documentation - %%MIDI commands
This command sets the MIDI channel of a voice.
The channel number must be in the range [1 .. 16] when playing is done by an internal or external MIDI device.
By default, the MIDI channel number is the voice number plus one
when less than 9 or the voice number plus two when
greater than or equal to 9.
The voice number is in the range [0 .. n-1] from the order of
the declaration of the voices (it is not the voice identifier).
The channel number 10 is used for percussion.
This command is compatible with the ABC program abcMIDI.
This command (re)defines the relative pitches of the chord name.
This command is compatible with the ABC program abcMIDI but the (last) definitions stay in effect for the whole generation.
This command defines the MIDI program to use for the accompaniment.
This command defines the volume of the accompaniment (range 0..127 - default value ~75).
This command sets the value of the MIDI controller control number. Both values must be smaller than 128.
This command is compatible with abcMIDI.
When playing with the HTML5 audio API (thanks to a SF2 font), only these controllers are handled:
0 | MSB bank number |
7 | Volume |
10 | Pan |
32 | LSB bank number |
Note: The bank 256 is the percussion bank.
This command defines how the accompaniment is generated for one measure.
The string is composed of the following characters:
b
full chord
c
chord without the bass
f
bass only
z
no chord
G/H/I/J/K
individual notes starting from the lowest note of the chord
g/h/i/j/k
same as the previous characters, but one octave lower
(a digit)
duration of the previous chord
+
continue the previous chord (non abcMIDI)
This command is compatible with abcMIDI.
With txtmus or abc2svg, when the string is "+"
(one letter),
the chords start on a new chord symbol and stop on the next one.
Also, there is no computation of a new string on a meter change,
including in the tune header.
These commands enable or disable accompaniment.
Contrary to abcMIDI
, by default, the accompaniment is not active
when the tunes have only one voice.
This command sets the program number and possibly the channel number of a voice.
The program number is in the range [0 .. 127] for being compatible with abcMIDI.
This command defines a tempered scale defined by 'ndiv' equal divisions of the octave.
It is compatible with abcMIDI with an implicit octave_cents = 1200 cents and default fifth_steps and sharp_steps.
As an example, you may try this extract of "Sıpıhr peşrev".
When using this command, the accidentals are reduced to
"^<n>" and "_<n>" where <n> is in the
range 1 .. (ndiv / 6 + 1).
The simple accidentals "^" and "_" give odd results when ndiv is odd!
This command works with both abcm2ps
and abc2svg
.
The accidental glyphs are defined
<accidental_type><micro_value>
(<n> - 1) * 256 + <ndiv> - 1
acc<num>_<ndiv>
Examples (click on the music to play it):
Definitions of the Türkish Arel - Ezgel accidentals
abc2svg documentation source author - page hosted by Free