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 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 three controllers are handled:
0 | MSB bank number |
7 | Volume |
32 | LSB bank number |
Note: The bank 256 is the percussion bank.
These commands enable or disable accompaniment.
Contrary to abcMIDI
, the accompaniment is not active when there
are chord symbols in tunes with 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):
abc2svg documentation source author - page hosted by Free