zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

LFOUI.fl (5802B)


      1 # data file for the Fltk User Interface Designer (fluid)
      2 version 1.0302 
      3 header_name {.h} 
      4 code_name {.cc}
      5 decl {//Copyright (c) 2002-2005 Nasca Octavian Paul} {private local
      6 } 
      7 
      8 decl {//License: GNU GPL version 2 or later} {private local
      9 } 
     10 
     11 decl {\#include "Fl_Osc_Dial.H"} {public local
     12 } 
     13 
     14 decl {\#include "Fl_Osc_DialF.H"} {public local
     15 } 
     16 
     17 decl {\#include "Fl_Osc_Choice.H"} {public local
     18 } 
     19 
     20 decl {\#include "Fl_Osc_Check.H"} {public local
     21 } 
     22 
     23 decl {\#include "Fl_Osc_Pane.H"} {public local
     24 }
     25 
     26 decl {\#include "../globals.h"} {private global
     27 } 
     28 
     29 decl {\#include <FL/Fl_Group.H>} {private global
     30 } 
     31 
     32 decl {\#include <FL/Fl_Box.H>} {private global
     33 } 
     34 
     35 decl {\#include <FL/fl_draw.H>} {private global
     36 } 
     37 
     38 decl {\#include <string>} {public local
     39 } 
     40 
     41 decl {\#include "PresetsUI.h"} {public local
     42 } 
     43 
     44 decl {\#include "common.H"} {public local
     45 } 
     46 
     47 class LFOUI {open : {public Fl_Osc_Group, PresetsUI_}
     48 } {
     49   Function {LFOUI(int x,int y, int w, int h, const char *label=0):Fl_Osc_Group(x,y,w,h)} {open
     50   } {
     51     code { cached_label = label; } {}
     52   }
     53   Function {~LFOUI()} {open
     54   } {
     55     code {lfoui->hide();
     56 hide();} {}
     57   }
     58   Function {make_window()} {open
     59   } {
     60     Fl_Window lfoui {open
     61       xywh {636 397 230 70} type Double color 50 labelfont 1
     62       class Fl_Group visible
     63     } {
     64       Fl_Group lfoparamswindow {
     65         label LFO open
     66         xywh {0 0 230 70} box UP_BOX color 223 labeltype ENGRAVED_LABEL labelsize 10 align 17
     67         code0 {set_module_parameters(o);}
     68         class Fl_Osc_Group
     69       } {
     70         Fl_Dial freq {
     71           label {Freq.} selected
     72           tooltip {LFO Frequency} xywh {5 20 30 30} box ROUND_UP_BOX labelsize 10 step 1e-05
     73           code0 {o->init("Pfreq");}
     74           class Fl_Osc_DialF
     75         }
     76         Fl_Dial intensity {
     77           label Depth
     78           tooltip {LFO Amount} xywh {40 20 30 30} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
     79           code0 {o->init("Pintensity");}
     80           class Fl_Osc_Dial
     81         }
     82         Fl_Dial cutoff {
     83           label LP
     84           tooltip {LP cutoff} xywh {70 30 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
     85           code0 {o->init("Pcutoff");}
     86           class Fl_Osc_Dial
     87         }
     88         Fl_Dial delay {
     89           label Delay
     90           tooltip {LFO delay} xywh {120 30 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
     91           code0 {o->init("Pdelay");}
     92           class Fl_Osc_Dial
     93         }
     94         Fl_Dial startphase {
     95           label Start
     96           tooltip {LFO Startphase (leftmost is Random)} xywh {95 20 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
     97           code0 {o->init("Pstartphase");}
     98           class Fl_Osc_Dial
     99         }
    100         Fl_Dial randomness {
    101           label {A.R.}
    102           tooltip {LFO Amplitude Randomness} xywh {180 7 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
    103           code0 {o->init("Prandomness");}
    104           class Fl_Osc_Dial
    105         }
    106         Fl_Choice LFOtype {
    107           label Type
    108           tooltip {LFO function} xywh {180 40 45 15} down_box BORDER_BOX labelsize 10 align 2 textsize 8
    109           code0 {o->init("PLFOtype");}
    110           class Fl_Osc_Choice
    111         } {
    112           MenuItem {} {
    113             label SINE
    114             xywh {20 20 100 20} labelfont 1 labelsize 10
    115           }
    116           MenuItem {} {
    117             label TRI
    118             xywh {30 30 100 20} labelfont 1 labelsize 10
    119           }
    120           MenuItem {} {
    121             label SQR
    122             xywh {30 30 100 20} labelfont 1 labelsize 10
    123           }
    124           MenuItem {} {
    125             label {R.up}
    126             xywh {40 40 100 20} labelfont 1 labelsize 10
    127           }
    128           MenuItem {} {
    129             label {R.dn}
    130             xywh {50 50 100 20} labelfont 1 labelsize 10
    131           }
    132           MenuItem {} {
    133             label E1dn
    134             xywh {60 60 100 20} labelfont 1 labelsize 10
    135           }
    136           MenuItem {} {
    137             label E2dn
    138             xywh {70 70 100 20} labelfont 1 labelsize 10
    139           }
    140           MenuItem {} {
    141             label RND
    142             xywh {80 80 100 20} labelfont 1 labelsize 10
    143           }
    144         }
    145         Fl_Check_Button continous {
    146           label {C.}
    147           tooltip {Continuous LFO} xywh {165 35 15 15} down_box DOWN_BOX labelsize 10 align 2
    148           code0 {o->init("Pcontinous");}
    149           class Fl_Osc_Check
    150         }
    151         Fl_Dial freqrand {
    152           label {F.R.}
    153           tooltip {LFO Frequency Randomness} xywh {205 7 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
    154           code0 {o->init("Pfreqrand");}
    155           class Fl_Osc_Dial
    156         }
    157         Fl_Dial stretch {
    158           label {Str.}
    159           tooltip {LFO stretch} xywh {144 30 20 20} box ROUND_UP_BOX labelsize 10 maximum 127 step 1
    160           code0 {o->init("Pstretch");}
    161           class Fl_Osc_Dial
    162         }
    163         Fl_Button {} {
    164           label C
    165           callback {presetsui->copy(lfoparamswindow->loc());}
    166           xywh {145 10 15 15} box THIN_UP_BOX color 179 labelfont 1 labelsize 10 labelcolor 55
    167         }
    168         Fl_Button {} {
    169           label P
    170           callback {presetsui->paste(lfoparamswindow->loc(),this);}
    171           xywh {162 10 15 15} box THIN_UP_BOX color 179 labelfont 1 labelsize 10 labelcolor 55
    172         }
    173       }
    174     }
    175   }
    176   Function {refresh()} {open
    177   } {
    178     code {freq->update();
    179 intensity->update();
    180 startphase->update();
    181 cutoff->update();
    182 delay->update();
    183 continous->update();
    184 stretch->update();
    185 randomness->update();
    186 freqrand->update();
    187 LFOtype->update();} {}
    188   }
    189   Function {init(Fl_Osc_Interface *osc_, std::string base_, std::string ext_)} {open
    190   } {
    191     code {base = base_;
    192     ext = ext_;
    193 osc = osc_;
    194 
    195 make_window();
    196 end();
    197 
    198 refresh();
    199 
    200 lfoui->resize(this->x(),this->y(),this->w(),this->h());
    201 
    202 lfoparamswindow->label(cached_label);} {}
    203   }
    204 
    205   decl { const char *cached_label; } { private }
    206 }