|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352 |
- # data file for the Fltk User Interface Designer (fluid)
- version 1.0110
- header_name {.h}
- code_name {.cc}
- decl {//Copyright (c) 2002-2005 Nasca Octavian Paul} {}
-
- decl {//License: GNU GPL version 2 or later} {}
-
- decl {\#include <stdlib.h>} {public
- }
-
- decl {\#include <stdio.h>} {public
- }
-
- decl {\#include <string.h>} {public
- }
-
- decl {\#include "../globals.h"} {public
- }
-
- decl {\#include "WidgetPDial.h"} {public
- }
-
- decl {\#include "EnvelopeUI.h"} {public
- }
-
- decl {\#include "FilterUI.h"} {public
- }
-
- decl {\#include "../Misc/Util.h"} {public
- }
-
- decl {\#include "../Effects/EffectMgr.h"} {public
- }
-
- decl {\#include "PresetsUI.h"} {public
- }
-
- decl {\#include "common.H"} {public
- }
-
- class EQGraph {: {public Fl_Box}
- } {
- Function {EQGraph(int x,int y, int w, int h, const char *label=0):Fl_Box(x,y,w,h,label)} {} {
- code {eff=NULL;
- maxdB=30;} {}
- }
- Function {init(EffectMgr *eff_)} {} {
- code {eff=eff_;
- oldx=-1;
- khzval=-1;} {}
- }
- Function {draw_freq_line(float freq,int type)} {} {
- code {fl_color(FL_GRAY);
- float freqx=getfreqpos(freq);
- switch(type){
- case 0:if (active_r()) fl_color(FL_WHITE);
- else fl_color(205,205,205);
- fl_line_style(FL_SOLID);
- break;
- case 1:fl_line_style(FL_DOT);break;
- case 2:fl_line_style(FL_DASH);break;
- };
-
-
- if ((freqx>0.0)&&(freqx<1.0))
- fl_line(x()+(int) (freqx*w()),y(),
- x()+(int) (freqx*w()),y()+h());} {}
- }
- Function {draw()} {} {
- code {int ox=x(),oy=y(),lx=w(),ly=h(),i;
- double iy,oiy;
- float freqx;
-
- if (active_r()) fl_color(fl_darker(FL_GRAY));
- else fl_color(FL_GRAY);
- fl_rectf(ox,oy,lx,ly);
-
-
- //draw the lines
- fl_color(fl_lighter( FL_GRAY));
-
- fl_line_style(FL_SOLID);
- fl_line(ox+2,oy+ly/2,ox+lx-2,oy+ly/2);
-
- freqx=getfreqpos(1000.0);
- if ((freqx>0.0)&&(freqx<1.0))
- fl_line(ox+(int) (freqx*lx),oy,
- ox+(int) (freqx*lx),oy+ly);
-
- for (i=1;i<10;i++){
- if(i==1){
- draw_freq_line(i*100.0,0);
- draw_freq_line(i*1000.0,0);
- }else
- if (i==5){
- draw_freq_line(i*10.0,2);
- draw_freq_line(i*100.0,2);
- draw_freq_line(i*1000.0,2);
- }else{
- draw_freq_line(i*10.0,1);
- draw_freq_line(i*100.0,1);
- draw_freq_line(i*1000.0,1);
- };
- };
-
- draw_freq_line(10000.0,0);
- draw_freq_line(20000.0,1);
-
-
- fl_line_style(FL_DOT);
- int GY=6;if (ly<GY*3) GY=-1;
- for (i=1;i<GY;i++){
- int tmp=(int)(ly/(float)GY*i);
- fl_line(ox+2,oy+tmp,ox+lx-2,oy+tmp);
- };
-
-
- //draw the frequency response
- if (active_r()) fl_color(FL_YELLOW);
- else fl_color(200,200,80);
- fl_line_style(FL_SOLID,2);
- fl_color( fl_color_add_alpha( fl_color(), 127 ) );
- oiy=getresponse(ly,getfreqx(0.0));
- fl_begin_line();
- for (i=1;i<lx;i++){
- float frq=getfreqx(i/(float) lx);
- if (frq>synth->samplerate/2) break;
- iy=getresponse(ly,frq);
- if ((oiy>=0) && (oiy<ly) &&
- (iy>=0) && (iy<ly) )
- fl_vertex(ox+i,oy+ly-iy);
- oiy=iy;
- };
- fl_end_line();
- fl_line_style(FL_SOLID,0);} {}
- }
- Function {getresponse(int maxy,float freq)} {return_type double
- } {
- code {float dbresp=eff->getEQfreqresponse(freq);
- int idbresp=(int) ((dbresp/maxdB+1.0)*maxy/2.0);
-
-
- //fprintf(stderr,"%.5f\\n",(dbresp/maxdB+1.0)*maxy/2.0);
-
-
- return(idbresp);} {}
- }
- Function {getfreqx(float x)} {return_type float
- } {
- code {if (x>1.0) x=1.0;
- return(20.0*pow((float)1000.0,x));} {}
- }
- Function {getfreqpos(float freq)} {return_type float
- } {
- code {if (freq<0.00001) freq=0.00001;
- return(log(freq/20.0)/log(1000.0));} {}
- }
- decl {int oldx,oldy;} {}
- decl {float khzval;} {public
- }
- decl {EffectMgr *eff;} {}
- decl {int maxdB;} {}
- }
-
- class EffUI {open : {public Fl_Group,public PresetsUI_}
- } {
- Function {EffUI(int x,int y, int w, int h, const char *label=0):Fl_Group(x,y,w,h,label)} {} {
- code {eff=NULL;
- filterwindow=NULL;} {}
- }
- Function {~EffUI()} {} {
- code {effnullwindow->hide();//delete (effnullwindow);
- effreverbwindow->hide();//delete (effreverbwindow);
- effechowindow->hide();//delete (effechowindow);
- effchoruswindow->hide();//delete (effchoruswindow);
- effphaserwindow->hide();//delete (effphaserwindow);
- effalienwahwindow->hide();//delete (effalienwahwindow);
- effdistorsionwindow->hide();//delete (effdistorsionwindow);
- effeqwindow->hide();//delete (effeqwindow);
- effdynamicfilterwindow->hide();//delete (effdynamicfilterwindow);
-
- if (filterwindow!=NULL){
- filterwindow->hide();
- delete(filterwindow);
- };} {}
- }
- Function {make_null_window()} {open
- } {
- Fl_Window effnullwindow {
- label {No Effect}
- xywh {612 881 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 16
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {}
- }
- Function {make_reverb_window()} {open
- } {
- Fl_Window effreverbwindow {
- label Reverb open
- xywh {377 636 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice revp {
- label Preset
- callback {eff->changepreset((int)o->value());
-
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Cathedral 1}
- xywh {10 10 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Cathedral 2}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Cathedral 3}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Hall 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Hall 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Room 1}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Room 2}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Basement
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Tunnel
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echoed 1}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echoed 2}
- xywh {110 110 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Very Long 1}
- xywh {120 120 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Very Long 2}
- xywh {130 130 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Choice revp10 {
- label Type
- callback {eff->seteffectpar(10,(int) o->value());
- if (eff->geteffectpar(10)==2) revp12->activate();
- else revp12->deactivate();}
- xywh {110 15 85 15} down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label Random
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Freeverb
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Bandwidth
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial revp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp2 {
- label Time
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {Duration of Effect} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp3 {
- label {I.del}
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {Initial Delay} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp4 {
- label {I.delfb}
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {Initial Delay Feedback} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp12 {
- label bw
- callback {eff->seteffectpar(12,(int) o->value());}
- xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127 deactivate
- code0 {if (eff->geteffectpar(10)==2) o->activate();}
- class WidgetPDial
- }
- Fl_Dial revp6 {
- label {E/R}
- callback {eff->seteffectpar(6,(int) o->value());}
- xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127 deactivate
- class WidgetPDial
- }
- Fl_Dial revp7 {
- label LPF
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip {Low Pass Filter} xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp8 {
- label HPF
- callback {eff->seteffectpar(8,(int) o->value());}
- tooltip {High Pass Filter} xywh {305 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp9 {
- label Damp
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip Dampening xywh {340 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 minimum 64 maximum 127 step 1
- class WidgetPDial
- }
- Fl_Dial revp11 {
- label {R.S.}
- callback {int x=64;
- if (Fl::event_button1()) x=(int)o->value();
- else o->value(x);
- eff->seteffectpar(11,x);}
- tooltip RoomSize xywh {200 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 8 align 8 minimum 1 maximum 127 step 1
- class WidgetPDial
- }
- }
- }
- Function {make_echo_window()} {open
- } {
- Fl_Window effechowindow {
- label Echo
- xywh {897 611 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice echop {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {11 15 95 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Echo 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echo 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echo 3}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Simple Echo}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Canyon
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 1}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 2}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 3}
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Feedback Echo}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial echop0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop2 {
- label Delay
- callback {eff->seteffectpar(2,(int) o->value());}
- xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop3 {
- label {LRdl.}
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {Delay Between L/R} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop4 {
- label {LRc.}
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {L/R Crossover} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop5 {
- label {Fb.}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip Feedback xywh {195 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop6 {
- label Damp
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip Dampening xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- }
- }
- Function {make_chorus_window()} {open
- } {
- Fl_Window effchoruswindow {
- label Chorus open
- xywh {467 742 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice chorusp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Chorus 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Chorus 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Chorus 3}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Celeste 1}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Celeste 2}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 1}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 2}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 3}
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 4}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 5}
- xywh {110 110 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial chorusp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp3 {
- label Rnd
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp5 {
- label {St.df}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip {L/R Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip {LFO Depth} xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp7 {
- label Delay
- callback {eff->seteffectpar(7,(int) o->value());}
- xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp8 {
- label Fb
- callback {eff->seteffectpar(8,(int) o->value());}
- tooltip Feedback xywh {305 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp9 {
- label {L/R}
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip {Channel Routing} xywh {340 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button {} {
- label Flange
- callback {eff->seteffectpar(10,(int) o->value());}
- xywh {120 10 55 20} box THIN_UP_BOX down_box DOWN_BOX color 230 labelfont 1 labelsize 10 hide deactivate
- code0 {o->value(eff->geteffectpar(10));}
- }
- Fl_Check_Button chorusp11 {
- label Substract
- callback {eff->seteffectpar(11,(int) o->value());}
- tooltip {inverts the output} xywh {185 10 70 20} box THIN_UP_BOX down_box DOWN_BOX color 51 labelsize 10
- }
- Fl_Choice chorusp4 {
- label {LFO type}
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
- } {
- MenuItem {} {
- label SINE
- xywh {15 15 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label TRI
- xywh {25 25 100 20} labelfont 1 labelsize 10
- }
- }
- }
- }
- Function {make_phaser_window()} {open
- } {
- Fl_Window effphaserwindow {
- label Phaser open
- xywh {101 232 380 95} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice phaserp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 100 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Phaser 1}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 2}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 3}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 4}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 5}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 6}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 3}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 4}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 5}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {APhaser 6}
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial phaserp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO frequency} xywh {85 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp3 {
- label Rnd
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {LFO randomness} xywh {120 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Choice phaserp4 {
- label LFO
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {LFO function} xywh {245 55 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
- } {
- MenuItem {} {
- label SIN
- xywh {15 15 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label TRI
- xywh {25 25 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial phaserp5 {
- label {St.df}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip {Left/Right Channel Phase Shift} xywh {155 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip {LFO Depth} xywh {120 5 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp7 {
- label Fb
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip Feedback xywh {185 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Counter phaserp8 {
- label Stages
- callback {eff->seteffectpar(8,(int) o->value());}
- xywh {290 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
- code0 {o->range(1,MAX_PHASER_STAGES);}
- }
- Fl_Dial phaserp9 {
- label {L/R}
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip {Channel Routing} xywh {215 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button phaserp10 {
- label Substract
- callback {eff->seteffectpar(10,(int) o->value());} selected
- tooltip {inverts output} xywh {200 10 74 20} box THIN_UP_BOX down_box DOWN_BOX color 51 labelfont 1 labelsize 10
- }
- Fl_Dial phaserp11 {
- label Phase
- callback {eff->seteffectpar(11,(int) o->value());}
- xywh {155 5 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button phaserp12 {
- label {hyp.}
- callback {eff->seteffectpar(12,(int) o->value());}
- tooltip hyper xywh {245 35 55 15} down_box DOWN_BOX
- }
- Fl_Dial phaserp13 {
- label dist
- callback {eff->seteffectpar(13,(int) o->value());}
- tooltip Distortion xywh {340 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button phaserp14 {
- label Analog
- callback {eff->seteffectpar(14,(int) o->value());}
- xywh {305 35 70 15} down_box DOWN_BOX
- }
- }
- }
- Function {make_alienwah_window()} {open
- } {
- Fl_Window effalienwahwindow {
- label AlienWah
- xywh {253 353 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice awp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Alienwah 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 3}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 4}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial awp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp3 {
- label Rnd
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp5 {
- label {St.df}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip {Left/Right Channel Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip Depth xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp7 {
- label Fb
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip Feedback xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp9 {
- label {L/R}
- callback {eff->seteffectpar(9,(int) o->value());}
- xywh {345 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Choice awp4 {
- label {LFO type}
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
- } {
- MenuItem {} {
- label SINE
- xywh {15 15 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label TRI
- xywh {25 25 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial awp10 {
- label Phase
- callback {eff->seteffectpar(10,(int) o->value());}
- xywh {160 5 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Counter awp8 {
- label Delay
- callback {eff->seteffectpar(8,(int) o->value());}
- xywh {305 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
- code0 {o->range(1,MAX_ALIENWAH_DELAY);}
- }
- }
- }
- Function {make_distorsion_window()} {open
- } {
- Fl_Window effdistorsionwindow {
- label Distortion open
- xywh {544 217 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice distp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {11 15 95 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Overdrive 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Overdrive 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {A. Exciter 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {A. Exciter 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Guitar Amp}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Quantisize
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial distp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp2 {
- label {LRc.}
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {L/R Mix} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp3 {
- label Drive
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {Input Amplification} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp4 {
- label Level
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {Output Amplification} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp7 {
- label LPF
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip {Low Pass Filter} xywh {285 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp8 {
- label HPF
- callback {eff->seteffectpar(8,(int) o->value());}
- tooltip {High Pass Filter} xywh {320 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Choice distp5 {
- label Type
- callback {eff->seteffectpar(5,(int) o->value());}
- xywh {190 50 60 20} box UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 align 2 textsize 10
- } {
- MenuItem {} {
- label Atan
- xywh {55 55 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Asym1
- xywh {65 65 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pow
- xywh {75 75 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sine
- xywh {85 85 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Qnts
- xywh {95 95 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Zigzg
- xywh {105 105 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lmt
- xywh {115 115 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LmtU
- xywh {125 125 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LmtL
- xywh {135 135 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label ILmt
- xywh {147 147 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Clip
- xywh {157 157 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Asym2
- xywh {75 75 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pow2
- xywh {85 85 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sgm
- xywh {95 95 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Check_Button distp6 {
- label {Neg.}
- callback {eff->seteffectpar(6,(int) o->value());}
- xywh {260 55 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 2
- }
- Fl_Check_Button distp9 {
- label {St.}
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip Stereo xywh {355 60 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 2
- }
- Fl_Check_Button distp10 {
- label PF
- callback {eff->seteffectpar(10,(int) o->value());}
- tooltip {Applies the filters(before or after) the distorsion} xywh {355 44 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 1
- }
- }
- }
- Function {make_eq_window()} {open
- } {
- Fl_Window effeqwindow {
- label EQ open
- xywh {682 881 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Dial eqp0 {
- label Gain
- callback {eff->seteffectpar(0,(int) o->value());
- eqgraph->redraw();}
- xywh {10 35 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Counter bandcounter {
- label {B.}
- callback {eqband=(int) o->value();
- int npb=eqband*5+10;
-
- int type=eff->geteffectpar(npb);
- typechoice->value(type);
-
- if (type>6) gaindial->activate();
- else gaindial->deactivate();
-
- if (type==0) bandgroup->deactivate();
- else bandgroup->activate();
-
- int freq=eff->geteffectpar(npb+1);
- freqdial->value(freq);
-
- int gain=eff->geteffectpar(npb+2);
- gaindial->value(gain);
-
- int q=eff->geteffectpar(npb+3);
- qdial->value(q);
-
- int dbl=eff->geteffectpar(npb+4);
- stagescounter->value(dbl);}
- tooltip {Band no.} xywh {240 20 45 15} type Simple labelfont 1 labelsize 11 align 1 minimum 0 maximum 1 step 1 textfont 1 textsize 11
- code0 {o->bounds(0,MAX_EQ_BANDS-1);}
- }
- Fl_Group bandgroup {
- xywh {245 40 130 50} box ENGRAVED_FRAME
- code0 {if (eff->geteffectpar(10)==0) o->deactivate();}
- } {
- Fl_Dial freqdial {
- label Freq
- callback {int np=eqband*5+11;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- xywh {250 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
- class WidgetPDial
- }
- Fl_Dial gaindial {
- label Gain
- callback {int np=eqband*5+12;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- xywh {280 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127 step 1
- class WidgetPDial
- }
- Fl_Dial qdial {
- label Q
- callback {int np=eqband*5+13;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- tooltip {Resonance/Bandwidth} xywh {310 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
- class WidgetPDial
- }
- Fl_Counter stagescounter {
- label {St.}
- callback {int np=eqband*5+14;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- tooltip {Additional filter stages} xywh {340 60 30 15} type Simple labelfont 1 labelsize 10 minimum 1 maximum 127 step 1 textfont 1 textsize 11
- code0 {o->bounds(0,MAX_FILTER_STAGES-1);}
- }
- }
- Fl_Choice typechoice {
- label {T.}
- callback {int np=eqband*5+10;
- eff->seteffectpar(np,(int) o->value());
- bandcounter->do_callback();
- eqgraph->redraw();}
- tooltip Type xywh {290 20 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 1 when 6 textsize 10
- } {
- MenuItem {} {
- label OFF
- xywh {0 0 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lp1
- xywh {10 10 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Hp1
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lp2
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Hp2
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Bp2
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label N2
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pk
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LSh
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label HSh
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Box eqgraph {
- xywh {45 10 190 75} box BORDER_BOX color 50
- code0 {o->init(eff);}
- class EQGraph
- }
- }
- }
- Function {make_dynamicfilter_window()} {open
- } {
- Fl_Window effdynamicfilterwindow {
- label DynFilter open
- xywh {819 290 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 25
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice dfp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label WahWah
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label AutoWah
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sweep
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label VocalMorph1
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label VocalMorph2
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial dfp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp1 {
- label Pan
- callback {eff->seteffectpar(1,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp3 {
- label Rnd
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp5 {
- label {St.df}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip {Left/Right Channel Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp6 {
- label LfoD
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip {LFO Depth} xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Choice dfp4 {
- label {LFO type}
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
- } {
- MenuItem {} {
- label SINE
- xywh {15 15 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label TRI
- xywh {25 25 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Button {} {
- label Filter
- callback {filterwindow->show();}
- xywh {115 10 55 25} box THIN_UP_BOX
- }
- Fl_Group {} {
- xywh {270 40 105 45} box UP_FRAME color 51
- } {
- Fl_Dial dfp7 {
- label {A.S.}
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip {Filter vs Amplitude} xywh {275 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp9 {
- label {A.M}
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip {rate that amplitude changes the filter} xywh {305 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button dfp8 {
- label {A.Inv.}
- callback {eff->seteffectpar(8,(int) o->value());}
- tooltip {enable for filter frequency to lower with higher input amplitude} xywh {345 55 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 2
- }
- }
- }
- }
- Function {make_filter_window()} {open
- } {
- Fl_Window filterwindow {
- label {Filter Parameters for DynFilter Eff.}
- xywh {801 474 290 110} type Double
- code0 {set_module_parameters(o);} visible
- } {
- Fl_Group {} {
- label {DynFilter effect - Filter}
- xywh {5 5 275 75} box FLAT_BOX color 50 align 144
- code0 {o->init(eff->filterpars,NULL,NULL);}
- code1 {o->use_for_dynamic_filter();}
- class FilterUI
- } {}
- Fl_Button {} {
- label Close
- callback {filterwindow->hide();}
- xywh {105 85 70 20} box THIN_UP_BOX
- }
- }
- }
- Function {init(EffectMgr *eff_)} {} {
- code {eff=eff_;
-
- make_null_window();
- make_reverb_window();
- make_echo_window();
- make_chorus_window();
- make_phaser_window();
- make_alienwah_window();
- make_distorsion_window();
- make_eq_window();
- make_dynamicfilter_window();
-
- int px=this->parent()->x();
- int py=this->parent()->y();
-
- effnullwindow->position(px,py);
- effreverbwindow->position(px,py);
- effechowindow->position(px,py);
- effchoruswindow->position(px,py);
- effphaserwindow->position(px,py);
- effalienwahwindow->position(px,py);
- effdistorsionwindow->position(px,py);
- effeqwindow->position(px,py);
- effdynamicfilterwindow->position(px,py);
-
- refresh(eff);} {}
- }
- Function {refresh(EffectMgr *eff_)} {open
- } {
- code {eff=eff_;
- this->hide();
-
- effnullwindow->hide();
- effreverbwindow->hide();
- effechowindow->hide();
- effchoruswindow->hide();
- effphaserwindow->hide();
- effalienwahwindow->hide();
- effdistorsionwindow->hide();
- effeqwindow->hide();
- effdynamicfilterwindow->hide();
-
- eqband=0;
-
- if (filterwindow!=NULL){
- filterwindow->hide();
- delete(filterwindow);
- filterwindow=NULL;
- };
-
- switch(eff->geteffect()){
- case 1:
- revp->value(eff->getpreset());
- revp0->value(eff->geteffectpar(0));if (eff->insertion!=0) revp0->label("D/W");
- revp1->value(eff->geteffectpar(1));
- revp2->value(eff->geteffectpar(2));
- revp3->value(eff->geteffectpar(3));
- revp4->value(eff->geteffectpar(4));
- //revp5->value(eff->geteffectpar(5));
- revp6->value(eff->geteffectpar(6));
- revp7->value(eff->geteffectpar(7));
- revp8->value(eff->geteffectpar(8));
- revp9->value(eff->geteffectpar(9));
- revp10->value(eff->geteffectpar(10));
- revp11->value(eff->geteffectpar(11));
- revp12->value(eff->geteffectpar(12));
-
- effreverbwindow->show();
- break;
- case 2:
- echop->value(eff->getpreset());
- echop0->value(eff->geteffectpar(0));if (eff->insertion!=0) echop0->label("D/W");
- echop1->value(eff->geteffectpar(1));
- echop2->value(eff->geteffectpar(2));
- echop3->value(eff->geteffectpar(3));
- echop4->value(eff->geteffectpar(4));
- echop5->value(eff->geteffectpar(5));
- echop6->value(eff->geteffectpar(6));
- effechowindow->show();
- break;
- case 3:
- chorusp->value(eff->getpreset());
- chorusp0->value(eff->geteffectpar(0));if (eff->insertion!=0) chorusp0->label("D/W");
- chorusp1->value(eff->geteffectpar(1));
- chorusp2->value(eff->geteffectpar(2));
- chorusp3->value(eff->geteffectpar(3));
- chorusp4->value(eff->geteffectpar(4));
- chorusp5->value(eff->geteffectpar(5));
- chorusp6->value(eff->geteffectpar(6));
- chorusp7->value(eff->geteffectpar(7));
- chorusp8->value(eff->geteffectpar(8));
- chorusp9->value(eff->geteffectpar(9));
- chorusp11->value(eff->geteffectpar(11));
- effchoruswindow->show();
- break;
- case 4:
- phaserp->value(eff->getpreset());
- phaserp0->value(eff->geteffectpar(0));if (eff->insertion!=0) phaserp0->label("D/W");
- phaserp1->value(eff->geteffectpar(1));
- phaserp2->value(eff->geteffectpar(2));
- phaserp3->value(eff->geteffectpar(3));
- phaserp4->value(eff->geteffectpar(4));
- phaserp5->value(eff->geteffectpar(5));
- phaserp6->value(eff->geteffectpar(6));
- phaserp7->value(eff->geteffectpar(7));
- phaserp8->value(eff->geteffectpar(8));
- phaserp9->value(eff->geteffectpar(9));
- phaserp10->value(eff->geteffectpar(10));
- phaserp11->value(eff->geteffectpar(11));
- phaserp12->value(eff->geteffectpar(12));
- phaserp13->value(eff->geteffectpar(13));
- phaserp14->value(eff->geteffectpar(14));
- effphaserwindow->show();
- break;
- case 5:
- awp->value(eff->getpreset());
- awp0->value(eff->geteffectpar(0));if (eff->insertion!=0) awp0->label("D/W");
- awp1->value(eff->geteffectpar(1));
- awp2->value(eff->geteffectpar(2));
- awp3->value(eff->geteffectpar(3));
- awp4->value(eff->geteffectpar(4));
- awp5->value(eff->geteffectpar(5));
- awp6->value(eff->geteffectpar(6));
- awp7->value(eff->geteffectpar(7));
- awp8->value(eff->geteffectpar(8));
- awp9->value(eff->geteffectpar(9));
- awp10->value(eff->geteffectpar(10));
-
- effalienwahwindow->show();
- break;
- case 6:
- distp->value(eff->getpreset());
- distp0->value(eff->geteffectpar(0));if (eff->insertion!=0) distp0->label("D/W");
- distp1->value(eff->geteffectpar(1));
- distp2->value(eff->geteffectpar(2));
- distp3->value(eff->geteffectpar(3));
- distp4->value(eff->geteffectpar(4));
- distp5->value(eff->geteffectpar(5));
- distp6->value(eff->geteffectpar(6));
- distp7->value(eff->geteffectpar(7));
- distp8->value(eff->geteffectpar(8));
- distp9->value(eff->geteffectpar(9));
- distp10->value(eff->geteffectpar(10));
- effdistorsionwindow->show();
- break;
- case 7:eqband=0;
- eqp0->value(eff->geteffectpar(0));
- bandcounter->value(eqband);
- bandcounter->do_callback();
- typechoice->value(eff->geteffectpar(10));
- eqgraph->redraw();
- freqdial->value(eff->geteffectpar(11));
- gaindial->value(eff->geteffectpar(12));
- if (eff->geteffectpar(10)<6) gaindial->deactivate();
- qdial->value(eff->geteffectpar(13));
- stagescounter->value(eff->geteffectpar(14));
- eqgraph->init(eff);
- effeqwindow->show();
- break;
- case 8:make_filter_window();
- dfp->value(eff->getpreset());
- dfp0->value(eff->geteffectpar(0));if (eff->insertion!=0) dfp0->label("D/W");
- dfp1->value(eff->geteffectpar(1));
- dfp2->value(eff->geteffectpar(2));
- dfp3->value(eff->geteffectpar(3));
- dfp4->value(eff->geteffectpar(4));
- dfp5->value(eff->geteffectpar(5));
- dfp6->value(eff->geteffectpar(6));
- dfp7->value(eff->geteffectpar(7));
- dfp8->value(eff->geteffectpar(8));
- dfp9->value(eff->geteffectpar(9));
-
-
- effdynamicfilterwindow->show();
- break;
- default:effnullwindow->show();
- break;
- };
-
- this->show();} {}
- }
- Function {refresh()} {open
- } {
- code {refresh(eff);} {}
- }
- decl {EffectMgr *eff;} {}
- decl {int eqband;} {}
- }
-
- class SimpleEffUI {open : {public Fl_Group,public PresetsUI_}
- } {
- Function {SimpleEffUI(int x,int y, int w, int h, const char *label=0):Fl_Group(x,y,w,h,label)} {} {
- code {eff=NULL;} {}
- }
- Function {~SimpleEffUI()} {} {
- code {effnullwindow->hide();//delete (effnullwindow);
- effreverbwindow->hide();//delete (effreverbwindow);
- effechowindow->hide();//delete (effechowindow);
- effchoruswindow->hide();//delete (effchoruswindow);
- effphaserwindow->hide();//delete (effphaserwindow);
- effalienwahwindow->hide();//delete (effalienwahwindow);
- effdistorsionwindow->hide();//delete (effdistorsionwindow);
- effeqwindow->hide();//delete (effeqwindow);
- effdynamicfilterwindow->hide();//delete (effdynamicfilterwindow);} {}
- }
- Function {make_null_window()} {open
- } {
- Fl_Window effnullwindow {
- label {No Effect} open
- xywh {1047 755 230 95} type Double box UP_BOX color 221 labelfont 1 labelsize 19 align 16
- code0 {set_module_parameters(o);}
- class Fl_Group visible
- } {}
- }
- Function {make_reverb_window()} {open
- } {
- Fl_Window effreverbwindow {
- label Reverb open
- xywh {1047 463 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice revp {
- label Preset
- callback {eff->changepreset((int)o->value());
-
- refresh(eff);}
- xywh {10 15 90 15} down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Cathedral 1}
- xywh {10 10 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Cathedral 2}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Cathedral 3}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Hall 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Hall 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Room 1}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Room 2}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Basement
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Tunnel
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echoed 1}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echoed 2}
- xywh {110 110 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Very Long 1}
- xywh {120 120 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Very Long 2}
- xywh {130 130 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial revp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp2 {
- label Time
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {Duration of Reverb} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp3 {
- label {I.del}
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {Initial Delay} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial revp9 {
- label Damp
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip Dampening xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 minimum 64 maximum 127 step 1
- class WidgetPDial
- }
- }
- }
- Function {make_echo_window()} {open
- } {
- Fl_Window effechowindow {
- label Echo open
- xywh {428 823 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice echop {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {11 15 95 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Echo 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echo 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Echo 3}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Simple Echo}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Canyon
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 1}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 2}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Panning Echo 3}
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Feedback Echo}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial echop0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop2 {
- label Delay
- callback {eff->seteffectpar(2,(int) o->value());}
- xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial echop5 {
- label {Fb.}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip Feedback xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- }
- }
- Function {make_chorus_window()} {open
- } {
- Fl_Window effchoruswindow {
- label Chorus open
- xywh {719 588 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice chorusp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Chorus 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Chorus 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Chorus 3}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Celeste 1}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Celeste 2}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 1}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 2}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 3}
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 4}
- xywh {100 100 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Flange 5}
- xywh {110 110 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial chorusp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO Frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip Depth xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp7 {
- label Delay
- callback {eff->seteffectpar(7,(int) o->value());}
- xywh {115 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial chorusp8 {
- label Fb
- callback {eff->seteffectpar(8,(int) o->value());}
- tooltip Feedback xywh {150 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Check_Button {} {
- label Flange
- callback {eff->seteffectpar(10,(int) o->value());}
- xywh {120 10 55 20} box THIN_UP_BOX down_box DOWN_BOX color 230 labelfont 1 labelsize 10 hide deactivate
- code0 {o->value(eff->geteffectpar(10));}
- }
- }
- }
- Function {make_phaser_window()} {open
- } {
- Fl_Window effphaserwindow {
- label Phaser open
- xywh {1047 831 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice phaserp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 0 labelfont 1 labelsize 10 labelcolor 55 align 5 textfont 1 textsize 10 textcolor 7
- } {
- MenuItem {} {
- label {Phaser 1}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 2}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 3}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 4}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 5}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Phaser 6}
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial phaserp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp5 {
- label {St.df}
- callback {eff->seteffectpar(5,(int) o->value());}
- tooltip {Left/Right Channel Phase Shift} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip Depth xywh {115 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial phaserp7 {
- label Fb
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip Feedback xywh {150 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Counter phaserp8 {
- label Stages
- callback {eff->seteffectpar(8,(int) o->value());}
- xywh {185 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
- code0 {o->range(1,MAX_PHASER_STAGES);}
- }
- }
- }
- Function {make_alienwah_window()} {open
- } {
- Fl_Window effalienwahwindow {
- label AlienWah open
- xywh {403 480 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice awp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Alienwah 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 3}
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Alienwah 4}
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial awp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial awp6 {
- label Dpth
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip Depth xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Counter awp8 {
- label Delay
- callback {eff->seteffectpar(8,(int) o->value());}
- xywh {125 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
- code0 {o->range(1,MAX_ALIENWAH_DELAY);}
- }
- }
- }
- Function {make_distorsion_window()} {open
- } {
- Fl_Window effdistorsionwindow {
- label Distortion open
- xywh {353 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice distp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {11 15 95 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label {Overdrive 1}
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Overdrive 2}
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {A. Exciter 1}
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {A. Exciter 2}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label {Guitar Amp}
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Quantisize
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial distp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp3 {
- label Drive
- callback {eff->seteffectpar(3,(int) o->value());}
- tooltip {Input amplification} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp4 {
- label Level
- callback {eff->seteffectpar(4,(int) o->value());}
- tooltip {Output Amplification} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial distp7 {
- label LPF
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip {Low Pass Filter} xywh {190 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Choice distp5 {
- label Type
- callback {eff->seteffectpar(5,(int) o->value());}
- xywh {120 50 60 20} box UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 align 2 textsize 10
- } {
- MenuItem {} {
- label Atan
- xywh {55 55 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Asym1
- xywh {65 65 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pow
- xywh {75 75 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sine
- xywh {85 85 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Qnts
- xywh {95 95 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Zigzg
- xywh {105 105 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lmt
- xywh {115 115 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LmtU
- xywh {125 125 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LmtL
- xywh {135 135 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label ILmt
- xywh {147 147 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Clip
- xywh {157 157 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Asym2
- xywh {75 75 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pow2
- xywh {85 85 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sgm
- xywh {95 95 100 20} labelfont 1 labelsize 10
- }
- }
- }
- }
- Function {make_eq_window()} {open
- } {
- Fl_Window effeqwindow {
- label EQ open
- xywh {1047 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Counter bandcounter {
- label Band
- callback {eqband=(int) o->value();
- int npb=eqband*5+10;
-
- int type=eff->geteffectpar(npb);
- typechoice->value(type);
-
- if (type>6) gaindial->activate();
- else gaindial->deactivate();
-
- if (type==0) bandgroup->deactivate();
- else bandgroup->activate();
-
- int freq=eff->geteffectpar(npb+1);
- freqdial->value(freq);
-
- int gain=eff->geteffectpar(npb+2);
- gaindial->value(gain);
-
- int q=eff->geteffectpar(npb+3);
- qdial->value(q);
-
- int dbl=eff->geteffectpar(npb+4);
- stagescounter->value(dbl);}
- tooltip {Band no.} xywh {85 15 45 15} type Simple labelfont 1 labelsize 11 align 1 minimum 0 maximum 1 step 1 textfont 1 textsize 11
- code0 {o->bounds(0,MAX_EQ_BANDS-1);}
- }
- Fl_Group bandgroup {
- xywh {5 5 75 85} box UP_FRAME
- code0 {if (eff->geteffectpar(10)==0) o->deactivate();}
- } {
- Fl_Dial freqdial {
- label Freq
- callback {int np=eqband*5+11;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- xywh {10 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
- class WidgetPDial
- }
- Fl_Dial gaindial {
- label Gain
- callback {int np=eqband*5+12;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- xywh {45 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127 step 1
- class WidgetPDial
- }
- Fl_Dial qdial {
- label Q
- callback {int np=eqband*5+13;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- tooltip {Bandwidth/Resonance} xywh {10 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
- class WidgetPDial
- }
- Fl_Counter stagescounter {
- label Stages
- callback {int np=eqband*5+14;
- eff->seteffectpar(np,(int) o->value());
- eqgraph->redraw();}
- tooltip {Additional filter stages} xywh {40 55 30 15} type Simple labelfont 1 labelsize 10 minimum 1 maximum 127 step 1 textfont 1 textsize 11
- code0 {o->bounds(0,MAX_FILTER_STAGES-1);}
- }
- }
- Fl_Choice typechoice {
- label Type
- callback {int np=eqband*5+10;
- eff->seteffectpar(np,(int) o->value());
- bandcounter->do_callback();
- eqgraph->redraw();}
- tooltip Type xywh {135 15 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 1 when 6 textsize 10
- } {
- MenuItem {} {
- label OFF
- xywh {10 10 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lp1
- xywh {20 20 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Hp1
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Lp2
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Hp2
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Bp2
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label N2
- xywh {70 70 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Pk
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label LSh
- xywh {80 80 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label HSh
- xywh {90 90 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Box eqgraph {
- xywh {85 35 140 55} box BORDER_BOX color 50
- code0 {o->init(eff);}
- class EQGraph
- }
- }
- }
- Function {make_dynamicfilter_window()} {open
- } {
- Fl_Window effdynamicfilterwindow {
- label DynFilter open
- xywh {965 527 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19 align 25
- code3 {set_module_parameters(o);}
- class Fl_Group visible
- } {
- Fl_Choice dfp {
- label Preset
- callback {eff->changepreset((int)o->value());
- refresh(eff);}
- xywh {10 15 90 15} box UP_BOX down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
- } {
- MenuItem {} {
- label WahWah
- xywh {30 30 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label AutoWah
- xywh {40 40 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label Sweep
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label VocalMorph1
- xywh {50 50 100 20} labelfont 1 labelsize 10
- }
- MenuItem {} {
- label VocalMorph2
- xywh {60 60 100 20} labelfont 1 labelsize 10
- }
- }
- Fl_Dial dfp0 {
- label Vol
- callback {eff->seteffectpar(0,(int) o->value());}
- tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp2 {
- label Freq
- callback {eff->seteffectpar(2,(int) o->value());}
- tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp6 {
- label LfoD
- callback {eff->seteffectpar(6,(int) o->value());}
- tooltip {LFO depth} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Group {} {
- xywh {115 40 65 45} box UP_FRAME
- } {
- Fl_Dial dfp7 {
- label {A.S.}
- callback {eff->seteffectpar(7,(int) o->value());}
- tooltip {how filter varies with amplitude} xywh {120 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- Fl_Dial dfp9 {
- label {A.M}
- callback {eff->seteffectpar(9,(int) o->value());}
- tooltip {how quickly the filter varies with amplitude} xywh {150 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
- class WidgetPDial
- }
- }
- }
- }
- Function {init(EffectMgr *eff_)} {open
- } {
- code {eff=eff_;
-
- make_null_window();
- make_reverb_window();
- make_echo_window();
- make_chorus_window();
- make_phaser_window();
- make_alienwah_window();
- make_distorsion_window();
- make_eq_window();
- make_dynamicfilter_window();
-
- int px=this->parent()->x();
- int py=this->parent()->y();
-
- effnullwindow->position(px,py);
- effreverbwindow->position(px,py);
- effechowindow->position(px,py);
- effchoruswindow->position(px,py);
- effphaserwindow->position(px,py);
- effalienwahwindow->position(px,py);
- effdistorsionwindow->position(px,py);
- effeqwindow->position(px,py);
- effdynamicfilterwindow->position(px,py);
-
- refresh(eff);} {}
- }
- Function {refresh(EffectMgr *eff_)} {} {
- code {eff=eff_;
- this->hide();
-
- effnullwindow->hide();
- effreverbwindow->hide();
- effechowindow->hide();
- effchoruswindow->hide();
- effphaserwindow->hide();
- effalienwahwindow->hide();
- effdistorsionwindow->hide();
- effeqwindow->hide();
- effdynamicfilterwindow->hide();
-
- eqband=0;
-
-
- switch(eff->geteffect()){
- case 1:
- revp->value(eff->getpreset());
- revp0->value(eff->geteffectpar(0));if (eff->insertion!=0) revp0->label("D/W");
- revp2->value(eff->geteffectpar(2));
- revp3->value(eff->geteffectpar(3));
- revp9->value(eff->geteffectpar(9));
- effreverbwindow->show();
- break;
- case 2:
- echop->value(eff->getpreset());
- echop0->value(eff->geteffectpar(0));if (eff->insertion!=0) echop0->label("D/W");
- echop2->value(eff->geteffectpar(2));
- echop5->value(eff->geteffectpar(5));
- effechowindow->show();
- break;
- case 3:
- chorusp->value(eff->getpreset());
- chorusp0->value(eff->geteffectpar(0));if (eff->insertion!=0) chorusp0->label("D/W");
- chorusp2->value(eff->geteffectpar(2));
- chorusp6->value(eff->geteffectpar(6));
- chorusp7->value(eff->geteffectpar(7));
- chorusp8->value(eff->geteffectpar(8));
- effchoruswindow->show();
- break;
- case 4:
- phaserp->value(eff->getpreset());
- phaserp0->value(eff->geteffectpar(0));if (eff->insertion!=0) phaserp0->label("D/W");
- phaserp2->value(eff->geteffectpar(2));
- phaserp5->value(eff->geteffectpar(5));
- phaserp6->value(eff->geteffectpar(6));
- phaserp7->value(eff->geteffectpar(7));
- phaserp8->value(eff->geteffectpar(8));
- effphaserwindow->show();
- break;
- case 5:
- awp->value(eff->getpreset());
- awp0->value(eff->geteffectpar(0));if (eff->insertion!=0) awp0->label("D/W");
- awp2->value(eff->geteffectpar(2));
- awp6->value(eff->geteffectpar(6));
- awp8->value(eff->geteffectpar(8));
- effalienwahwindow->show();
- break;
- case 6:
- distp->value(eff->getpreset());
- distp0->value(eff->geteffectpar(0));if (eff->insertion!=0) distp0->label("D/W");
- distp3->value(eff->geteffectpar(3));
- distp4->value(eff->geteffectpar(4));
- distp5->value(eff->geteffectpar(5));
- distp7->value(eff->geteffectpar(7));
- effdistorsionwindow->show();
- break;
- case 7:
- bandcounter->value(eqband);
- bandcounter->do_callback();
- typechoice->value(eff->geteffectpar(10));
- eqgraph->redraw();
- freqdial->value(eff->geteffectpar(11));
- gaindial->value(eff->geteffectpar(12));
- if (eff->geteffectpar(10)<6) gaindial->deactivate();
- qdial->value(eff->geteffectpar(13));
- stagescounter->value(eff->geteffectpar(14));
- eqgraph->init(eff);
- effeqwindow->show();
- break;
- case 8:
- dfp->value(eff->getpreset());
- dfp0->value(eff->geteffectpar(0));if (eff->insertion!=0) dfp0->label("D/W");
- dfp2->value(eff->geteffectpar(2));
- dfp6->value(eff->geteffectpar(6));
- dfp7->value(eff->geteffectpar(7));
- dfp9->value(eff->geteffectpar(9));
-
-
- effdynamicfilterwindow->show();
- break;
- default:effnullwindow->show();
- break;
- };
-
- this->show();} {}
- }
- Function {refresh()} {} {
- code {refresh(eff);} {}
- }
- decl {EffectMgr *eff;} {}
- decl {int eqband;} {}
- }
|