From 94187e66a2ae2bc2ab082ef614c25b35ec0d5e24 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 27 May 2016 12:12:00 +0200 Subject: add a test-sequence for polyphonic pressure --- libs/backends/dummy/dummy_midi_seq.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/backends/dummy/dummy_midi_seq.h b/libs/backends/dummy/dummy_midi_seq.h index 1d2032fd9d..a79966b808 100644 --- a/libs/backends/dummy/dummy_midi_seq.h +++ b/libs/backends/dummy/dummy_midi_seq.h @@ -754,7 +754,20 @@ static const MIDISequence s5[] = { // channel1, CCs only { 5.00, 3, {0xff, 255, 0xff} }, // sentinel }; -static const MIDISequence s6[] = { // channel1, nonsense + +static const MIDISequence s6[] = { // Keypressure, Aftertouch + { 0.00, 3, {0x90, 64, 0x7f} }, + { 0.25, 3, {0xa0, 64, 0x40} }, + { 0.50, 3, {0xa0, 64, 0x60} }, + { 0.75, 3, {0xa0, 64, 0x7f} }, + { 1.00, 3, {0xa0, 64, 0x7f} }, + { 1.25, 3, {0xa0, 64, 0x00} }, + { 1.50, 3, {0x80, 64, 0x00} }, + { 2.00, 3, {0xff, 255, 0xff} }, // sentinel +}; + + +static const MIDISequence s7[] = { // 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 @@ -767,7 +780,7 @@ static const MIDISequence s6[] = { // channel1, nonsense }; static const MIDISequence *sequences[] = { - s0, s1, s2, s3, s4, s5, s6 + s0, s1, s2, s3, s4, s5, s6, s7 }; static const char *sequence_names[] = { @@ -777,6 +790,7 @@ static const char *sequence_names[] = { "Velocity Sweep, chan 1", "Sustain Pedal Test", "CCs only", + "Aftertouch", "Nonsense, Dups" }; -- cgit v1.2.3