void Echotron::setpreset (int npreset) { const int PRESET_SIZE = 16; const int NUM_PRESETS = 5; int presets[NUM_PRESETS][PRESET_SIZE] = { //Summer {64, 45, 34, 4, 0, 76, 3, 41, 0, 96, -13, 64, 1, 1, 1, 1}, //Ambience {96, 64, 16, 4, 0, 180, 50, 64, 1, 96, -4, 64, 1, 0, 0, 0}, //Arranjer {64, 64, 10, 4, 0, 400, 32, 64, 1, 96, -8, 64, 1, 0, 0, 0}, //Suction {0, 47, 28, 8, 0, 92, 0, 64, 3, 32, 0, 64, 1, 1, 1, 1}, //SucFlange {64, 36, 93, 8, 0, 81, 0, 64, 3, 32, 0, 64, 1, 0, 1, 1} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(41,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void RyanWah::setpreset (int npreset) { const int PRESET_SIZE = 19; const int NUM_PRESETS = 6; int presets[NUM_PRESETS][PRESET_SIZE] = { //Wah Pedal {16, 10, 60, 0, 0, 64, 0, 0, 10, 7, -16, 40, -3, 1, 2000, 450, 1, 1, 0}, //Mutron {0, 15, 138, 0, 0, 64, 0, 50, 0, 30, 32, 0, 5, 1, 2000, 60, 0, 1, 1}, //Phase Wah {0, 50, 60, 0, 0, 64, 30, 10, 10, 30, 32, 0, 10, 2, 2000, 350, 1, 1, 2}, //Succulent Phaser {64, 8, 35, 10, 0, 64, 50, -10, 53, 35, 28, -16, 32, 4, 2600, 300, 1, 1, 3}, //Quacky {16, 10, 60, 0, 0, 64, 0, 40, 10, 32, -16, 40, -3, 1, 2000, 400, 1, 1, 4}, //Smoothtron {0, 15, 138, 0, 0, 64, 0, 15, 0, 20, 32, 0, 5, 1, 2000, 60, 0, 3, 5} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(31,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; reinitfilter (); };
void NewDist::setpreset (int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 3; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //NewDist 1 {0, 64, 64, 83, 65, 15, 0, 2437, 169, 68, 0}, //NewDist 2 {0, 64, 64, 95, 45, 6, 0, 3459, 209, 60, 1}, //NewDist 3 {0, 64, 64, 43, 77, 16, 0, 2983, 118, 83, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(17,npreset-NUM_PRESETS+1, pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Distorsion::setpreset(unsigned char npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 6; int presets[NUM_PRESETS][PRESET_SIZE] = { // Overdrive 1 { 127, 64, 35, 56, 70, 0, 0, 96, 0, 0, 0 }, // Overdrive 2 { 127, 64, 35, 29, 75, 1, 0, 127, 0, 0, 0 }, // A. Exciter 1 { 64, 64, 35, 75, 80, 5, 0, 127, 105, 1, 0 }, // A. Exciter 2 { 64, 64, 35, 85, 62, 1, 0, 127, 118, 1, 0 }, // Guitar Amp { 127, 64, 35, 63, 75, 2, 0, 55, 0, 0, 0 }, // Quantisize { 127, 64, 35, 88, 75, 4, 0, 127, 0, 1, 0 } }; if (npreset >= NUM_PRESETS) npreset = NUM_PRESETS - 1; for (int n = 0; n < PRESET_SIZE; ++n) changepar(n, presets[npreset][n]); if (!insertion) // lower the volume if this is system effect changepar(0, (int)roundf(((float)presets[npreset][0] * 0.7f))); Ppreset = npreset; cleanup(); }
void Pan::setpreset (int npreset ) { const int PRESET_SIZE = 9; const int NUM_PRESETS = 2; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //AutoPan {64, 64, 26, 0, 0, 0, 0, 1, 0}, //Extra Stereo {64, 64, 80, 0, 0, 0, 10, 0, 1} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(13,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Shuffle::setpreset (int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 4; int presets[NUM_PRESETS][PRESET_SIZE] = { //Shuffle 1 {64, 10, 0, 0, 0,600, 1200,2000, 6000,-14, 1}, //Shuffle 2 {64, 0, 0, 0, 0, 120, 1000,2400, 8000,-7, 1}, //Shuffle 3 {64, 0, 0, 0, 0, 60, 1800, 3700, 12000, 7, 0}, //Remover {0, 17, 0, 7, 5, 600, 1200, 2000, 13865, -45, 1} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(26,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Analog_Phaser::setpreset (int npreset) { const int PRESET_SIZE = 13; const int NUM_PRESETS = 6; int presets[NUM_PRESETS][PRESET_SIZE] = { //Phaser1 {64, 20, 14, 0, 1, 64, 110, 40, 4, 10, 0, 64, 1}, //Phaser2 {64, 20, 14, 5, 1, 64, 110, 40, 6, 10, 0, 70, 1}, //Phaser3 {64, 20, 9, 0, 0, 64, 40, 40, 8, 10, 0, 60, 0}, //Phaser4 {64, 20, 14, 10, 0, 64, 110, 80, 7, 10, 1, 45, 1}, //Phaser5 {25, 20, 240, 10, 0, 64, 25, 16, 8, 100, 0, 25, 0}, //Phaser6 {64, 20, 1, 10, 1, 64, 110, 40, 12, 10, 0, 70, 1} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(18,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void CoilCrafter::setpreset (int npreset) { const int PRESET_SIZE = 9; const int NUM_PRESETS = 2; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //H to S {32, 6, 1, 3300, 16, 4400, 42, 20, 0}, //S to H {32, 1, 6, 4400, 42, 3300, 16, 20, 0}, }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(33,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Valve::setpreset (int npreset) { const int PRESET_SIZE = 13; const int NUM_PRESETS = 3; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Valve 1 {0, 64, 64, 127, 64, 0, 5841, 61, 1, 0, 69, 1, 84}, //Valve 2 {0, 64, 64, 127, 64, 0, 5078, 61, 1, 0, 112, 0, 30}, //Valve 3 {0, 64, 35, 80, 64, 1, 3134, 358, 1, 1, 100, 1, 30} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(19,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void StereoHarm::setpreset (int npreset) { const int PRESET_SIZE = 12; const int NUM_PRESETS = 4; int presets[NUM_PRESETS][PRESET_SIZE] = { //Plain {64, 64, 12, 0, 64, 12, 0, 0, 0, 0, 0, 64}, //Octavador {64, 64, 0, 0, 64, 0, 0, 0, 0, 0, 0, 64}, //Chorus {64, 64, 12, 80, 64, 12, -80, 0, 0, 0, 0, 64}, //Chorus {64, 64, 12, 280, 64, 12, -280, 0, 0, 0, 0, 64} }; cleanup(); if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(42,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Opticaltrem::setpreset (int npreset) { const int PRESET_SIZE = 7; const int NUM_PRESETS = 6; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Fast {127, 260, 10, 0, 64, 64, 0}, //trem2 {45, 140, 10, 0, 64, 64, 0}, //hard pan {127, 120, 10, 5, 0, 64, 0}, //soft pan {45, 240, 10, 1, 16, 64, 0}, //ramp down {65, 200, 0, 3, 32, 64, 0}, //hard ramp {127, 480, 0, 3, 32, 64, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(44,npreset-NUM_PRESETS+1, pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } };
void Vocoder::setpreset (int npreset) { const int PRESET_SIZE = 7; const int NUM_PRESETS = 4; int presets[NUM_PRESETS][PRESET_SIZE] = { //Vocoder 1 {0, 64, 10, 70, 70, 40, 0}, //Vocoder 2 {0, 64, 14, 80, 70, 40, 32}, //Vocoder 3 {0, 64, 20, 90, 70, 40, 64}, //Vocoder 4 {0, 64, 30, 100, 70, 40, 127} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(35,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Vibe::setpreset (int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 8; int presets[NUM_PRESETS][PRESET_SIZE] = { //Classic {35, 120, 10, 0, 64, 64, 64, 64, 3, 64, 0}, //Stereo Classic {35, 120, 10, 0, 48, 64, 64, 64, 3, 64, 1}, //Wide Vibe {127, 80, 10, 0, 0, 64, 64, 64, 0, 64, 1}, //Classic Chorus {35, 360, 10, 0, 48, 64, 0, 64, 3, 64, 0}, //Vibe Chorus {75, 330, 10, 0, 50, 64, 0, 64, 17, 64, 0}, //Lush Chorus {55, 260, 10, 0, 64, 70, 0, 49, 20, 48, 0}, //Sick Phaser {110, 75, 10, 0, 32, 64, 64, 14, 0, 30, 1}, //Warble {127, 360, 10, 0, 0, 64, 0, 0, 0, 37, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(45,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } };
void Sustainer::setpreset (int npreset) { const int PRESET_SIZE = 2; const int NUM_PRESETS = 3; int presets[NUM_PRESETS][PRESET_SIZE] = { //Moderate {79, 54}, //Extreme {16, 127}, //Mild {120, 15}, }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(36,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void MBVvol::setpreset (int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 3; int presets[NUM_PRESETS][PRESET_SIZE] = { //Vary1 {0, 40, 0, 64, 80, 0, 0, 500, 2500, 5000, 0}, //Vary2 {0, 80, 0, 64, 40, 0, 0, 120, 600, 2300, 1}, //Vary3 {0, 120, 0, 64, 40, 0, 0, 800, 2300, 5200, 2} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(28,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void CompBand::setpreset (int npreset) { const int PRESET_SIZE = 13; const int NUM_PRESETS = 3; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Good Start {0, 16, 16, 16, 16, 0, 0, 0, 0, 1000, 5000, 10000, 48}, //Loudness {0, 16, 2, 2, 4, -16, 24, 24, -8, 140, 1000, 5000, 48}, //Loudness 2 {64, 16, 2, 2, 2, -32, 24, 24, 24, 100, 1000, 5000, 48} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(43,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Alienwah::setpreset (int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 4; int presets[NUM_PRESETS][PRESET_SIZE] = { //AlienWah1 {64, 64, 80, 0, 0, 62, 60, 105, 25, 0, 64}, //AlienWah2 {64, 64, 95, 106, 0, 101, 60, 105, 17, 0, 64}, //AlienWah3 {64, 64, 55, 0, 1, 100, 112, 105, 31, 0, 42}, //AlienWah4 {64, 64, 1, 0, 1, 66, 101, 11, 47, 0, 86} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(11,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Exciter::setpreset (int npreset) { const int PRESET_SIZE = 13; const int NUM_PRESETS = 5; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Plain {64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20000, 20}, //Loudness {64, 0, 0, 0, 0, 24, 0, -24, 0, 24, 0, 80, 20}, //Exciter 1 {64, 64, 0, 0, 0, 64, 0, 0, 0, 64, 0, 20000, 20}, //Exciter 2 {64, 0, 0, 0, -32, 0, -32, -64, 0, 48, 0, 14100, 5660}, //Exciter 3 {64, 64, 0, -64, 0, 64, 0, -64, 0, 64, 0, 20000, 20} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(22,npreset-NUM_PRESETS+1, pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void ShelfBoost::setpreset (int npreset) { const int PRESET_SIZE = 5; const int NUM_PRESETS = 4; int presets[NUM_PRESETS][PRESET_SIZE] = { //Trebble {127, 64, 16000, 1, 24}, //Mid {127, 64, 4400, 1, 24}, //Bass {127, 64, 220, 1, 24}, //Distortion 1 {6, 40, 12600, 1, 127} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(34,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Chorus::setpreset (int dgui, int npreset) { const int PRESET_SIZE = 12; const int NUM_PRESETS = 10; int presets[NUM_PRESETS][PRESET_SIZE] = { //Chorus1 {64, 64, 33, 0, 0, 90, 40, 85, 64, 119, 0, 0}, //Chorus2 {64, 64, 19, 0, 0, 98, 56, 90, 64, 19, 0, 0}, //Chorus3 {64, 64, 7, 0, 1, 42, 97, 95, 90, 127, 0, 0}, //Celeste1 {64, 64, 1, 0, 0, 42, 115, 18, 90, 127, 0, 0}, //Celeste2 {64, 64, 7, 117, 0, 50, 115, 9, 31, 127, 0, 1}, //Flange1 {64, 64, 39, 0, 0, 60, 23, 3, 62, 0, 0, 0}, //Flange2 {64, 64, 9, 34, 1, 40, 35, 3, 109, 0, 0, 0}, //Flange3 {64, 64, 31, 34, 1, 94, 35, 3, 54, 0, 0, 1}, //Flange4 {64, 64, 14, 0, 1, 62, 12, 19, 97, 0, 0, 0}, //Flange5 {64, 64, 34, 105, 0, 24, 39, 19, 17, 0, 0, 1} }; if((dgui==0) && (npreset>4)) { Fpre->ReadPreset(5,npreset-4); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else if((dgui==1) && (npreset>9)) { Fpre->ReadPreset(7,npreset-9); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Echo::setpreset(unsigned char npreset) { /**\todo see if the preset array can be replaced with a struct or a class*/ const int PRESET_SIZE = 7; const int NUM_PRESETS = 9; unsigned char presets[NUM_PRESETS][PRESET_SIZE] = { //Echo 1 {67, 64, 35, 64, 30, 59, 0 }, //Echo 2 {67, 64, 21, 64, 30, 59, 0 }, //Echo 3 {67, 75, 60, 64, 30, 59, 10 }, //Simple Echo {67, 60, 44, 64, 30, 0, 0 }, //Canyon {67, 60, 102, 50, 30, 82, 48 }, //Panning Echo 1 {67, 64, 44, 17, 0, 82, 24 }, //Panning Echo 2 {81, 60, 46, 118, 100, 68, 18 }, //Panning Echo 3 {81, 60, 26, 100, 127, 67, 36 }, //Feedback Echo {62, 64, 28, 64, 100, 90, 55 } }; if(npreset >= NUM_PRESETS) npreset = NUM_PRESETS - 1; for(int n = 0; n < PRESET_SIZE; n++) changepar(n, presets[npreset][n]); if(insertion) setvolume(presets[npreset][0] / 2); //lower the volume if this is insertion effect Ppreset = npreset; }
void Distorsion::setpreset (int dgui, int npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 6; int presets[NUM_PRESETS][PRESET_SIZE] = { //Overdrive 1 {84, 64, 35, 56, 40, 0, 0, 6703, 21, 0, 0}, //Overdrive 2 {85, 64, 35, 29, 45, 1, 0, 25040, 21, 0, 0}, //Distorsion 1 {0, 64, 0, 87, 14, 6, 0, 3134, 157, 0, 1}, //Distorsion 2 {0, 64, 127, 87, 14, 0, 1, 3134, 102, 0, 0}, //Distorsion 3 {0, 64, 127, 127, 12, 13, 0, 5078, 56, 0, 1}, //Guitar Amp {84, 64, 35, 63, 50, 2, 0, 824, 21, 0, 0} }; if((dgui==0) && (npreset>5)) { Fpre->ReadPreset(2,npreset-5); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else if((dgui==1) && (npreset>1)) { Fpre->ReadPreset(3,npreset-1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Reverb::setpreset (int npreset) { const int PRESET_SIZE = 12; const int NUM_PRESETS = 13; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Cathedral1 {80, 64, 63, 24, 0, 0, 0, 4002, 27, 83, 1, 64}, //Cathedral2 {80, 64, 69, 35, 0, 0, 0, 25040, 21, 71, 0, 64}, //Cathedral3 {80, 64, 69, 24, 0, 0, 0, 25040, 2417, 78, 1, 85}, //Hall1 {90, 64, 51, 10, 0, 0, 0, 25040, 81, 78, 1, 64}, //Hall2 {90, 64, 53, 20, 0, 0, 0, 25040, 2417, 71, 1, 64}, //Room1 {100, 64, 33, 0, 0, 0, 0, 25040, 21, 106, 0, 30}, //Room2 {100, 64, 21, 26, 0, 0, 0, 1223, 21, 77, 1, 45}, //Basement {110, 64, 14, 0, 0, 0, 0, 25040, 27, 71, 0, 25}, //Tunnel {85, 80, 84, 20, 42, 0, 0, 652, 21, 78, 1, 105}, //Echoed1 {95, 64, 26, 60, 71, 0, 0, 14722, 21, 64, 1, 64}, //Echoed2 {90, 64, 40, 88, 71, 0, 0, 14722, 21, 88, 1, 64}, //VeryLong1 {90, 64, 93, 15, 0, 0, 0, 14722, 21, 77, 0, 95}, //VeryLong2 {90, 64, 111, 30, 0, 0, 0, 14722, 5058, 74, 1, 80} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(8,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Phaser::setpreset(unsigned char npreset) { if (npreset < 0xf) { if (npreset >= NUM_PRESETS) npreset = NUM_PRESETS - 1; for (int n = 0; n < PRESET_SIZE; ++n) changepar(n, presets[npreset][n]); Ppreset = npreset; } else { unsigned char preset = npreset & 0xf; unsigned char param = npreset >> 4; if (param == 0xf) param = 0; changepar(param, presets[preset][param]); } }
void Sequence::setpreset (int npreset) { const int PRESET_SIZE = 15; const int NUM_PRESETS = 10; int presets[NUM_PRESETS][PRESET_SIZE] = { //Jumpy {20, 100, 10, 50, 25, 120, 60, 127, 0, 90, 40, 0, 0, 0, 3}, //Stair Step {10, 20, 30, 50, 75, 90, 100, 127, 64, 90, 96, 0, 0, 2, 5}, //Mild {20, 30, 10, 40, 25, 60, 100, 50, 0, 90, 40, 0, 0, 0, 4}, //WahWah {11, 55, 15, 95, 12, 76, 11, 36, 30, 80, 110, 0, 4, 1, 2}, //Filter Pan {28, 59, 94, 127, 120, 80, 50, 24, 64, 180, 107, 0, 3, 0, 8}, //Stepper {30, 127, 30, 50, 80, 40, 110, 80, 0, 240, 95, 1, 1, 2, 2}, //Shifter {0, 0, 127, 127, 0, 0, 127, 127, 64, 114, 64, 1, 0, 3, 0}, //Tremor {30, 127, 30, 50, 80, 40, 110, 80, 0, 240, 95, 1, 1, 4, 2}, //Boogie {0, 40, 50, 60, 70, 60, 40, 0, 0, 220, 64, 0, 0, 5, 0}, //Chorus {64, 30, 45, 20, 60, 25, 42, 15, 64, 120, 64, 0, 0, 6, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(37,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void Reverb::setpreset(unsigned char npreset) { const int PRESET_SIZE = 13; const int NUM_PRESETS = 13; unsigned char presets[NUM_PRESETS][PRESET_SIZE] = { //Cathedral1 {80, 64, 63, 24, 0, 0, 0, 85, 5, 83, 1, 64, 20 }, //Cathedral2 {80, 64, 69, 35, 0, 0, 0, 127, 0, 71, 0, 64, 20 }, //Cathedral3 {80, 64, 69, 24, 0, 0, 0, 127, 75, 78, 1, 85, 20 }, //Hall1 {90, 64, 51, 10, 0, 0, 0, 127, 21, 78, 1, 64, 20 }, //Hall2 {90, 64, 53, 20, 0, 0, 0, 127, 75, 71, 1, 64, 20 }, //Room1 {100, 64, 33, 0, 0, 0, 0, 127, 0, 106, 0, 30, 20 }, //Room2 {100, 64, 21, 26, 0, 0, 0, 62, 0, 77, 1, 45, 20 }, //Basement {110, 64, 14, 0, 0, 0, 0, 127, 5, 71, 0, 25, 20 }, //Tunnel {85, 80, 84, 20, 42, 0, 0, 51, 0, 78, 1, 105, 20 }, //Echoed1 {95, 64, 26, 60, 71, 0, 0, 114, 0, 64, 1, 64, 20 }, //Echoed2 {90, 64, 40, 88, 71, 0, 0, 114, 0, 88, 1, 64, 20 }, //VeryLong1 {90, 64, 93, 15, 0, 0, 0, 114, 0, 77, 0, 95, 20 }, //VeryLong2 {90, 64, 111, 30, 0, 0, 0, 114, 90, 74, 1, 80, 20 } }; if(npreset >= NUM_PRESETS) npreset = NUM_PRESETS - 1; for(int n = 0; n < PRESET_SIZE; n++) changepar(n, presets[npreset][n]); if(insertion != 0) changepar(0, presets[npreset][0] / 2); //lower the volume if reverb is insertion effect Ppreset = npreset; }
void Alienwah::setpreset(unsigned char npreset) { const int PRESET_SIZE = 11; const int NUM_PRESETS = 4; unsigned char presets[NUM_PRESETS][PRESET_SIZE] = { //AlienWah1 {127, 64, 70, 0, 0, 62, 60, 105, 25, 0, 64}, //AlienWah2 {127, 64, 73, 106, 0, 101, 60, 105, 17, 0, 64}, //AlienWah3 {127, 64, 63, 0, 1, 100, 112, 105, 31, 0, 42}, //AlienWah4 {93, 64, 25, 0, 1, 66, 101, 11, 47, 0, 86} }; if(npreset >= NUM_PRESETS) npreset = NUM_PRESETS - 1; for(int n = 0; n < PRESET_SIZE; ++n) changepar(n, presets[npreset][n]); if(insertion == 0) changepar(0, presets[npreset][0] / 2); //lower the volume if this is system effect Ppreset = npreset; }
void StompBox::setpreset (int npreset) { const int PRESET_SIZE = 6; const int NUM_PRESETS = 8; int pdata[PRESET_SIZE]; int presets[NUM_PRESETS][PRESET_SIZE] = { //Odie {80, 32, 0, 32, 10, 0}, //Grunger {48, 10, -6, 55, 85, 1}, //Hard Dist. {48, -22, -6, 38, 12, 1}, //Ratty {48, -20, 0, 0, 70, 2}, //Classic Dist {50, 64, 0, 0, 110, 4}, //Morbid Impalement {38, 6, 6, 6, 105, 5}, //Mid Elve {48, 0, -12, 0, 127, 6}, //Fuzz {48, 0, 0, 0, 127, 7} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(39,npreset-NUM_PRESETS+1,pdata); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };
void Dflange::setpreset (int npreset) { const int PRESET_SIZE = 15; const int NUM_PRESETS = 9; int presets[NUM_PRESETS][PRESET_SIZE] = { //Preset 1 {-32, 0, 0, 110, 800, 10, -27, 16000, 1, 0, 24, 64, 1, 10, 0}, //Flange-Wha {0, 0, 64, 500, 3000, 50, -40, 8000, 1, 0, 196, 96, 0, 0, 0}, //FbFlange {0, 0, 64, 68, 75, 50, -50, 8000, 0, 1, 23, 96, 5, 0, 0}, //SoftFlange {-32, 0, 64, 60, 10, 100, 20, 16000, 0, 0, 16, 90, 4, 0, 0}, //Flanger {-32, 0, 64, 170, 1200, 50, 0, 16000, 1, 0, 68, 127, 0, 0, 0}, //Chorus 1 {-15, 0, 0, 42, 12, 50, -10, 1500, 0, 0, 120, 0, 0, 20, 0}, //Chorus 2 {-40, 0, 0, 35, 9, 67, 12, 4700, 1, 1, 160, 75, 0, 60, 0}, //Preset 8 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, //Preset 9 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(20,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; };
void MBDist::setpreset (int npreset) { const int PRESET_SIZE = 15; const int NUM_PRESETS = 8; int presets[NUM_PRESETS][PRESET_SIZE] = { //Saturation {0, 64, 0, 41, 64, 26, 19, 26, 41, 20, 35, 0, 400, 1200, 0}, //Dist 1 {0, 64, 64, 20, 64, 0, 14, 13, 38, 49, 40, 0, 288, 1315, 0}, //Soft {0, 64, 0, 32, 64, 6, 13, 6, 50, 70, 50, 0, 400, 1800, 0}, //Modulated {0, 64, 0, 36, 64, 18, 17, 18, 40, 70, 30, 0, 500, 2200, 0}, //Crunch {0, 64, 0, 24, 64, 19, 14, 19, 30, 80, 30, 0, 800, 1800, 0}, //Dist 2 {0, 64, 0, 64, 64, 22, 27, 22, 25, 50, 25, 0, 440, 1500, 0}, //Dist 3 {0, 64, 0, 64, 64, 27, 22, 27, 50, 69, 50, 0, 800, 1200, 0}, //Dist 4 {0, 64, 0, 30, 64, 19, 25, 26, 20, 51, 83, 0, 329, 800, 0} }; if(npreset>NUM_PRESETS-1) { Fpre->ReadPreset(23,npreset-NUM_PRESETS+1); for (int n = 0; n < PRESET_SIZE; n++) changepar (n, pdata[n]); } else { for (int n = 0; n < PRESET_SIZE; n++) changepar (n, presets[npreset][n]); } Ppreset = npreset; cleanup (); };