void Echo::changepar(int npar, unsigned char value) { switch(npar) { case 0: setvolume(value); break; case 1: setpanning(value); break; case 2: setdelay(value); break; case 3: setlrdelay(value); break; case 4: setlrcross(value); break; case 5: setfb(value); break; case 6: sethidamp(value); break; } }
void Phaser::changepar(int npar,unsigned char value){ switch(npar){ case 0: setvolume(value); break; case 1: setpanning(value); break; case 2: lfo.Pfreq=value; lfo.updateparams(); break; case 3: lfo.Prandomness=value; lfo.updateparams(); break; case 4: lfo.PLFOtype=value; lfo.updateparams(); break; case 5: lfo.Pstereo=value; lfo.updateparams(); break; case 6: setdepth(value); break; case 7: setfb(value); break; case 8: setstages(value); break; case 9: setlrcross(value); break; case 10:if (value>1) value=1; Poutsub=value; break; case 11:setphase(value); break; }; };
void Chorus::changepar (int npar, int value) { switch (npar) { case 0: setvolume (value); break; case 1: setpanning (value); break; case 2: lfo.Pfreq = value; lfo.updateparams (); break; case 3: lfo.Prandomness = value; lfo.updateparams (); break; case 4: lfo.PLFOtype = value; lfo.updateparams (); break; case 5: lfo.Pstereo = value; lfo.updateparams (); break; case 6: setdepth (value); break; case 7: setdelay (value); break; case 8: setfb (value); break; case 9: setlrcross (value); break; case 10: if (value > 1) value = 1; Pflangemode = value; break; case 11: if (value > 1) value = 1; Poutsub = value; break; case 12: awesome_mode = value; if(awesome_mode) { outvolume = 0.0f; ldelay->set_mix(((float)Pvolume/128.0f) ); rdelay->set_mix(((float)Pvolume/128.0f) ); } else outvolume = (float)Pvolume / 127.0f; break; }; };
void Phaser::changepar(int npar, unsigned char value) { switch (npar) { case 0: setvolume(value); break; case 1: setpanning(value); break; case 2: lfo.Pfreq = value; lfo.updateparams(); break; case 3: lfo.Prandomness = value; lfo.updateparams(); break; case 4: lfo.PLFOtype = value; lfo.updateparams(); barber = (2 == value); break; case 5: lfo.Pstereo = value; lfo.updateparams(); break; case 6: setdepth(value); break; case 7: setfb(value); break; case 8: setstages(value); break; case 9: setlrcross(value); setoffset(value); break; case 10: Poutsub = (value > 1) ? 1 : value; break; case 11: setphase(value); setwidth(value); break; case 12: Phyper = min((int)value, 1); break; case 13: setdistortion(value); break; case 14: Panalog = value; break; } }
void Analog_Phaser::changepar (int npar, int value) { switch (npar) { case 0: setvolume (value); break; case 1: setdistortion (value); break; case 2: lfo.Pfreq = value; lfo.updateparams (); break; case 3: lfo.Prandomness = value; lfo.updateparams (); break; case 4: lfo.PLFOtype = value; lfo.updateparams (); barber = 0; if (value == 2) barber = 1; break; case 5: lfo.Pstereo = value; lfo.updateparams (); break; case 6: setwidth (value); break; case 7: setfb (value); break; case 8: setstages (value); break; case 9: setoffset (value); break; case 10: if (value > 1) value = 1; Poutsub = value; break; case 11: setdepth (value); break; case 12: if (value > 1) value = 1; Phyper = value; break; }; };
void Chorus::changepar (int npar, int value) { switch (npar) { case 0: setvolume (value); break; case 1: setpanning (value); break; case 2: lfo.Pfreq = value; lfo.updateparams (); break; case 3: lfo.Prandomness = value; lfo.updateparams (); break; case 4: lfo.PLFOtype = value; lfo.updateparams (); break; case 5: lfo.Pstereo = value; lfo.updateparams (); break; case 6: setdepth (value); break; case 7: setdelay (value); break; case 8: setfb (value); break; case 9: setlrcross (value); break; case 10: if (value > 1) value = 1; Pflangemode = value; break; case 11: if (value > 1) value = 1; Poutsub = value; break; }; };
void Alienwah::changepar (int npar, int value) { switch (npar) { case 0: setvolume (value); break; case 1: setpanning (value); break; case 2: lfo.Pfreq = value; lfo.updateparams (); break; case 3: lfo.Prandomness = value; lfo.updateparams (); break; case 4: lfo.PLFOtype = value; lfo.updateparams (); break; case 5: lfo.Pstereo = value; lfo.updateparams (); break; case 6: setdepth (value); break; case 7: setfb (value); break; case 8: setdelay (value); break; case 9: setlrcross (value); break; case 10: setphase (value); break; }; };
void Echotron::changepar (int npar, int value) { float tmptempo; switch (npar) { case 0: setvolume (value); break; case 1: Pdepth=value; initparams=1; break; case 2: Pwidth=value; initparams=1; break; case 3: Plength = value; if(Plength>127) Plength = 127; initparams=1; break; case 4: Puser = value; break; case 5: Ptempo = value; tmptempo = (float) Ptempo; tempo_coeff = 60.0f / tmptempo; lfo.Pfreq = lrintf(subdiv_fmod*tmptempo); dlfo.Pfreq = lrintf(subdiv_dmod*tmptempo); lfo.updateparams (); initparams=1; break; case 6: sethidamp (value); break; case 7: Plrcross = value; lrcross = ((float)(Plrcross)-64)/64.0; ilrcross = 1.0f - abs(lrcross); break; case 8: /*if(!setfile(value)) { error_num=4; MessageBox(NULL, "Could not find Echotron dly files.", "Error", MB_OK); }*/ break; case 9: lfo.Pstereo = value; dlfo.Pstereo = value; lfo.updateparams (); dlfo.updateparams (); break; case 10: Pfb = value; setfb(value); break; case 11: setpanning (value); break; case 12: Pmoddly = value;//delay modulation on/off break; case 13: Pmodfilts = value;//filter modulation on/off if(!Pmodfilts) initparams=1; break; case 14: //LFO Type lfo.PLFOtype = value; lfo.updateparams (); dlfo.PLFOtype = value; dlfo.updateparams (); break; case 15: Pfilters = value;//Pfilters break; }; };