diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-20 04:28:53 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-20 04:28:53 +0300 |
commit | eb45a7913d83fe2a3dc03033230950e78fb9755d (patch) | |
tree | d7318e79b08404f293fb99bb22e0ed202e07d890 /utils/test | |
parent | e95cde9fea4f9daf3e19492021b8a153acae0404 (diff) | |
download | libADLMIDI-eb45a7913d83fe2a3dc03033230950e78fb9755d.tar.gz libADLMIDI-eb45a7913d83fe2a3dc03033230950e78fb9755d.tar.bz2 libADLMIDI-eb45a7913d83fe2a3dc03033230950e78fb9755d.zip |
Added CMake support
Diffstat (limited to 'utils/test')
-rw-r--r-- | utils/test/adldatatest.cc | 2 | ||||
-rw-r--r-- | utils/test/test.cc | 202 |
2 files changed, 204 insertions, 0 deletions
diff --git a/utils/test/adldatatest.cc b/utils/test/adldatatest.cc new file mode 100644 index 0000000..9f992c0 --- /dev/null +++ b/utils/test/adldatatest.cc @@ -0,0 +1,2 @@ +static const int adldata[2184] = { +1,1,1,129,1,1,1,1,12,7,23,152,24,21,69,3,113,114,112,35,97,36,97,33,2,3,35,3,3,35,35,9,33,49,49,49,1,33,49,49,49,49,113,33,241,2,2,16,33,161,161,33,49,161,113,144,33,33,33,49,33,97,161,33,49,49,49,49,33,49,49,50,225,225,161,49,225,98,98,98,34,33,34,33,33,162,32,33,119,97,97,113,33,161,33,161,58,33,6,34,65,97,97,164,2,17,17,147,4,33,49,32,5,7,5,24,16,17,1,14,6,14,14,213,53,14,38,0,16,16,2,0,0,0,0,12,0,12,0,12,0,0,14,0,14,14,14,2,78,17,14,128,14,6,1,1,1,1,1,0,3,3,14,14,215,215,128,128,6,6,6,1,65,10,10,14,14,5,2,1,0,0,1,1,1,65,1,1,22,1,129,17,1,129,1,1,129,129,49,48,177,177,177,177,33,161,65,17,33,33,33,33,33,132,162,49,49,50,33,33,49,49,33,33,49,35,225,1,1,17,162,33,97,97,114,97,114,65,33,33,97,33,33,34,33,33,97,97,97,97,33,33,50,33,225,225,33,33,161,161,161,161,33,33,33,161,34,97,96,33,161,177,97,114,162,33,97,33,81,33,1,97,66,163,161,97,7,19,17,145,1,34,33,33,3,2,1,18,0,16,16,192,3,208,192,218,20,208,228,0,17,17,17,0,1,0,0,18,0,18,0,18,0,0,208,0,7,208,7,5,158,16,208,16,7,2,2,1,2,2,0,0,12,12,0,3,199,199,17,17,21,18,18,2,66,30,30,0,7,4,21,2,0,0,143,75,73,18,87,147,128,146,92,151,33,98,35,145,89,73,146,20,68,147,19,72,19,19,156,84,95,135,71,74,74,161,30,18,141,91,139,139,139,18,21,22,73,77,64,26,29,65,155,152,147,24,91,144,87,0,146,148,148,67,155,138,134,77,143,142,145,142,75,144,129,144,31,70,156,139,76,203,153,147,89,14,70,69,139,158,26,143,165,31,23,93,151,28,137,21,206,21,91,146,77,148,140,76,133,12,6,145,79,73,133,4,106,21,157,150,134,65,142,0,128,0,0,149,92,0,0,0,68,68,7,0,2,0,0,0,0,0,0,0,0,0,0,0,8,0,10,3,0,69,0,0,8,11,0,81,84,89,0,128,128,133,64,64,220,220,0,0,63,63,63,88,69,64,124,64,10,5,63,79,0,0,6,0,0,0,0,0,14,0,0,128,0,0,0,0,128,128,0,0,0,0,128,0,0,137,128,0,0,128,0,5,0,128,0,0,0,0,64,8,0,0,0,0,0,128,0,128,128,0,1,0,0,0,131,0,0,0,1,5,0,0,0,6,131,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,64,0,128,0,128,0,0,0,0,3,0,0,0,0,131,0,128,128,0,3,128,0,0,0,0,0,129,128,0,0,0,3,3,0,0,136,5,0,64,8,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,74,10,93,10,0,8,0,13,74,0,0,0,0,0,0,0,8,0,8,0,0,0,0,9,0,0,0,0,8,78,82,8,64,64,0,0,0,0,242,242,242,242,241,241,161,194,246,243,84,243,246,246,211,117,246,199,170,151,151,152,145,113,243,243,241,246,249,145,149,32,148,241,241,81,161,162,244,241,221,221,209,113,241,245,245,245,177,127,193,193,244,116,84,84,133,117,118,158,97,117,114,84,147,147,147,147,170,126,117,155,133,136,117,132,102,118,87,119,255,255,134,102,146,223,239,241,83,168,145,84,33,161,17,17,248,33,116,177,241,17,17,243,210,163,246,212,250,124,221,218,241,236,103,250,168,248,241,31,248,248,246,55,178,246,255,243,248,248,249,252,255,252,246,246,246,246,246,246,246,246,246,246,248,245,228,180,246,248,246,255,248,245,250,250,250,250,249,249,248,248,118,200,173,168,246,245,0,0,0,103,248,224,224,122,228,249,0,250,246,0,242,242,242,242,242,242,242,194,243,242,244,242,231,246,163,181,241,199,138,85,85,70,97,97,243,241,242,243,246,132,148,209,195,241,241,113,242,161,241,241,86,102,97,114,111,133,243,242,114,63,79,79,138,113,122,165,143,143,130,98,127,116,113,166,114,114,130,114,143,139,97,114,101,101,117,101,101,85,86,118,255,255,100,150,145,111,143,244,160,37,85,106,66,49,66,207,134,65,165,242,242,17,29,129,242,162,242,235,194,111,86,143,195,248,223,248,250,243,243,31,86,52,31,86,244,79,18,246,243,243,248,250,255,250,246,251,246,123,246,203,246,246,159,246,244,159,245,151,159,243,159,255,244,245,200,250,248,248,250,246,246,246,119,155,141,136,103,70,247,247,247,117,117,255,255,123,85,214,247,248,246,0,244,244,244,247,247,247,242,248,244,242,244,246,246,246,243,245,20,88,24,35,4,42,6,6,148,154,58,34,84,65,25,79,6,40,232,40,154,22,232,40,19,19,28,18,33,117,117,5,37,3,18,34,21,57,5,99,23,23,21,23,106,31,85,60,2,3,3,15,22,23,25,33,95,95,31,88,86,70,7,7,3,15,85,18,42,5,1,41,148,17,52,1,67,119,51,71,246,35,149,129,81,81,49,115,83,17,65,50,86,32,51,5,229,38,53,40,7,71,6,0,36,0,0,163,97,0,1,240,119,119,255,5,7,5,12,8,12,8,12,2,12,12,0,12,66,48,228,4,0,55,0,3,66,12,191,135,141,136,10,137,136,136,79,73,5,4,6,5,244,244,244,231,72,240,240,74,228,50,243,141,12,0,247,247,246,247,247,247,245,248,245,241,244,246,247,246,243,245,7,8,8,20,4,26,7,7,200,231,248,248,58,25,25,248,166,24,120,72,223,223,120,24,38,6,12,6,22,53,244,195,8,7,5,5,5,103,5,69,9,9,55,44,10,15,24,28,11,9,9,15,10,12,25,23,26,26,10,26,38,54,7,7,15,15,24,10,42,7,6,9,5,3,22,3,53,71,37,7,2,19,114,38,245,19,3,35,246,229,230,17,5,12,22,11,229,22,5,229,3,3,2,255,132,4,2,55,21,245,22,201,6,6,255,23,8,23,6,71,6,71,6,67,6,6,2,6,228,2,229,247,2,5,2,20,228,8,151,183,184,182,6,108,182,182,24,105,5,4,23,22,245,245,245,7,5,5,2,27,57,165,245,181,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,0,1,1,0,1,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,2,1,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,1,2,0,0,0,0,0,2,2,0,0,0,0,0,2,0,0,0,2,2,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,2,0,3,0,0,0,0,0,0,3,3,3,3,0,0,3,3,3,2,0,3,0,0,0,3,3,0,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,2,1,0,1,0,0,0,0,0,0,0,0,0,3,2,3,3,0,0,3,1,2,0,0,0,0,0,0,0,2,0,2,0,2,0,0,3,0,3,0,1,0,3,0,3,0,3,0,0,0,0,0,0,0,0,0,2,2,0,0,3,3,0,0,0,0,0,0,0,2,1,0,0,0,0,0,8,8,8,6,0,0,8,10,0,2,2,0,0,4,12,4,2,2,4,4,0,12,10,6,12,12,0,6,0,8,8,8,2,10,10,12,8,8,10,10,8,8,8,2,2,0,0,2,14,0,10,12,0,0,12,8,12,12,12,2,2,8,0,8,8,8,10,10,8,6,0,4,0,0,2,0,0,0,11,11,0,0,0,0,0,2,0,10,2,10,12,0,8,0,10,0,2,0,0,12,0,6,6,4,0,0,4,8,12,6,10,6,6,10,8,10,6,4,14,14,14,14,14,0,10,14,14,14,8,8,8,14,0,14,4,10,4,10,4,10,4,4,14,4,14,14,6,14,14,8,14,12,14,6,7,6,6,6,14,14,15,15,14,14,14,14,14,14,1,0,1,0,0,8,8,14,6,14,8,7,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,35,52,48,58,60,47,43,49,43,51,43,54,57,72,60,76,84,36,65,84,83,84,24,77,60,65,59,51,45,71,60,58,53,64,71,61,61,44,40,69,68,63,74,60,80,64,72,73,70,68,48,53,0}; diff --git a/utils/test/test.cc b/utils/test/test.cc new file mode 100644 index 0000000..ff8515b --- /dev/null +++ b/utils/test/test.cc @@ -0,0 +1,202 @@ +#include <stdio.h> +static const unsigned char adl[182][12] = +{ +// The data bytes are: +// [0,1] AM/VIB/EG/KSR/Multiple bits for carrier and modulator respectively +// [2,3] KSL/Attenuation settings for carrier and modulator respectively +// [4,5] Attack and decay rates for carrier and modulator respectively +// [6,7] Sustain and release rates for carrier and modulator respectively +// [8,9] Wave select settings for carrier and modulator respectively +// [10] Feedback/connection bits for the channel (also stereo/pan bits) +// [11] For percussive instruments (GP35..GP87), the tone to play + { 1, 1,143, 6,242,242,244,247,0,0, 56, 0}, // GM1:AcouGrandPiano + { 1, 1, 75, 0,242,242,244,247,0,0, 56, 0}, // GM2:BrightAcouGrand + { 1, 1, 73, 0,242,242,244,246,0,0, 56, 0}, // GM3:ElecGrandPiano + { 129, 65, 18, 0,242,242,247,247,0,0, 54, 0}, // GM4:Honky-tonkPiano + { 1, 1, 87, 0,241,242,247,247,0,0, 48, 0}, // GM5:Rhodes Piano + { 1, 1,147, 0,241,242,247,247,0,0, 48, 0}, // GM6:Chorused Piano + { 1, 22,128, 14,161,242,242,245,0,0, 56, 0}, // GM7:Harpsichord + { 1, 1,146, 0,194,194,248,248,0,0, 58, 0}, // GM8:Clavinet + { 12,129, 92, 0,246,243,244,245,0,0, 48, 0}, // GM9:Celesta + { 7, 17,151,128,243,242,242,241,0,0, 50, 0}, // GM10:Glockenspiel + { 23, 1, 33, 0, 84,244,244,244,0,0, 50, 0}, // GM11:Music box + { 152,129, 98, 0,243,242,246,246,0,0, 48, 0}, // GM12:Vibraphone + { 24, 1, 35, 0,246,231,246,247,0,0, 48, 0}, // GM13:Marimba + { 21, 1,145, 0,246,246,246,246,0,0, 52, 0}, // GM14:Xylophone + { 69,129, 89,128,211,163,243,243,0,0, 60, 0}, // GM15:Tubular Bells + { 3,129, 73,128,117,181,245,245,1,0, 52, 0}, // GM16:Dulcimer + { 113, 49,146, 0,246,241, 20, 7,0,0, 50, 0}, // GM17:Hammond Organ + { 114, 48, 20, 0,199,199, 88, 8,0,0, 50, 0}, // GM18:Percussive Organ + { 112,177, 68, 0,170,138, 24, 8,0,0, 52, 0}, // GM19:Rock Organ + { 35,177,147, 0,151, 85, 35, 20,1,0, 52, 0}, // GM20:Church Organ + { 97,177, 19,128,151, 85, 4, 4,1,0, 48, 0}, // GM21:Reed Organ + { 36,177, 72, 0,152, 70, 42, 26,1,0, 60, 0}, // GM22:Accordion + { 97, 33, 19, 0,145, 97, 6, 7,1,0, 58, 0}, // GM23:Harmonica + { 33,161, 19,137,113, 97, 6, 7,0,0, 54, 0}, // GM24:Tango Accordion + { 2, 65,156,128,243,243,148,200,1,0, 60, 0}, // GM25:Acoustic Guitar1 + { 3, 17, 84, 0,243,241,154,231,1,0, 60, 0}, // GM26:Acoustic Guitar2 + { 35, 33, 95, 0,241,242, 58,248,0,0, 48, 0}, // GM27:Electric Guitar1 + { 3, 33,135,128,246,243, 34,248,1,0, 54, 0}, // GM28:Electric Guitar2 + { 3, 33, 71, 0,249,246, 84, 58,0,0, 48, 0}, // GM29:Electric Guitar3 + { 35, 33, 74, 5,145,132, 65, 25,1,0, 56, 0}, // GM30:Overdrive Guitar + { 35, 33, 74, 0,149,148, 25, 25,1,0, 56, 0}, // GM31:Distorton Guitar + { 9,132,161,128, 32,209, 79,248,0,0, 56, 0}, // GM32:Guitar Harmonics + { 33,162, 30, 0,148,195, 6,166,0,0, 50, 0}, // GM33:Acoustic Bass + { 49, 49, 18, 0,241,241, 40, 24,0,0, 58, 0}, // GM34:Electric Bass 1 + { 49, 49,141, 0,241,241,232,120,0,0, 58, 0}, // GM35:Electric Bass 2 + { 49, 50, 91, 0, 81,113, 40, 72,0,0, 60, 0}, // GM36:Fretless Bass + { 1, 33,139, 64,161,242,154,223,0,0, 56, 0}, // GM37:Slap Bass 1 + { 33, 33,139, 8,162,161, 22,223,0,0, 56, 0}, // GM38:Slap Bass 2 + { 49, 49,139, 0,244,241,232,120,0,0, 58, 0}, // GM39:Synth Bass 1 + { 49, 49, 18, 0,241,241, 40, 24,0,0, 58, 0}, // GM40:Synth Bass 2 + { 49, 33, 21, 0,221, 86, 19, 38,1,0, 56, 0}, // GM41:Violin + { 49, 33, 22, 0,221,102, 19, 6,1,0, 56, 0}, // GM42:Viola + { 113, 49, 73, 0,209, 97, 28, 12,1,0, 56, 0}, // GM43:Cello + { 33, 35, 77,128,113,114, 18, 6,1,0, 50, 0}, // GM44:Contrabass + { 241,225, 64, 0,241,111, 33, 22,1,0, 50, 0}, // GM45:Tremulo Strings + { 2, 1, 26,128,245,133,117, 53,1,0, 48, 0}, // GM46:Pizzicato String + { 2, 1, 29,128,245,243,117,244,1,0, 48, 0}, // GM47:Orchestral Harp + { 16, 17, 65, 0,245,242, 5,195,1,0, 50, 0}, // GM48:Timpany + { 33,162,155, 1,177,114, 37, 8,1,0, 62, 0}, // GM49:String Ensemble1 + { 161, 33,152, 0,127, 63, 3, 7,1,1, 48, 0}, // GM50:String Ensemble2 + { 161, 97,147, 0,193, 79, 18, 5,0,0, 58, 0}, // GM51:Synth Strings 1 + { 33, 97, 24, 0,193, 79, 34, 5,0,0, 60, 0}, // GM52:SynthStrings 2 + { 49,114, 91,131,244,138, 21, 5,0,0, 48, 0}, // GM53:Choir Aahs + { 161, 97,144, 0,116,113, 57,103,0,0, 48, 0}, // GM54:Voice Oohs + { 113,114, 87, 0, 84,122, 5, 5,0,0, 60, 0}, // GM55:Synth Voice + { 144, 65, 0, 0, 84,165, 99, 69,0,0, 56, 0}, // GM56:Orchestra Hit + { 33, 33,146, 1,133,143, 23, 9,0,0, 60, 0}, // GM57:Trumpet + { 33, 33,148, 5,117,143, 23, 9,0,0, 60, 0}, // GM58:Trombone + { 33, 97,148, 0,118,130, 21, 55,0,0, 60, 0}, // GM59:Tuba + { 49, 33, 67, 0,158, 98, 23, 44,1,1, 50, 0}, // GM60:Muted Trumpet + { 33, 33,155, 0, 97,127,106, 10,0,0, 50, 0}, // GM61:French Horn + { 97, 34,138, 6,117,116, 31, 15,0,0, 56, 0}, // GM62:Brass Section + { 161, 33,134,131,114,113, 85, 24,1,0, 48, 0}, // GM63:Synth Brass 1 + { 33, 33, 77, 0, 84,166, 60, 28,0,0, 56, 0}, // GM64:Synth Brass 2 + { 49, 97,143, 0,147,114, 2, 11,1,0, 56, 0}, // GM65:Soprano Sax + { 49, 97,142, 0,147,114, 3, 9,1,0, 56, 0}, // GM66:Alto Sax + { 49, 97,145, 0,147,130, 3, 9,1,0, 58, 0}, // GM67:Tenor Sax + { 49, 97,142, 0,147,114, 15, 15,1,0, 58, 0}, // GM68:Baritone Sax + { 33, 33, 75, 0,170,143, 22, 10,1,0, 56, 0}, // GM69:Oboe + { 49, 33,144, 0,126,139, 23, 12,1,1, 54, 0}, // GM70:English Horn + { 49, 50,129, 0,117, 97, 25, 25,1,0, 48, 0}, // GM71:Bassoon + { 50, 33,144, 0,155,114, 33, 23,0,0, 52, 0}, // GM72:Clarinet + { 225,225, 31, 0,133,101, 95, 26,0,0, 48, 0}, // GM73:Piccolo + { 225,225, 70, 0,136,101, 95, 26,0,0, 48, 0}, // GM74:Flute + { 161, 33,156, 0,117,117, 31, 10,0,0, 50, 0}, // GM75:Recorder + { 49, 33,139, 0,132,101, 88, 26,0,0, 48, 0}, // GM76:Pan Flute + { 225,161, 76, 0,102,101, 86, 38,0,0, 48, 0}, // GM77:Bottle Blow + { 98,161,203, 0,118, 85, 70, 54,0,0, 48, 0}, // GM78:Shakuhachi + { 98,161,153, 0, 87, 86, 7, 7,0,0, 59, 0}, // GM79:Whistle + { 98,161,147, 0,119,118, 7, 7,0,0, 59, 0}, // GM80:Ocarina + { 34, 33, 89, 0,255,255, 3, 15,2,0, 48, 0}, // GM81:Lead 1 squareea + { 33, 33, 14, 0,255,255, 15, 15,1,1, 48, 0}, // GM82:Lead 2 sawtooth + { 34, 33, 70,128,134,100, 85, 24,0,0, 48, 0}, // GM83:Lead 3 calliope + { 33,161, 69, 0,102,150, 18, 10,0,0, 48, 0}, // GM84:Lead 4 chiff + { 33, 34,139, 0,146,145, 42, 42,1,0, 48, 0}, // GM85:Lead 5 charang + { 162, 97,158, 64,223,111, 5, 7,0,0, 50, 0}, // GM86:Lead 6 voice + { 32, 96, 26, 0,239,143, 1, 6,0,2, 48, 0}, // GM87:Lead 7 fifths + { 33, 33,143,128,241,244, 41, 9,0,0, 58, 0}, // GM88:Lead 8 brass + { 119,161,165, 0, 83,160,148, 5,0,0, 50, 0}, // GM89:Pad 1 new age + { 97,177, 31,128,168, 37, 17, 3,0,0, 58, 0}, // GM90:Pad 2 warm + { 97, 97, 23, 0,145, 85, 52, 22,0,0, 60, 0}, // GM91:Pad 3 polysynth + { 113,114, 93, 0, 84,106, 1, 3,0,0, 48, 0}, // GM92:Pad 4 choir + { 33,162,151, 0, 33, 66, 67, 53,0,0, 56, 0}, // GM93:Pad 5 bowedpad + { 161, 33, 28, 0,161, 49,119, 71,1,1, 48, 0}, // GM94:Pad 6 metallic + { 33, 97,137, 3, 17, 66, 51, 37,0,0, 58, 0}, // GM95:Pad 7 halo + { 161, 33, 21, 0, 17,207, 71, 7,1,0, 48, 0}, // GM96:Pad 8 sweep + { 58, 81,206, 0,248,134,246, 2,0,0, 50, 0}, // GM97:FX 1 rain + { 33, 33, 21, 0, 33, 65, 35, 19,1,0, 48, 0}, // GM98:FX 2 soundtrack + { 6, 1, 91, 0,116,165,149,114,0,0, 48, 0}, // GM99:FX 3 crystal + { 34, 97,146,131,177,242,129, 38,0,0, 60, 0}, // GM100:FX 4 atmosphere + { 65, 66, 77, 0,241,242, 81,245,1,0, 48, 0}, // GM101:FX 5 brightness + { 97,163,148,128, 17, 17, 81, 19,1,0, 54, 0}, // GM102:FX 6 goblins + { 97,161,140,128, 17, 29, 49, 3,0,0, 54, 0}, // GM103:FX 7 echoes + { 164, 97, 76, 0,243,129,115, 35,1,0, 52, 0}, // GM104:FX 8 sci-fi + { 2, 7,133, 3,210,242, 83,246,0,1, 48, 0}, // GM105:Sitar + { 17, 19, 12,128,163,162, 17,229,1,0, 48, 0}, // GM106:Banjo + { 17, 17, 6, 0,246,242, 65,230,1,2, 52, 0}, // GM107:Shamisen + { 147,145,145, 0,212,235, 50, 17,0,1, 56, 0}, // GM108:Koto + { 4, 1, 79, 0,250,194, 86, 5,0,0, 60, 0}, // GM109:Kalimba + { 33, 34, 73, 0,124,111, 32, 12,0,1, 54, 0}, // GM110:Bagpipe + { 49, 33,133, 0,221, 86, 51, 22,1,0, 58, 0}, // GM111:Fiddle + { 32, 33, 4,129,218,143, 5, 11,2,0, 54, 0}, // GM112:Shanai + { 5, 3,106,128,241,195,229,229,0,0, 54, 0}, // GM113:Tinkle Bell + { 7, 2, 21, 0,236,248, 38, 22,0,0, 58, 0}, // GM114:Agogo Bells + { 5, 1,157, 0,103,223, 53, 5,0,0, 56, 0}, // GM115:Steel Drums + { 24, 18,150, 0,250,248, 40,229,0,0, 58, 0}, // GM116:Woodblock + { 16, 0,134, 3,168,250, 7, 3,0,0, 54, 0}, // GM117:Taiko Drum + { 17, 16, 65, 3,248,243, 71, 3,2,0, 52, 0}, // GM118:Melodic Tom + { 1, 16,142, 0,241,243, 6, 2,2,0, 62, 0}, // GM119:Synth Drum + { 14,192, 0, 0, 31, 31, 0,255,0,3, 62, 0}, // GM120:Reverse Cymbal + { 6, 3,128,136,248, 86, 36,132,0,2, 62, 0}, // GM121:Guitar FretNoise + { 14,208, 0, 5,248, 52, 0, 4,0,3, 62, 0}, // GM122:Breath Noise + { 14,192, 0, 0,246, 31, 0, 2,0,3, 62, 0}, // GM123:Seashore + { 213,218,149, 64, 55, 86,163, 55,0,0, 48, 0}, // GM124:Bird Tweet + { 53, 20, 92, 8,178,244, 97, 21,2,0, 58, 0}, // GM125:Telephone + { 14,208, 0, 0,246, 79, 0,245,0,3, 62, 0}, // GM126:Helicopter + { 38,228, 0, 0,255, 18, 1, 22,0,1, 62, 0}, // GM127:Applause/Noise + { 0, 0, 0, 0,243,246,240,201,0,2, 62, 0}, // GM128:Gunshot + { 16, 17, 68, 0,248,243,119, 6,2,0, 56, 35}, // GP35:Ac Bass Drum + { 16, 17, 68, 0,248,243,119, 6,2,0, 56, 35}, // GP36:Bass Drum 1 + { 2, 17, 7, 0,249,248,255,255,0,0, 56, 52}, // GP37:Side Stick + { 0, 0, 0, 0,252,250, 5, 23,2,0, 62, 48}, // GP38:Acoustic Snare + { 0, 1, 2, 0,255,255, 7, 8,0,0, 48, 58}, // GP39:Hand Clap + { 0, 0, 0, 0,252,250, 5, 23,2,0, 62, 60}, // GP40:Electric Snare + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 47}, // GP41:Low Floor Tom + { 12, 18, 0, 0,246,251, 8, 71,0,2, 58, 43}, // GP42:Closed High Hat + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 49}, // GP43:High Floor Tom + { 12, 18, 0, 5,246,123, 8, 71,0,2, 58, 43}, // GP44:Pedal High Hat + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 51}, // GP45:Low Tom + { 12, 18, 0, 0,246,203, 2, 67,0,2, 58, 43}, // GP46:Open High Hat + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 54}, // GP47:Low-Mid Tom + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 57}, // GP48:High-Mid Tom + { 14,208, 0, 0,246,159, 0, 2,0,3, 62, 72}, // GP49:Crash Cymbal 1 + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 60}, // GP50:High Tom + { 14, 7, 8, 74,248,244, 66,228,0,3, 62, 76}, // GP51:Ride Cymbal 1 + { 14,208, 0, 10,245,159, 48, 2,0,0, 62, 84}, // GP52:Chinese Cymbal + { 14, 7, 10, 93,228,245,228,229,3,1, 54, 36}, // GP53:Ride Bell + { 2, 5, 3, 10,180,151, 4,247,0,0, 62, 65}, // GP54:Tambourine + { 78,158, 0, 0,246,159, 0, 2,0,3, 62, 84}, // GP55:Splash Cymbal + { 17, 16, 69, 8,248,243, 55, 5,2,0, 56, 83}, // GP56:Cow Bell + { 14,208, 0, 0,246,159, 0, 2,0,3, 62, 84}, // GP57:Crash Cymbal 2 + { 128, 16, 0, 13,255,255, 3, 20,3,0, 60, 24}, // GP58:Vibraslap + { 14, 7, 8, 74,248,244, 66,228,0,3, 62, 77}, // GP59:Ride Cymbal 2 + { 6, 2, 11, 0,245,245, 12, 8,0,0, 54, 60}, // GP60:High Bongo + { 1, 2, 0, 0,250,200,191,151,0,0, 55, 65}, // GP61:Low Bongo + { 1, 1, 81, 0,250,250,135,183,0,0, 54, 59}, // GP62:Mute High Conga + { 1, 2, 84, 0,250,248,141,184,0,0, 54, 51}, // GP63:Open High Conga + { 1, 2, 89, 0,250,248,136,182,0,0, 54, 45}, // GP64:Low Conga + { 1, 0, 0, 0,249,250, 10, 6,3,0, 62, 71}, // GP65:High Timbale + { 0, 0,128, 0,249,246,137,108,3,0, 62, 60}, // GP66:Low Timbale + { 3, 12,128, 8,248,246,136,182,3,0, 63, 58}, // GP67:High Agogo + { 3, 12,133, 0,248,246,136,182,3,0, 63, 53}, // GP68:Low Agogo + { 14, 0, 64, 8,118,119, 79, 24,0,2, 62, 64}, // GP69:Cabasa + { 14, 3, 64, 0,200,155, 73,105,0,2, 62, 71}, // GP70:Maracas + { 215,199,220, 0,173,141, 5, 5,3,0, 62, 61}, // GP71:Short Whistle + { 215,199,220, 0,168,136, 4, 4,3,0, 62, 61}, // GP72:Long Whistle + { 128, 17, 0, 0,246,103, 6, 23,3,3, 62, 44}, // GP73:Short Guiro + { 128, 17, 0, 9,245, 70, 5, 22,2,3, 62, 40}, // GP74:Long Guiro + { 6, 21, 63, 0, 0,247,244,245,0,0, 49, 69}, // GP75:Claves + { 6, 18, 63, 0, 0,247,244,245,3,0, 48, 68}, // GP76:High Wood Block + { 6, 18, 63, 0, 0,247,244,245,0,0, 49, 63}, // GP77:Low Wood Block + { 1, 2, 88, 0,103,117,231, 7,0,0, 48, 74}, // GP78:Mute Cuica + { 65, 66, 69, 8,248,117, 72, 5,0,0, 48, 60}, // GP79:Open Cuica + { 10, 30, 64, 78,224,255,240, 5,3,0, 56, 80}, // GP80:Mute Triangle + { 10, 30,124, 82,224,255,240, 2,3,0, 56, 64}, // GP81:Open Triangle + { 14, 0, 64, 8,122,123, 74, 27,0,2, 62, 72}, // GP82 + { 14, 7, 10, 64,228, 85,228, 57,3,1, 54, 73}, // GP83 + { 5, 4, 5, 64,249,214, 50,165,3,0, 62, 70}, // GP84 + { 2, 21, 63, 0, 0,247,243,245,3,0, 56, 68}, // GP85 + { 1, 2, 79, 0,250,248,141,181,0,0, 55, 48}, // GP86 + { 0, 0, 0, 0,246,246, 12, 6,0,0, 52, 53} // GP87 (low-low-mid tom?) +}; +int main() +{ + printf("static const int adldata[2184] = {\n"); + for(unsigned x=0; x<12; ++x) + for(unsigned i=0; i<182; ++i) + printf(",%d", + (x==10 ? adl[i][x]&~0x30 : adl[i][x])); + printf("};\n"); +} |