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.

191 lines
5.2KB

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