Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
5.2KB

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