From e148ee52ab2bb0234f8c183cee422c2dfa1982a4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 19 Feb 2015 21:58:30 +0100 Subject: add a nonsense-midi test sequence: system:midi_capture_6 duplicate on/off, zero-velocity note-on --- libs/backends/dummy/dummy_midi_seq.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/backends/dummy/dummy_midi_seq.h b/libs/backends/dummy/dummy_midi_seq.h index 24350e95ef..da16fb78df 100644 --- a/libs/backends/dummy/dummy_midi_seq.h +++ b/libs/backends/dummy/dummy_midi_seq.h @@ -733,8 +733,20 @@ static const MIDISequence s4[] = { // channel1, sustain pedal test { 4.00, 3, {0xff, 255, 0xff} }, // sentinel }; +static const MIDISequence s5[] = { // channel1, nonsense + { 0.00, 3, {0x90, 64, 0x7f} }, // note-on + { 0.50, 3, {0x90, 64, 0x7f} }, // duplicate note-on + { 1.00, 3, {0x80, 64, 0x00} }, // note-off + { 1.50, 3, {0x80, 64, 0x00} }, // dup note-off + { 2.00, 3, {0x80, 64, 0x00} }, // 3rd note-off + { 3.00, 3, {0x90, 66, 0x7f} }, + { 3.50, 3, {0x90, 66, 0x00} }, // note-on velocity zero + { 3.75, 3, {0x80, 66, 0x00} }, // note-off + { 4.00, 3, {0xff, 255, 0xff} }, // sentinel +}; + static const MIDISequence *sequences[] = { - s0, s1, s2, s3, s4 + s0, s1, s2, s3, s4, s5 }; }} // namespace -- cgit v1.2.3