Drum XML format
To set a note's measure, use: measure="4" to set a note to, for this example, play on measure 4.
To increment a note's measure relative to the previous note's measure, use: nextMeasure="1", where '1' is the number of measures to increment over the previous note.
To keep a note's measure the same as the previous note, just don?t add any measure tags or values and it will automatically carry over the measure value from the previous note.
To repeat a series of notes, use the following syntax:
<repeat times="4" numNotes="8"/>
In this example, the group of the next 8 notes would be repeated 4 times. It is suggested to use 'nextMeasure' for at least one of these notes
so that the measure gets incremented on each repetition; otherwise, all of the repetitions would get played at the same time.
There are 20 different drum sounds that can be played. To play them, use the following XML format in a .score file:
To declare a drum instrument:
To define a note played by a drum instrument:
<note measure="1" beat="1" duration="2" note="3" pitch="2"/>
In the above example, the note would be played as the beat 1 of measure 1, with a duration of 2 beats and a pitch of 2 (i.e. plays at double normal speed).
The note played is note 3 (hit snare drum). The following list shows which note each value represents:
2 Beat on pad
3 Hit snare drum
5 G hat
6 E kick
7 D kick
8 Loud boom (bass drum)
9 G tom
12 Garbage can
13 Techno low beat
14 Light cymbal
15 Loud cymbal
18 Drumsticks hitting
19 Whistle up (generated with sine wave, NOT wavetable)
20 Whistle down (generated with sine wave, NOT wavetable)