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.

2069 lines
63KB

  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 <stdlib.h>} {public local
  10. }
  11. decl {\#include <stdio.h>} {public local
  12. }
  13. decl {\#include <string.h>} {public local
  14. }
  15. decl {\#include "../globals.h"} {public local
  16. }
  17. decl {\#include "Fl_Osc_Dial.H"} {public local
  18. }
  19. decl {\#include "Fl_Osc_Check.H"} {public local
  20. }
  21. decl {\#include "Fl_EQGraph.H"} {public local
  22. }
  23. decl {\#include "Fl_Osc_Pane.H"} {public local
  24. }
  25. decl {\#include "EnvelopeUI.h"} {public local
  26. }
  27. decl {\#include "FilterUI.h"} {public local
  28. }
  29. decl {\#include "../Misc/Util.h"} {public local
  30. }
  31. decl {\#include "../Effects/EffectMgr.h"} {public local
  32. }
  33. decl {\#include "../Effects/Phaser.h" /* for macros only, TODO */} {public local
  34. }
  35. decl {\#include "../Effects/Alienwah.h" /* for macros only, TODO */ } {public local
  36. }
  37. decl {\#include "PresetsUI.h"} {public local
  38. }
  39. decl {\#include "common.H"} {public local
  40. }
  41. class EffUI {open : {public Fl_Osc_Group,public PresetsUI_}
  42. } {
  43. Function {EffUI(int x,int y, int w, int h, const char *label=0):Fl_Osc_Group(x,y,w,h,label)} {} {
  44. code {filterwindow=NULL;} {}
  45. }
  46. Function {~EffUI()} {} {
  47. code {effnullwindow->hide();//delete (effnullwindow);
  48. effreverbwindow->hide();//delete (effreverbwindow);
  49. effechowindow->hide();//delete (effechowindow);
  50. effchoruswindow->hide();//delete (effchoruswindow);
  51. effphaserwindow->hide();//delete (effphaserwindow);
  52. effalienwahwindow->hide();//delete (effalienwahwindow);
  53. effdistorsionwindow->hide();//delete (effdistorsionwindow);
  54. effeqwindow->hide();//delete (effeqwindow);
  55. effdynamicfilterwindow->hide();//delete (effdynamicfilterwindow);
  56. if (filterwindow!=NULL){
  57. filterwindow->hide();
  58. delete(filterwindow);
  59. };} {}
  60. }
  61. Function {make_null_window()} {} {
  62. Fl_Window effnullwindow {
  63. xywh {621 881 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  64. code0 {set_module_parameters(o);}
  65. class Fl_Group visible
  66. } {}
  67. }
  68. Function {make_reverb_window()} {} {
  69. Fl_Window effreverbwindow {
  70. xywh {386 705 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  71. code0 {set_module_parameters(o);}
  72. class Fl_Group visible
  73. } {
  74. Fl_Choice revp {
  75. label Preset
  76. 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
  77. code0 {o->init("preset");}
  78. class Fl_Osc_Choice
  79. } {
  80. MenuItem {} {
  81. label {Cathedral 1}
  82. xywh {10 10 100 20} labelfont 1 labelsize 10
  83. }
  84. MenuItem {} {
  85. label {Cathedral 2}
  86. xywh {20 20 100 20} labelfont 1 labelsize 10
  87. }
  88. MenuItem {} {
  89. label {Cathedral 3}
  90. xywh {30 30 100 20} labelfont 1 labelsize 10
  91. }
  92. MenuItem {} {
  93. label {Hall 1}
  94. xywh {40 40 100 20} labelfont 1 labelsize 10
  95. }
  96. MenuItem {} {
  97. label {Hall 2}
  98. xywh {50 50 100 20} labelfont 1 labelsize 10
  99. }
  100. MenuItem {} {
  101. label {Room 1}
  102. xywh {60 60 100 20} labelfont 1 labelsize 10
  103. }
  104. MenuItem {} {
  105. label {Room 2}
  106. xywh {70 70 100 20} labelfont 1 labelsize 10
  107. }
  108. MenuItem {} {
  109. label Basement
  110. xywh {80 80 100 20} labelfont 1 labelsize 10
  111. }
  112. MenuItem {} {
  113. label Tunnel
  114. xywh {90 90 100 20} labelfont 1 labelsize 10
  115. }
  116. MenuItem {} {
  117. label {Echoed 1}
  118. xywh {100 100 100 20} labelfont 1 labelsize 10
  119. }
  120. MenuItem {} {
  121. label {Echoed 2}
  122. xywh {110 110 100 20} labelfont 1 labelsize 10
  123. }
  124. MenuItem {} {
  125. label {Very Long 1}
  126. xywh {120 120 100 20} labelfont 1 labelsize 10
  127. }
  128. MenuItem {} {
  129. label {Very Long 2}
  130. xywh {130 130 100 20} labelfont 1 labelsize 10
  131. }
  132. }
  133. Fl_Choice revp10 {
  134. label Type
  135. callback {if(o->value()==2) revp12->activate();
  136. else revp12->deactivate();}
  137. xywh {110 15 85 15} box UP_BOX down_box BORDER_BOX color 14 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
  138. code0 {o->init("parameter10");}
  139. class Fl_Osc_Choice
  140. } {
  141. MenuItem {} {
  142. label Random
  143. xywh {20 20 100 20} labelfont 1 labelsize 10
  144. }
  145. MenuItem {} {
  146. label Freeverb
  147. xywh {30 30 100 20} labelfont 1 labelsize 10
  148. }
  149. MenuItem {} {
  150. label Bandwidth
  151. xywh {40 40 100 20} labelfont 1 labelsize 10
  152. }
  153. }
  154. Fl_Dial revp0 {
  155. label Vol
  156. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  157. code0 {o->init("parameter0");}
  158. class Fl_Osc_Dial
  159. }
  160. Fl_Dial revp1 {
  161. label Pan
  162. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  163. code0 {o->init("parameter1");}
  164. class Fl_Osc_Dial
  165. }
  166. Fl_Dial revp2 {
  167. label Time
  168. tooltip {Duration of Effect} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  169. code0 {o->init("parameter2");}
  170. class Fl_Osc_Dial
  171. }
  172. Fl_Dial revp3 {
  173. label {I.del}
  174. tooltip {Initial Delay} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  175. code0 {o->init("parameter3");}
  176. class Fl_Osc_Dial
  177. }
  178. Fl_Dial revp4 {
  179. label {I.delfb}
  180. tooltip {Initial Delay Feedback} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  181. code0 {o->init("parameter4");}
  182. class Fl_Osc_Dial
  183. }
  184. Fl_Dial revp12 {
  185. label bw
  186. xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127 deactivate
  187. code0 {o->init("parameter12");}
  188. class Fl_Osc_Dial
  189. }
  190. Fl_Dial revp6 {
  191. label {E/R}
  192. xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127 deactivate
  193. code0 {o->init("parameter6");}
  194. class Fl_Osc_Dial
  195. }
  196. Fl_Dial revp7 {
  197. label LPF
  198. tooltip {Low Pass Filter} xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  199. code0 {o->init("parameter7");}
  200. class Fl_Osc_Dial
  201. }
  202. Fl_Dial revp8 {
  203. label HPF
  204. tooltip {High Pass Filter} xywh {305 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  205. code0 {o->init("parameter8");}
  206. class Fl_Osc_Dial
  207. }
  208. Fl_Dial revp9 {
  209. label Damp
  210. tooltip Dampening xywh {340 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 minimum 64 maximum 127 step 1
  211. code0 {o->init("parameter9");}
  212. class Fl_Osc_Dial
  213. }
  214. Fl_Dial revp11 {
  215. label {R.S.}
  216. tooltip RoomSize xywh {200 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 8 align 8 minimum 1 maximum 127 step 1
  217. code0 {o->init("parameter11");}
  218. class Fl_Osc_Dial
  219. }
  220. }
  221. }
  222. Function {make_echo_window()} {} {
  223. Fl_Window effechowindow {
  224. xywh {897 680 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  225. code0 {set_module_parameters(o);}
  226. class Fl_Group visible
  227. } {
  228. Fl_Choice echop {
  229. label Preset
  230. 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
  231. code0 {o->init("preset");}
  232. class Fl_Osc_Choice
  233. } {
  234. MenuItem {} {
  235. label {Echo 1}
  236. xywh {20 20 100 20} labelfont 1 labelsize 10
  237. }
  238. MenuItem {} {
  239. label {Echo 2}
  240. xywh {30 30 100 20} labelfont 1 labelsize 10
  241. }
  242. MenuItem {} {
  243. label {Echo 3}
  244. xywh {40 40 100 20} labelfont 1 labelsize 10
  245. }
  246. MenuItem {} {
  247. label {Simple Echo}
  248. xywh {50 50 100 20} labelfont 1 labelsize 10
  249. }
  250. MenuItem {} {
  251. label Canyon
  252. xywh {60 60 100 20} labelfont 1 labelsize 10
  253. }
  254. MenuItem {} {
  255. label {Panning Echo 1}
  256. xywh {70 70 100 20} labelfont 1 labelsize 10
  257. }
  258. MenuItem {} {
  259. label {Panning Echo 2}
  260. xywh {80 80 100 20} labelfont 1 labelsize 10
  261. }
  262. MenuItem {} {
  263. label {Panning Echo 3}
  264. xywh {90 90 100 20} labelfont 1 labelsize 10
  265. }
  266. MenuItem {} {
  267. label {Feedback Echo}
  268. xywh {100 100 100 20} labelfont 1 labelsize 10
  269. }
  270. }
  271. Fl_Dial echop0 {
  272. label Vol
  273. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  274. code0 {o->init("parameter0");}
  275. class Fl_Osc_Dial
  276. }
  277. Fl_Dial echop1 {
  278. label Pan
  279. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  280. code0 {o->init("parameter1");}
  281. class Fl_Osc_Dial
  282. }
  283. Fl_Dial echop2 {
  284. label Delay
  285. xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  286. code0 {o->init("parameter2");}
  287. class Fl_Osc_Dial
  288. }
  289. Fl_Dial echop3 {
  290. label {LRdl.}
  291. tooltip {Delay Between L/R} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  292. code0 {o->init("parameter3");}
  293. class Fl_Osc_Dial
  294. }
  295. Fl_Dial echop4 {
  296. label {LRc.}
  297. tooltip {L/R Crossover} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  298. code0 {o->init("parameter4");}
  299. class Fl_Osc_Dial
  300. }
  301. Fl_Dial echop5 {
  302. label {Fb.}
  303. tooltip Feedback xywh {195 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  304. code0 {o->init("parameter5");}
  305. class Fl_Osc_Dial
  306. }
  307. Fl_Dial echop6 {
  308. label Damp
  309. tooltip Dampening xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  310. code0 {o->init("parameter6");}
  311. class Fl_Osc_Dial
  312. }
  313. }
  314. }
  315. Function {make_chorus_window()} {} {
  316. Fl_Window effchoruswindow {
  317. xywh {476 811 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  318. code0 {set_module_parameters(o);}
  319. class Fl_Group visible
  320. } {
  321. Fl_Choice chorusp {
  322. label Preset
  323. 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
  324. code0 {o->init("preset");}
  325. class Fl_Osc_Choice
  326. } {
  327. MenuItem {} {
  328. label {Chorus 1}
  329. xywh {20 20 100 20} labelfont 1 labelsize 10
  330. }
  331. MenuItem {} {
  332. label {Chorus 2}
  333. xywh {30 30 100 20} labelfont 1 labelsize 10
  334. }
  335. MenuItem {} {
  336. label {Chorus 3}
  337. xywh {40 40 100 20} labelfont 1 labelsize 10
  338. }
  339. MenuItem {} {
  340. label {Celeste 1}
  341. xywh {50 50 100 20} labelfont 1 labelsize 10
  342. }
  343. MenuItem {} {
  344. label {Celeste 2}
  345. xywh {60 60 100 20} labelfont 1 labelsize 10
  346. }
  347. MenuItem {} {
  348. label {Flange 1}
  349. xywh {70 70 100 20} labelfont 1 labelsize 10
  350. }
  351. MenuItem {} {
  352. label {Flange 2}
  353. xywh {80 80 100 20} labelfont 1 labelsize 10
  354. }
  355. MenuItem {} {
  356. label {Flange 3}
  357. xywh {90 90 100 20} labelfont 1 labelsize 10
  358. }
  359. MenuItem {} {
  360. label {Flange 4}
  361. xywh {100 100 100 20} labelfont 1 labelsize 10
  362. }
  363. MenuItem {} {
  364. label {Flange 5}
  365. xywh {110 110 100 20} labelfont 1 labelsize 10
  366. }
  367. }
  368. Fl_Dial chorusp0 {
  369. label Vol
  370. xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  371. code0 {o->init("parameter0");}
  372. class Fl_Osc_Dial
  373. }
  374. Fl_Dial chorusp1 {
  375. label Pan
  376. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  377. code0 {o->init("parameter1");}
  378. class Fl_Osc_Dial
  379. }
  380. Fl_Dial chorusp2 {
  381. label Freq
  382. tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  383. code0 {o->init("parameter2");}
  384. class Fl_Osc_Dial
  385. }
  386. Fl_Dial chorusp3 {
  387. label Rnd
  388. tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  389. code0 {o->init("parameter3");}
  390. class Fl_Osc_Dial
  391. }
  392. Fl_Dial chorusp5 {
  393. label {St.df}
  394. tooltip {L/R Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  395. code0 {o->init("parameter5");}
  396. class Fl_Osc_Dial
  397. }
  398. Fl_Dial chorusp6 {
  399. label Dpth
  400. tooltip {LFO Depth} xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  401. code0 {o->init("parameter6");}
  402. class Fl_Osc_Dial
  403. }
  404. Fl_Dial chorusp7 {
  405. label Delay
  406. xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  407. code0 {o->init("parameter7");}
  408. class Fl_Osc_Dial
  409. }
  410. Fl_Dial chorusp8 {
  411. label Fb
  412. tooltip Feedback xywh {305 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  413. code0 {o->init("parameter8");}
  414. class Fl_Osc_Dial
  415. }
  416. Fl_Dial chorusp9 {
  417. label {L/R}
  418. tooltip {Channel Routing} xywh {340 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  419. code0 {o->init("parameter9");}
  420. class Fl_Osc_Dial
  421. }
  422. Fl_Check_Button {} {
  423. label Flange
  424. xywh {120 10 55 20} box THIN_UP_BOX down_box DOWN_BOX color 230 labelfont 1 labelsize 10 hide deactivate
  425. code0 {o->init("parameter10");}
  426. class Fl_Osc_Check
  427. }
  428. Fl_Check_Button chorusp11 {
  429. label Subtract
  430. tooltip {inverts the output} xywh {185 10 70 20} box THIN_UP_BOX down_box DOWN_BOX color 51 labelsize 10
  431. code0 {o->init("parameter11");}
  432. class Fl_Osc_Check
  433. }
  434. Fl_Choice chorusp4 {
  435. label {LFO type}
  436. tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
  437. code0 {o->init("parameter4");}
  438. class Fl_Osc_Choice
  439. } {
  440. MenuItem {} {
  441. label SINE
  442. xywh {15 15 100 20} labelfont 1 labelsize 10
  443. }
  444. MenuItem {} {
  445. label TRI
  446. xywh {25 25 100 20} labelfont 1 labelsize 10
  447. }
  448. }
  449. }
  450. }
  451. Function {make_phaser_window()} {} {
  452. Fl_Window effphaserwindow {
  453. xywh {110 301 380 95} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  454. code0 {set_module_parameters(o);}
  455. class Fl_Group visible
  456. } {
  457. Fl_Choice phaserp {
  458. label Preset
  459. 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
  460. code0 {o->init("preset");}
  461. class Fl_Osc_Choice
  462. } {
  463. MenuItem {} {
  464. label {Phaser 1}
  465. xywh {30 30 100 20} labelfont 1 labelsize 10
  466. }
  467. MenuItem {} {
  468. label {Phaser 2}
  469. xywh {40 40 100 20} labelfont 1 labelsize 10
  470. }
  471. MenuItem {} {
  472. label {Phaser 3}
  473. xywh {50 50 100 20} labelfont 1 labelsize 10
  474. }
  475. MenuItem {} {
  476. label {Phaser 4}
  477. xywh {60 60 100 20} labelfont 1 labelsize 10
  478. }
  479. MenuItem {} {
  480. label {Phaser 5}
  481. xywh {70 70 100 20} labelfont 1 labelsize 10
  482. }
  483. MenuItem {} {
  484. label {Phaser 6}
  485. xywh {80 80 100 20} labelfont 1 labelsize 10
  486. }
  487. MenuItem {} {
  488. label {APhaser 1}
  489. xywh {40 40 100 20} labelfont 1 labelsize 10
  490. }
  491. MenuItem {} {
  492. label {APhaser 2}
  493. xywh {50 50 100 20} labelfont 1 labelsize 10
  494. }
  495. MenuItem {} {
  496. label {APhaser 3}
  497. xywh {60 60 100 20} labelfont 1 labelsize 10
  498. }
  499. MenuItem {} {
  500. label {APhaser 4}
  501. xywh {70 70 100 20} labelfont 1 labelsize 10
  502. }
  503. MenuItem {} {
  504. label {APhaser 5}
  505. xywh {80 80 100 20} labelfont 1 labelsize 10
  506. }
  507. MenuItem {} {
  508. label {APhaser 6}
  509. xywh {90 90 100 20} labelfont 1 labelsize 10
  510. }
  511. }
  512. Fl_Dial phaserp0 {
  513. label Vol
  514. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  515. code0 {o->init("parameter0");}
  516. class Fl_Osc_Dial
  517. }
  518. Fl_Dial phaserp1 {
  519. label Pan
  520. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  521. code0 {o->init("parameter1");}
  522. class Fl_Osc_Dial
  523. }
  524. Fl_Dial phaserp2 {
  525. label Freq
  526. tooltip {LFO frequency} xywh {85 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  527. code0 {o->init("parameter2");}
  528. class Fl_Osc_Dial
  529. }
  530. Fl_Dial phaserp3 {
  531. label Rnd
  532. tooltip {LFO randomness} xywh {120 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  533. code0 {o->init("parameter3");}
  534. class Fl_Osc_Dial
  535. }
  536. Fl_Choice phaserp4 {
  537. label LFO
  538. tooltip {LFO function} xywh {245 55 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
  539. code0 {o->init("parameter4");}
  540. class Fl_Osc_Choice
  541. } {
  542. MenuItem {} {
  543. label SIN
  544. xywh {15 15 100 20} labelfont 1 labelsize 10
  545. }
  546. MenuItem {} {
  547. label TRI
  548. xywh {25 25 100 20} labelfont 1 labelsize 10
  549. }
  550. }
  551. Fl_Dial phaserp5 {
  552. label {St.df}
  553. tooltip {Left/Right Channel Phase Shift} xywh {155 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  554. code0 {o->init("parameter5");}
  555. class Fl_Osc_Dial
  556. }
  557. Fl_Dial phaserp6 {
  558. label Dpth
  559. tooltip {LFO Depth} xywh {120 5 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 maximum 127
  560. code0 {o->init("parameter6");}
  561. class Fl_Osc_Dial
  562. }
  563. Fl_Dial phaserp7 {
  564. label Fb
  565. tooltip Feedback xywh {185 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  566. code0 {o->init("parameter7");}
  567. class Fl_Osc_Dial
  568. }
  569. Fl_Counter phaserp8 {
  570. label Stages
  571. xywh {290 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
  572. code0 {o->range(1,MAX_PHASER_STAGES);}
  573. code1 {o->init("parameter8");}
  574. class Fl_Osc_Counter
  575. }
  576. Fl_Dial phaserp9 {
  577. label {L/R}
  578. tooltip {Channel Routing} xywh {215 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  579. code0 {o->init("parameter9");}
  580. class Fl_Osc_Dial
  581. }
  582. Fl_Check_Button phaserp10 {
  583. label Subtract
  584. tooltip {inverts output} xywh {200 10 74 20} box THIN_UP_BOX down_box DOWN_BOX color 51 labelfont 1 labelsize 10
  585. code0 {o->init("parameter10");}
  586. class Fl_Osc_Check
  587. }
  588. Fl_Dial phaserp11 {
  589. label Phase
  590. xywh {155 5 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 maximum 127
  591. code0 {o->init("parameter11");}
  592. class Fl_Osc_Dial
  593. }
  594. Fl_Check_Button phaserp12 {
  595. label {hyp.}
  596. tooltip hyper xywh {245 35 55 15} down_box DOWN_BOX
  597. code0 {o->init("parameter12");}
  598. class Fl_Osc_Check
  599. }
  600. Fl_Dial phaserp13 {
  601. label dist
  602. tooltip Distortion xywh {340 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  603. code0 {o->init("parameter13");}
  604. class Fl_Osc_Dial
  605. }
  606. Fl_Check_Button phaserp14 {
  607. label Analog
  608. xywh {305 35 70 15} down_box DOWN_BOX
  609. code0 {o->init("parameter14");}
  610. class Fl_Osc_Check
  611. }
  612. }
  613. }
  614. Function {make_alienwah_window()} {} {
  615. Fl_Window effalienwahwindow {
  616. xywh {262 422 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  617. code0 {set_module_parameters(o);}
  618. class Fl_Group visible
  619. } {
  620. Fl_Choice awp {
  621. label Preset
  622. 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
  623. code0 {o->init("preset");}
  624. class Fl_Osc_Choice
  625. } {
  626. MenuItem {} {
  627. label {Alienwah 1}
  628. xywh {40 40 100 20} labelfont 1 labelsize 10
  629. }
  630. MenuItem {} {
  631. label {Alienwah 2}
  632. xywh {50 50 100 20} labelfont 1 labelsize 10
  633. }
  634. MenuItem {} {
  635. label {Alienwah 3}
  636. xywh {60 60 100 20} labelfont 1 labelsize 10
  637. }
  638. MenuItem {} {
  639. label {Alienwah 4}
  640. xywh {70 70 100 20} labelfont 1 labelsize 10
  641. }
  642. }
  643. Fl_Dial awp0 {
  644. label Vol
  645. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  646. code0 {o->init("parameter0");}
  647. class Fl_Osc_Dial
  648. }
  649. Fl_Dial awp1 {
  650. label Pan
  651. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  652. code0 {o->init("parameter1");}
  653. class Fl_Osc_Dial
  654. }
  655. Fl_Dial awp2 {
  656. label Freq
  657. tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  658. code0 {o->init("parameter2");}
  659. class Fl_Osc_Dial
  660. }
  661. Fl_Dial awp3 {
  662. label Rnd
  663. tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  664. code0 {o->init("parameter3");}
  665. class Fl_Osc_Dial
  666. }
  667. Fl_Dial awp5 {
  668. label {St.df}
  669. tooltip {Left/Right Channel Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  670. code0 {o->init("parameter5");}
  671. class Fl_Osc_Dial
  672. }
  673. Fl_Dial awp6 {
  674. label Dpth
  675. tooltip Depth xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  676. code0 {o->init("parameter6");}
  677. class Fl_Osc_Dial
  678. }
  679. Fl_Dial awp7 {
  680. label Fb
  681. tooltip Feedback xywh {270 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  682. code0 {o->init("parameter7");}
  683. class Fl_Osc_Dial
  684. }
  685. Fl_Dial awp9 {
  686. label {L/R}
  687. xywh {345 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  688. code0 {o->init("parameter9");}
  689. class Fl_Osc_Dial
  690. }
  691. Fl_Choice awp4 {
  692. label {LFO type}
  693. tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
  694. code0 {o->init("parameter4");}
  695. class Fl_Osc_Choice
  696. } {
  697. MenuItem {} {
  698. label SINE
  699. xywh {15 15 100 20} labelfont 1 labelsize 10
  700. }
  701. MenuItem {} {
  702. label TRI
  703. xywh {25 25 100 20} labelfont 1 labelsize 10
  704. }
  705. }
  706. Fl_Dial awp10 {
  707. label Phase
  708. xywh {160 5 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  709. code0 {o->init("parameter10");}
  710. class Fl_Osc_Dial
  711. }
  712. Fl_Counter awp8 {
  713. label Delay
  714. xywh {305 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
  715. code0 {o->range(1,MAX_ALIENWAH_DELAY);}
  716. code1 {o->init("parameter8");}
  717. class Fl_Osc_Counter
  718. }
  719. }
  720. }
  721. Function {make_distorsion_window()} {} {
  722. Fl_Window effdistorsionwindow {
  723. xywh {553 286 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  724. code0 {set_module_parameters(o);}
  725. class Fl_Group visible
  726. } {
  727. Fl_Choice distp {
  728. label Preset
  729. 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
  730. code0 {o->init("preset");}
  731. class Fl_Osc_Choice
  732. } {
  733. MenuItem {} {
  734. label {Overdrive 1}
  735. xywh {20 20 100 20} labelfont 1 labelsize 10
  736. }
  737. MenuItem {} {
  738. label {Overdrive 2}
  739. xywh {30 30 100 20} labelfont 1 labelsize 10
  740. }
  741. MenuItem {} {
  742. label {A. Exciter 1}
  743. xywh {40 40 100 20} labelfont 1 labelsize 10
  744. }
  745. MenuItem {} {
  746. label {A. Exciter 2}
  747. xywh {50 50 100 20} labelfont 1 labelsize 10
  748. }
  749. MenuItem {} {
  750. label {Guitar Amp}
  751. xywh {50 50 100 20} labelfont 1 labelsize 10
  752. }
  753. MenuItem {} {
  754. label Quantisize
  755. xywh {60 60 100 20} labelfont 1 labelsize 10
  756. }
  757. }
  758. Fl_Dial distp0 {
  759. label Vol
  760. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  761. code0 {o->init("parameter0");}
  762. class Fl_Osc_Dial
  763. }
  764. Fl_Dial distp1 {
  765. label Pan
  766. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  767. code0 {o->init("parameter1");}
  768. class Fl_Osc_Dial
  769. }
  770. Fl_Dial distp2 {
  771. label {LRc.}
  772. tooltip {L/R Mix} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  773. code0 {o->init("parameter2");}
  774. class Fl_Osc_Dial
  775. }
  776. Fl_Dial distp3 {
  777. label Drive
  778. tooltip {Input Amplification} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  779. code0 {o->init("parameter3");}
  780. class Fl_Osc_Dial
  781. }
  782. Fl_Dial distp4 {
  783. label Level
  784. tooltip {Output Amplification} xywh {155 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  785. code0 {o->init("parameter4");}
  786. class Fl_Osc_Dial
  787. }
  788. Fl_Dial distp7 {
  789. label LPF
  790. tooltip {Low Pass Filter} xywh {285 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  791. code0 {o->init("parameter7");}
  792. class Fl_Osc_Dial
  793. }
  794. Fl_Dial distp8 {
  795. label HPF
  796. tooltip {High Pass Filter} xywh {320 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  797. code0 {o->init("parameter8");}
  798. class Fl_Osc_Dial
  799. }
  800. Fl_Choice distp5 {
  801. label Type
  802. xywh {190 50 60 20} box UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 align 2 textsize 10
  803. code0 {o->init("parameter5");}
  804. class Fl_Osc_Choice
  805. } {
  806. MenuItem {} {
  807. label Atan
  808. xywh {55 55 100 20} labelfont 1 labelsize 10
  809. }
  810. MenuItem {} {
  811. label Asym1
  812. xywh {65 65 100 20} labelfont 1 labelsize 10
  813. }
  814. MenuItem {} {
  815. label Pow
  816. xywh {75 75 100 20} labelfont 1 labelsize 10
  817. }
  818. MenuItem {} {
  819. label Sine
  820. xywh {85 85 100 20} labelfont 1 labelsize 10
  821. }
  822. MenuItem {} {
  823. label Qnts
  824. xywh {95 95 100 20} labelfont 1 labelsize 10
  825. }
  826. MenuItem {} {
  827. label Zigzg
  828. xywh {105 105 100 20} labelfont 1 labelsize 10
  829. }
  830. MenuItem {} {
  831. label Lmt
  832. xywh {115 115 100 20} labelfont 1 labelsize 10
  833. }
  834. MenuItem {} {
  835. label LmtU
  836. xywh {125 125 100 20} labelfont 1 labelsize 10
  837. }
  838. MenuItem {} {
  839. label LmtL
  840. xywh {135 135 100 20} labelfont 1 labelsize 10
  841. }
  842. MenuItem {} {
  843. label ILmt
  844. xywh {147 147 100 20} labelfont 1 labelsize 10
  845. }
  846. MenuItem {} {
  847. label Clip
  848. xywh {157 157 100 20} labelfont 1 labelsize 10
  849. }
  850. MenuItem {} {
  851. label Asym2
  852. xywh {75 75 100 20} labelfont 1 labelsize 10
  853. }
  854. MenuItem {} {
  855. label Pow2
  856. xywh {85 85 100 20} labelfont 1 labelsize 10
  857. }
  858. MenuItem {} {
  859. label Sgm
  860. xywh {95 95 100 20} labelfont 1 labelsize 10
  861. }
  862. }
  863. Fl_Check_Button distp6 {
  864. label {Neg.}
  865. xywh {260 55 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 2
  866. code0 {o->init("parameter6");}
  867. class Fl_Osc_Check
  868. }
  869. Fl_Check_Button distp9 {
  870. label {St.}
  871. tooltip Stereo xywh {355 60 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 2
  872. code0 {o->init("parameter9");}
  873. class Fl_Osc_Check
  874. }
  875. Fl_Check_Button distp10 {
  876. label PF
  877. tooltip {Applies the filters(before or after) the distorsion} xywh {355 44 15 15} down_box DOWN_BOX labelfont 1 labelsize 11 align 1
  878. code0 {o->init("parameter10");}
  879. class Fl_Osc_Check
  880. }
  881. }
  882. }
  883. Function {make_eq_window()} {} {
  884. Fl_Window effeqwindow {
  885. xywh {691 881 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  886. code0 {set_module_parameters(o);}
  887. class Fl_Group visible
  888. } {
  889. Fl_Dial eqp0 {
  890. label Gain
  891. callback {eqgraph->redraw();}
  892. xywh {10 35 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  893. code0 {o->init("parameter0");}
  894. class Fl_Osc_Dial
  895. }
  896. Fl_Counter bandcounter {
  897. label {B.}
  898. callback {eqband=(int) o->value();
  899. int npb=eqband*5+10;
  900. typechoice->oscMove("parameter"+to_s(npb));
  901. freqdial->oscMove("parameter"+to_s(npb+1));
  902. gaindial->oscMove("parameter"+to_s(npb+2));
  903. qdial->oscMove("parameter"+to_s(npb+3));
  904. stagescounter->oscMove("parameter"+to_s(npb+4));}
  905. 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
  906. code0 {o->bounds(0,MAX_EQ_BANDS-1);}
  907. }
  908. Fl_Group bandgroup {
  909. xywh {245 40 130 50} box ENGRAVED_FRAME
  910. } {
  911. Fl_Dial freqdial {
  912. label Freq
  913. callback {eqgraph->update();}
  914. xywh {250 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
  915. code0 {o->init("parameter11");}
  916. class Fl_Osc_Dial
  917. }
  918. Fl_Dial gaindial {
  919. label Gain
  920. callback {eqgraph->update();}
  921. xywh {280 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127 step 1
  922. code0 {o->init("parameter12");}
  923. class Fl_Osc_Dial
  924. }
  925. Fl_Dial qdial {
  926. label Q
  927. callback {eqgraph->update();}
  928. tooltip {Resonance/Bandwidth} xywh {310 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
  929. code0 {o->init("parameter13");}
  930. class Fl_Osc_Dial
  931. }
  932. Fl_Counter stagescounter {
  933. label {St.}
  934. callback {eqgraph->update();}
  935. tooltip {Additional filter stages} xywh {340 60 30 15} type Simple labelfont 1 labelsize 10 minimum 0 maximum 127 step 1 textfont 1 textsize 11
  936. code0 {o->init("parameter14");}
  937. class Fl_Osc_Counter
  938. }
  939. }
  940. Fl_Choice typechoice {
  941. label {T.}
  942. callback {int type = o->value();
  943. if (type>6) gaindial->activate();
  944. else gaindial->deactivate();
  945. if (type==0) bandgroup->deactivate();
  946. else bandgroup->activate();
  947. eqgraph->update();}
  948. tooltip Type xywh {290 20 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 1 when 6 textsize 10
  949. code0 {o->init("parameter15");}
  950. class Fl_Osc_Choice
  951. } {
  952. MenuItem {} {
  953. label OFF
  954. xywh {0 0 100 20} labelfont 1 labelsize 10
  955. }
  956. MenuItem {} {
  957. label Lp1
  958. xywh {10 10 100 20} labelfont 1 labelsize 10
  959. }
  960. MenuItem {} {
  961. label Hp1
  962. xywh {20 20 100 20} labelfont 1 labelsize 10
  963. }
  964. MenuItem {} {
  965. label Lp2
  966. xywh {30 30 100 20} labelfont 1 labelsize 10
  967. }
  968. MenuItem {} {
  969. label Hp2
  970. xywh {40 40 100 20} labelfont 1 labelsize 10
  971. }
  972. MenuItem {} {
  973. label Bp2
  974. xywh {50 50 100 20} labelfont 1 labelsize 10
  975. }
  976. MenuItem {} {
  977. label N2
  978. xywh {60 60 100 20} labelfont 1 labelsize 10
  979. }
  980. MenuItem {} {
  981. label Pk
  982. xywh {80 80 100 20} labelfont 1 labelsize 10
  983. }
  984. MenuItem {} {
  985. label LSh
  986. xywh {70 70 100 20} labelfont 1 labelsize 10
  987. }
  988. MenuItem {} {
  989. label HSh
  990. xywh {80 80 100 20} labelfont 1 labelsize 10
  991. }
  992. }
  993. Fl_Box eqgraph {
  994. xywh {45 10 190 75} box BORDER_BOX color 50
  995. class Fl_EQGraph
  996. }
  997. }
  998. }
  999. Function {make_dynamicfilter_window()} {} {
  1000. Fl_Window effdynamicfilterwindow {
  1001. xywh {828 359 380 100} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  1002. code0 {set_module_parameters(o);}
  1003. class Fl_Group visible
  1004. } {
  1005. Fl_Choice dfp {
  1006. label Preset
  1007. 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
  1008. code0 {o->init("preset");}
  1009. class Fl_Osc_Choice
  1010. } {
  1011. MenuItem {} {
  1012. label WahWah
  1013. xywh {30 30 100 20} labelfont 1 labelsize 10
  1014. }
  1015. MenuItem {} {
  1016. label AutoWah
  1017. xywh {40 40 100 20} labelfont 1 labelsize 10
  1018. }
  1019. MenuItem {} {
  1020. label Sweep
  1021. xywh {50 50 100 20} labelfont 1 labelsize 10
  1022. }
  1023. MenuItem {} {
  1024. label VocalMorph1
  1025. xywh {50 50 100 20} labelfont 1 labelsize 10
  1026. }
  1027. MenuItem {} {
  1028. label VocalMorph2
  1029. xywh {60 60 100 20} labelfont 1 labelsize 10
  1030. }
  1031. }
  1032. Fl_Dial dfp0 {
  1033. label Vol
  1034. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1035. code0 {o->init("parameter0");}
  1036. class Fl_Osc_Dial
  1037. }
  1038. Fl_Dial dfp1 {
  1039. label Pan
  1040. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1041. code0 {o->init("parameter1");}
  1042. class Fl_Osc_Dial
  1043. }
  1044. Fl_Dial dfp2 {
  1045. label Freq
  1046. tooltip {LFO Frequency} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1047. code0 {o->init("parameter2");}
  1048. class Fl_Osc_Dial
  1049. }
  1050. Fl_Dial dfp3 {
  1051. label Rnd
  1052. tooltip {LFO Randomness} xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  1053. code0 {o->init("parameter3");}
  1054. class Fl_Osc_Dial
  1055. }
  1056. Fl_Dial dfp5 {
  1057. label {St.df}
  1058. tooltip {Left/Right Channel Phase Shift} xywh {200 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1059. code0 {o->init("parameter5");}
  1060. class Fl_Osc_Dial
  1061. }
  1062. Fl_Dial dfp6 {
  1063. label LfoD
  1064. tooltip {LFO Depth} xywh {235 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1065. code0 {o->init("parameter6");}
  1066. class Fl_Osc_Dial
  1067. }
  1068. Fl_Choice dfp4 {
  1069. label {LFO type}
  1070. tooltip {LFO function} xywh {155 50 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 130 textsize 8
  1071. code0 {o->init("parameter4");}
  1072. class Fl_Osc_Choice
  1073. } {
  1074. MenuItem {} {
  1075. label SINE
  1076. xywh {15 15 100 20} labelfont 1 labelsize 10
  1077. }
  1078. MenuItem {} {
  1079. label TRI
  1080. xywh {25 25 100 20} labelfont 1 labelsize 10
  1081. }
  1082. }
  1083. Fl_Button {} {
  1084. label Filter
  1085. callback {filterwindow->show();}
  1086. xywh {115 10 55 25} box THIN_UP_BOX
  1087. }
  1088. Fl_Group {} {
  1089. xywh {270 40 105 45} box UP_FRAME color 51
  1090. } {
  1091. Fl_Dial dfp7 {
  1092. label {A.S.}
  1093. tooltip {Filter vs Amplitude} xywh {275 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1094. code0 {o->init("parameter7");}
  1095. class Fl_Osc_Dial
  1096. }
  1097. Fl_Dial dfp9 {
  1098. label {A.M}
  1099. tooltip {rate that amplitude changes the filter} xywh {305 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1100. code0 {o->init("parameter9");}
  1101. class Fl_Osc_Dial
  1102. }
  1103. Fl_Check_Button dfp8 {
  1104. label {A.Inv.}
  1105. 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
  1106. code0 {o->init("parameter8");}
  1107. class Fl_Osc_Check
  1108. }
  1109. }
  1110. }
  1111. }
  1112. Function {make_filter_window()} {} {
  1113. Fl_Window filterwindow {
  1114. label {Filter Parameters for DynFilter Eff.}
  1115. xywh {810 543 290 110} type Double
  1116. code0 {set_module_parameters(o);} visible
  1117. } {
  1118. Fl_Group {} {
  1119. label {DynFilter effect - Filter}
  1120. xywh {5 5 275 75} box FLAT_BOX color 50 align 144
  1121. code0 {o->init("",osc, loc(), "filterpars/");}
  1122. code1 {o->use_for_dynamic_filter();}
  1123. class FilterUI
  1124. } {}
  1125. Fl_Button {} {
  1126. label Close
  1127. callback {filterwindow->hide();}
  1128. xywh {105 85 70 20} box THIN_UP_BOX
  1129. }
  1130. }
  1131. }
  1132. Function {init(bool ins_)} {open
  1133. } {
  1134. code {efftype = 0;
  1135. insertion = ins_;
  1136. make_null_window();
  1137. make_reverb_window();
  1138. make_echo_window();
  1139. make_chorus_window();
  1140. make_phaser_window();
  1141. make_alienwah_window();
  1142. make_distorsion_window();
  1143. make_eq_window();
  1144. make_dynamicfilter_window();
  1145. int px=this->parent()->x();
  1146. int py=this->parent()->y();
  1147. effnullwindow->position(px,py);
  1148. effreverbwindow->position(px,py);
  1149. effechowindow->position(px,py);
  1150. effchoruswindow->position(px,py);
  1151. effphaserwindow->position(px,py);
  1152. effalienwahwindow->position(px,py);
  1153. effdistorsionwindow->position(px,py);
  1154. effeqwindow->position(px,py);
  1155. effdynamicfilterwindow->position(px,py);
  1156. refresh();} {}
  1157. }
  1158. Function {refresh()} {open
  1159. } {
  1160. code {this->hide();
  1161. for(int i=0; i<32; ++i)
  1162. osc->requestValue(loc()+"parameter"+to_s(i));
  1163. effnullwindow->hide();
  1164. effreverbwindow->hide();
  1165. effechowindow->hide();
  1166. effchoruswindow->hide();
  1167. effphaserwindow->hide();
  1168. effalienwahwindow->hide();
  1169. effdistorsionwindow->hide();
  1170. effeqwindow->hide();
  1171. effdynamicfilterwindow->hide();
  1172. eqband=0;
  1173. if (filterwindow){
  1174. filterwindow->hide();
  1175. delete(filterwindow);
  1176. filterwindow=NULL;
  1177. };
  1178. if(insertion) {
  1179. revp0->label("D/W");
  1180. echop0->label("D/W");
  1181. chorusp0->label("D/W");
  1182. phaserp0->label("D/W");
  1183. awp0->label("D/W");
  1184. distp0->label("D/W");
  1185. dfp0->label("D/W");
  1186. }
  1187. switch(efftype){
  1188. case 1:
  1189. effreverbwindow->show();
  1190. break;
  1191. case 2:
  1192. effechowindow->show();
  1193. break;
  1194. case 3:
  1195. effchoruswindow->show();
  1196. break;
  1197. case 4:
  1198. effphaserwindow->show();
  1199. break;
  1200. case 5:
  1201. effalienwahwindow->show();
  1202. break;
  1203. case 6:
  1204. effdistorsionwindow->show();
  1205. break;
  1206. case 7:eqband=0;
  1207. bandcounter->value(eqband);
  1208. bandcounter->do_callback();
  1209. eqgraph->redraw();
  1210. effeqwindow->show();
  1211. break;
  1212. case 8:make_filter_window();
  1213. effdynamicfilterwindow->show();
  1214. break;
  1215. default:effnullwindow->show();
  1216. break;
  1217. };
  1218. this->show();} {selected
  1219. }
  1220. }
  1221. decl {int eqband;} {private local
  1222. }
  1223. decl {bool insertion;} {public local
  1224. }
  1225. decl {int efftype;} {public local
  1226. }
  1227. }
  1228. class SimpleEffUI {open : {public Fl_Osc_Group,public PresetsUI_}
  1229. } {
  1230. Function {SimpleEffUI(int x,int y, int w, int h, const char *label=0):Fl_Osc_Group(x,y,w,h,label),efftype(0)} {} {
  1231. code {} {}
  1232. }
  1233. Function {~SimpleEffUI()} {} {
  1234. code {effnullwindow->hide();//delete (effnullwindow);
  1235. effreverbwindow->hide();//delete (effreverbwindow);
  1236. effechowindow->hide();//delete (effechowindow);
  1237. effchoruswindow->hide();//delete (effchoruswindow);
  1238. effphaserwindow->hide();//delete (effphaserwindow);
  1239. effalienwahwindow->hide();//delete (effalienwahwindow);
  1240. effdistorsionwindow->hide();//delete (effdistorsionwindow);
  1241. effeqwindow->hide();//delete (effeqwindow);
  1242. effdynamicfilterwindow->hide();//delete (effdynamicfilterwindow);} {}
  1243. }
  1244. Function {make_null_window()} {} {
  1245. Fl_Window effnullwindow {
  1246. xywh {1047 824 230 95} type Double box UP_BOX color 221 labelfont 1 labelsize 19
  1247. code0 {set_module_parameters(o);}
  1248. class Fl_Group visible
  1249. } {}
  1250. }
  1251. Function {make_reverb_window()} {} {
  1252. Fl_Window effreverbwindow {
  1253. xywh {1047 532 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1254. code3 {set_module_parameters(o);}
  1255. class Fl_Group visible
  1256. } {
  1257. Fl_Choice revp {
  1258. label Preset
  1259. xywh {10 15 90 15} down_box BORDER_BOX color 47 selection_color 7 labelfont 1 labelsize 10 align 5 textfont 1 textsize 10
  1260. code0 {o->init("preset");}
  1261. class Fl_Osc_Choice
  1262. } {
  1263. MenuItem {} {
  1264. label {Cathedral 1}
  1265. xywh {10 10 100 20} labelfont 1 labelsize 10
  1266. }
  1267. MenuItem {} {
  1268. label {Cathedral 2}
  1269. xywh {20 20 100 20} labelfont 1 labelsize 10
  1270. }
  1271. MenuItem {} {
  1272. label {Cathedral 3}
  1273. xywh {30 30 100 20} labelfont 1 labelsize 10
  1274. }
  1275. MenuItem {} {
  1276. label {Hall 1}
  1277. xywh {40 40 100 20} labelfont 1 labelsize 10
  1278. }
  1279. MenuItem {} {
  1280. label {Hall 2}
  1281. xywh {50 50 100 20} labelfont 1 labelsize 10
  1282. }
  1283. MenuItem {} {
  1284. label {Room 1}
  1285. xywh {60 60 100 20} labelfont 1 labelsize 10
  1286. }
  1287. MenuItem {} {
  1288. label {Room 2}
  1289. xywh {70 70 100 20} labelfont 1 labelsize 10
  1290. }
  1291. MenuItem {} {
  1292. label Basement
  1293. xywh {80 80 100 20} labelfont 1 labelsize 10
  1294. }
  1295. MenuItem {} {
  1296. label Tunnel
  1297. xywh {90 90 100 20} labelfont 1 labelsize 10
  1298. }
  1299. MenuItem {} {
  1300. label {Echoed 1}
  1301. xywh {100 100 100 20} labelfont 1 labelsize 10
  1302. }
  1303. MenuItem {} {
  1304. label {Echoed 2}
  1305. xywh {110 110 100 20} labelfont 1 labelsize 10
  1306. }
  1307. MenuItem {} {
  1308. label {Very Long 1}
  1309. xywh {120 120 100 20} labelfont 1 labelsize 10
  1310. }
  1311. MenuItem {} {
  1312. label {Very Long 2}
  1313. xywh {130 130 100 20} labelfont 1 labelsize 10
  1314. }
  1315. }
  1316. Fl_Dial revp0 {
  1317. label Vol
  1318. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1319. code0 {o->init("parameter0");}
  1320. class Fl_Osc_Dial
  1321. }
  1322. Fl_Dial revp2 {
  1323. label Time
  1324. tooltip {Duration of Reverb} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1325. code0 {o->init("parameter2");}
  1326. class Fl_Osc_Dial
  1327. }
  1328. Fl_Dial revp3 {
  1329. label {I.del}
  1330. tooltip {Initial Delay} xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  1331. code0 {o->init("parameter3");}
  1332. class Fl_Osc_Dial
  1333. }
  1334. Fl_Dial revp9 {
  1335. label Damp
  1336. tooltip Dampening xywh {120 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 minimum 64 maximum 127 step 1
  1337. code0 {o->init("parameter9");}
  1338. class Fl_Osc_Dial
  1339. }
  1340. }
  1341. }
  1342. Function {make_echo_window()} {} {
  1343. Fl_Window effechowindow {
  1344. xywh {437 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1345. code3 {set_module_parameters(o);}
  1346. class Fl_Group visible
  1347. } {
  1348. Fl_Choice echop {
  1349. label Preset
  1350. 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
  1351. code0 {o->init("preset");}
  1352. class Fl_Osc_Choice
  1353. } {
  1354. MenuItem {} {
  1355. label {Echo 1}
  1356. xywh {20 20 100 20} labelfont 1 labelsize 10
  1357. }
  1358. MenuItem {} {
  1359. label {Echo 2}
  1360. xywh {30 30 100 20} labelfont 1 labelsize 10
  1361. }
  1362. MenuItem {} {
  1363. label {Echo 3}
  1364. xywh {40 40 100 20} labelfont 1 labelsize 10
  1365. }
  1366. MenuItem {} {
  1367. label {Simple Echo}
  1368. xywh {50 50 100 20} labelfont 1 labelsize 10
  1369. }
  1370. MenuItem {} {
  1371. label Canyon
  1372. xywh {60 60 100 20} labelfont 1 labelsize 10
  1373. }
  1374. MenuItem {} {
  1375. label {Panning Echo 1}
  1376. xywh {70 70 100 20} labelfont 1 labelsize 10
  1377. }
  1378. MenuItem {} {
  1379. label {Panning Echo 2}
  1380. xywh {80 80 100 20} labelfont 1 labelsize 10
  1381. }
  1382. MenuItem {} {
  1383. label {Panning Echo 3}
  1384. xywh {90 90 100 20} labelfont 1 labelsize 10
  1385. }
  1386. MenuItem {} {
  1387. label {Feedback Echo}
  1388. xywh {100 100 100 20} labelfont 1 labelsize 10
  1389. }
  1390. }
  1391. Fl_Dial echop0 {
  1392. label Vol
  1393. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1394. code0 {o->init("parameter0");}
  1395. class Fl_Osc_Dial
  1396. }
  1397. Fl_Dial echop2 {
  1398. label Delay
  1399. xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  1400. code0 {o->init("parameter2");}
  1401. class Fl_Osc_Dial
  1402. }
  1403. Fl_Dial echop5 {
  1404. label {Fb.}
  1405. tooltip Feedback xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1406. code0 {o->init("parameter5");}
  1407. class Fl_Osc_Dial
  1408. }
  1409. }
  1410. }
  1411. Function {make_chorus_window()} {} {
  1412. Fl_Window effchoruswindow {
  1413. xywh {728 657 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1414. code3 {set_module_parameters(o);}
  1415. class Fl_Group visible
  1416. } {
  1417. Fl_Choice chorusp {
  1418. label Preset
  1419. 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
  1420. code0 {o->init("preset");}
  1421. class Fl_Osc_Choice
  1422. } {
  1423. MenuItem {} {
  1424. label {Chorus 1}
  1425. xywh {20 20 100 20} labelfont 1 labelsize 10
  1426. }
  1427. MenuItem {} {
  1428. label {Chorus 2}
  1429. xywh {30 30 100 20} labelfont 1 labelsize 10
  1430. }
  1431. MenuItem {} {
  1432. label {Chorus 3}
  1433. xywh {40 40 100 20} labelfont 1 labelsize 10
  1434. }
  1435. MenuItem {} {
  1436. label {Celeste 1}
  1437. xywh {50 50 100 20} labelfont 1 labelsize 10
  1438. }
  1439. MenuItem {} {
  1440. label {Celeste 2}
  1441. xywh {60 60 100 20} labelfont 1 labelsize 10
  1442. }
  1443. MenuItem {} {
  1444. label {Flange 1}
  1445. xywh {70 70 100 20} labelfont 1 labelsize 10
  1446. }
  1447. MenuItem {} {
  1448. label {Flange 2}
  1449. xywh {80 80 100 20} labelfont 1 labelsize 10
  1450. }
  1451. MenuItem {} {
  1452. label {Flange 3}
  1453. xywh {90 90 100 20} labelfont 1 labelsize 10
  1454. }
  1455. MenuItem {} {
  1456. label {Flange 4}
  1457. xywh {100 100 100 20} labelfont 1 labelsize 10
  1458. }
  1459. MenuItem {} {
  1460. label {Flange 5}
  1461. xywh {110 110 100 20} labelfont 1 labelsize 10
  1462. }
  1463. }
  1464. Fl_Dial chorusp0 {
  1465. label Vol
  1466. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1467. code0 {o->init("parameter0");}
  1468. class Fl_Osc_Dial
  1469. }
  1470. Fl_Dial chorusp2 {
  1471. label Freq
  1472. tooltip {LFO Frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1473. code0 {o->init("parameter2");}
  1474. class Fl_Osc_Dial
  1475. }
  1476. Fl_Dial chorusp6 {
  1477. label Dpth
  1478. tooltip Depth xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1479. code0 {o->init("parameter6");}
  1480. class Fl_Osc_Dial
  1481. }
  1482. Fl_Dial chorusp7 {
  1483. label Delay
  1484. xywh {115 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1485. code0 {o->init("parameter7");}
  1486. class Fl_Osc_Dial
  1487. }
  1488. Fl_Dial chorusp8 {
  1489. label Fb
  1490. tooltip Feedback xywh {150 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1491. code0 {o->init("parameter8");}
  1492. class Fl_Osc_Dial
  1493. }
  1494. Fl_Check_Button {} {
  1495. label Flange
  1496. xywh {120 10 55 20} box THIN_UP_BOX down_box DOWN_BOX color 230 labelfont 1 labelsize 10 hide deactivate
  1497. code0 {o->init("parameter10");}
  1498. class Fl_Osc_Check
  1499. }
  1500. }
  1501. }
  1502. Function {make_phaser_window()} {} {
  1503. Fl_Window effphaserwindow {
  1504. xywh {1047 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1505. code3 {set_module_parameters(o);}
  1506. class Fl_Group visible
  1507. } {
  1508. Fl_Choice phaserp {
  1509. label Preset
  1510. 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
  1511. code0 {o->init("preset");}
  1512. class Fl_Osc_Choice
  1513. } {
  1514. MenuItem {} {
  1515. label {Phaser 1}
  1516. xywh {30 30 100 20} labelfont 1 labelsize 10
  1517. }
  1518. MenuItem {} {
  1519. label {Phaser 2}
  1520. xywh {40 40 100 20} labelfont 1 labelsize 10
  1521. }
  1522. MenuItem {} {
  1523. label {Phaser 3}
  1524. xywh {50 50 100 20} labelfont 1 labelsize 10
  1525. }
  1526. MenuItem {} {
  1527. label {Phaser 4}
  1528. xywh {60 60 100 20} labelfont 1 labelsize 10
  1529. }
  1530. MenuItem {} {
  1531. label {Phaser 5}
  1532. xywh {70 70 100 20} labelfont 1 labelsize 10
  1533. }
  1534. MenuItem {} {
  1535. label {Phaser 6}
  1536. xywh {80 80 100 20} labelfont 1 labelsize 10
  1537. }
  1538. }
  1539. Fl_Dial phaserp0 {
  1540. label Vol
  1541. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1542. code0 {o->init("parameter0");}
  1543. class Fl_Osc_Dial
  1544. }
  1545. Fl_Dial phaserp2 {
  1546. label Freq
  1547. tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1548. code0 {o->init("parameter2");}
  1549. class Fl_Osc_Dial
  1550. }
  1551. Fl_Dial phaserp5 {
  1552. label {St.df}
  1553. tooltip {Left/Right Channel Phase Shift} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1554. code0 {o->init("parameter5");}
  1555. class Fl_Osc_Dial
  1556. }
  1557. Fl_Dial phaserp6 {
  1558. label Dpth
  1559. tooltip Depth xywh {115 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1560. code0 {o->init("parameter6");}
  1561. class Fl_Osc_Dial
  1562. }
  1563. Fl_Dial phaserp7 {
  1564. label Fb
  1565. tooltip Feedback xywh {150 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1566. code0 {o->init("parameter7");}
  1567. class Fl_Osc_Dial
  1568. }
  1569. Fl_Counter phaserp8 {
  1570. label Stages
  1571. xywh {185 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
  1572. code0 {o->range(1,MAX_PHASER_STAGES);}
  1573. code1 {o->init("parameter8");}
  1574. class Fl_Osc_Counter
  1575. }
  1576. }
  1577. }
  1578. Function {make_alienwah_window()} {} {
  1579. Fl_Window effalienwahwindow {
  1580. xywh {412 549 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1581. code3 {set_module_parameters(o);}
  1582. class Fl_Group visible
  1583. } {
  1584. Fl_Choice awp {
  1585. label Preset
  1586. 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
  1587. code0 {o->init("preset");}
  1588. class Fl_Osc_Choice
  1589. } {
  1590. MenuItem {} {
  1591. label {Alienwah 1}
  1592. xywh {40 40 100 20} labelfont 1 labelsize 10
  1593. }
  1594. MenuItem {} {
  1595. label {Alienwah 2}
  1596. xywh {50 50 100 20} labelfont 1 labelsize 10
  1597. }
  1598. MenuItem {} {
  1599. label {Alienwah 3}
  1600. xywh {60 60 100 20} labelfont 1 labelsize 10
  1601. }
  1602. MenuItem {} {
  1603. label {Alienwah 4}
  1604. xywh {70 70 100 20} labelfont 1 labelsize 10
  1605. }
  1606. }
  1607. Fl_Dial awp0 {
  1608. label Vol
  1609. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1610. code0 {o->init("parameter0");}
  1611. class Fl_Osc_Dial
  1612. }
  1613. Fl_Dial awp2 {
  1614. label Freq
  1615. tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1616. code0 {o->init("parameter2");}
  1617. class Fl_Osc_Dial
  1618. }
  1619. Fl_Dial awp6 {
  1620. label Dpth
  1621. tooltip Depth xywh {85 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1622. code0 {o->init("parameter6");}
  1623. class Fl_Osc_Dial
  1624. }
  1625. Fl_Counter awp8 {
  1626. label Delay
  1627. xywh {125 55 35 15} type Simple labelfont 1 labelsize 11 minimum 0 maximum 127 step 1
  1628. code0 {o->range(1,MAX_ALIENWAH_DELAY);}
  1629. code1 {o->init("parameter8");}
  1630. class Fl_Osc_Counter
  1631. }
  1632. }
  1633. }
  1634. Function {make_distorsion_window()} {} {
  1635. Fl_Window effdistorsionwindow {
  1636. xywh {88 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1637. code3 {set_module_parameters(o);}
  1638. class Fl_Group visible
  1639. } {
  1640. Fl_Choice distp {
  1641. label Preset
  1642. 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
  1643. code0 {o->init("preset");}
  1644. class Fl_Osc_Choice
  1645. } {
  1646. MenuItem {} {
  1647. label {Overdrive 1}
  1648. xywh {20 20 100 20} labelfont 1 labelsize 10
  1649. }
  1650. MenuItem {} {
  1651. label {Overdrive 2}
  1652. xywh {30 30 100 20} labelfont 1 labelsize 10
  1653. }
  1654. MenuItem {} {
  1655. label {A. Exciter 1}
  1656. xywh {40 40 100 20} labelfont 1 labelsize 10
  1657. }
  1658. MenuItem {} {
  1659. label {A. Exciter 2}
  1660. xywh {50 50 100 20} labelfont 1 labelsize 10
  1661. }
  1662. MenuItem {} {
  1663. label {Guitar Amp}
  1664. xywh {50 50 100 20} labelfont 1 labelsize 10
  1665. }
  1666. MenuItem {} {
  1667. label Quantisize
  1668. xywh {60 60 100 20} labelfont 1 labelsize 10
  1669. }
  1670. }
  1671. Fl_Dial distp0 {
  1672. label Vol
  1673. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1674. code0 {o->init("parameter0");}
  1675. class Fl_Osc_Dial
  1676. }
  1677. Fl_Dial distp3 {
  1678. label Drive
  1679. tooltip {Input amplification} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 when 4 maximum 127
  1680. code0 {o->init("parameter3");}
  1681. class Fl_Osc_Dial
  1682. }
  1683. Fl_Dial distp4 {
  1684. label Level
  1685. tooltip {Output Amplification} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1686. code0 {o->init("parameter4");}
  1687. class Fl_Osc_Dial
  1688. }
  1689. Fl_Dial distp7 {
  1690. label LPF
  1691. tooltip {Low Pass Filter} xywh {190 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1692. code0 {o->init("parameter7");}
  1693. class Fl_Osc_Dial
  1694. }
  1695. Fl_Choice distp5 {
  1696. label Type
  1697. xywh {120 50 60 20} box UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 align 2 textsize 10
  1698. code0 {o->init("parameter5");}
  1699. class Fl_Osc_Choice
  1700. } {
  1701. MenuItem {} {
  1702. label Atan
  1703. xywh {55 55 100 20} labelfont 1 labelsize 10
  1704. }
  1705. MenuItem {} {
  1706. label Asym1
  1707. xywh {65 65 100 20} labelfont 1 labelsize 10
  1708. }
  1709. MenuItem {} {
  1710. label Pow
  1711. xywh {75 75 100 20} labelfont 1 labelsize 10
  1712. }
  1713. MenuItem {} {
  1714. label Sine
  1715. xywh {85 85 100 20} labelfont 1 labelsize 10
  1716. }
  1717. MenuItem {} {
  1718. label Qnts
  1719. xywh {95 95 100 20} labelfont 1 labelsize 10
  1720. }
  1721. MenuItem {} {
  1722. label Zigzg
  1723. xywh {105 105 100 20} labelfont 1 labelsize 10
  1724. }
  1725. MenuItem {} {
  1726. label Lmt
  1727. xywh {115 115 100 20} labelfont 1 labelsize 10
  1728. }
  1729. MenuItem {} {
  1730. label LmtU
  1731. xywh {125 125 100 20} labelfont 1 labelsize 10
  1732. }
  1733. MenuItem {} {
  1734. label LmtL
  1735. xywh {135 135 100 20} labelfont 1 labelsize 10
  1736. }
  1737. MenuItem {} {
  1738. label ILmt
  1739. xywh {147 147 100 20} labelfont 1 labelsize 10
  1740. }
  1741. MenuItem {} {
  1742. label Clip
  1743. xywh {157 157 100 20} labelfont 1 labelsize 10
  1744. }
  1745. MenuItem {} {
  1746. label Asym2
  1747. xywh {75 75 100 20} labelfont 1 labelsize 10
  1748. }
  1749. MenuItem {} {
  1750. label Pow2
  1751. xywh {85 85 100 20} labelfont 1 labelsize 10
  1752. }
  1753. MenuItem {} {
  1754. label Sgm
  1755. xywh {95 95 100 20} labelfont 1 labelsize 10
  1756. }
  1757. }
  1758. }
  1759. }
  1760. Function {make_eq_window()} {} {
  1761. Fl_Window effeqwindow {
  1762. xywh {1047 881 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1763. code3 {set_module_parameters(o);}
  1764. class Fl_Group visible
  1765. } {
  1766. Fl_Counter bandcounter {
  1767. label Band
  1768. callback {eqband=(int) o->value();
  1769. int npb=eqband*5+10;
  1770. typechoice->oscMove("parameter"+to_s(npb));
  1771. freqdial->oscMove("parameter"+to_s(npb+1));
  1772. gaindial->oscMove("parameter"+to_s(npb+2));
  1773. qdial->oscMove("parameter"+to_s(npb+3));
  1774. stagescounter->oscMove("parameter"+to_s(npb+4));}
  1775. 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
  1776. code0 {o->bounds(0,MAX_EQ_BANDS-1);}
  1777. }
  1778. Fl_Group bandgroup {
  1779. xywh {5 5 75 85} box UP_FRAME
  1780. } {
  1781. Fl_Dial freqdial {
  1782. label Freq
  1783. callback {eqgraph->redraw();}
  1784. xywh {10 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
  1785. code0 {o->init("parameter11");}
  1786. class Fl_Osc_Dial
  1787. }
  1788. Fl_Dial gaindial {
  1789. label Gain
  1790. callback {eqgraph->redraw();}
  1791. xywh {45 10 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127 step 1
  1792. code0 {o->init("parameter12");}
  1793. class Fl_Osc_Dial
  1794. }
  1795. Fl_Dial qdial {
  1796. label Q
  1797. callback {eqgraph->redraw();}
  1798. tooltip {Bandwidth/Resonance} xywh {10 50 25 25} box ROUND_UP_BOX labelfont 1 labelsize 10 when 3 maximum 127
  1799. code0 {o->init("parameter13");}
  1800. class Fl_Osc_Dial
  1801. }
  1802. Fl_Counter stagescounter {
  1803. label Stages
  1804. callback {eqgraph->redraw();}
  1805. 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
  1806. code0 {o->bounds(0,MAX_FILTER_STAGES-1);}
  1807. code1 {o->init("parameter14");}
  1808. class Fl_Osc_Counter
  1809. }
  1810. }
  1811. Fl_Choice typechoice {
  1812. label Type
  1813. callback {int type = o->value();
  1814. if (type>6) gaindial->activate();
  1815. else gaindial->deactivate();
  1816. if (type==0) bandgroup->deactivate();
  1817. else bandgroup->activate();
  1818. eqgraph->redraw();}
  1819. tooltip Type xywh {135 15 40 15} down_box BORDER_BOX labelfont 1 labelsize 10 align 1 when 6 textsize 10
  1820. code0 {o->init("parameter10");}
  1821. class Fl_Osc_Choice
  1822. } {
  1823. MenuItem {} {
  1824. label OFF
  1825. xywh {10 10 100 20} labelfont 1 labelsize 10
  1826. }
  1827. MenuItem {} {
  1828. label Lp1
  1829. xywh {20 20 100 20} labelfont 1 labelsize 10
  1830. }
  1831. MenuItem {} {
  1832. label Hp1
  1833. xywh {30 30 100 20} labelfont 1 labelsize 10
  1834. }
  1835. MenuItem {} {
  1836. label Lp2
  1837. xywh {40 40 100 20} labelfont 1 labelsize 10
  1838. }
  1839. MenuItem {} {
  1840. label Hp2
  1841. xywh {50 50 100 20} labelfont 1 labelsize 10
  1842. }
  1843. MenuItem {} {
  1844. label Bp2
  1845. xywh {60 60 100 20} labelfont 1 labelsize 10
  1846. }
  1847. MenuItem {} {
  1848. label N2
  1849. xywh {70 70 100 20} labelfont 1 labelsize 10
  1850. }
  1851. MenuItem {} {
  1852. label Pk
  1853. xywh {90 90 100 20} labelfont 1 labelsize 10
  1854. }
  1855. MenuItem {} {
  1856. label LSh
  1857. xywh {80 80 100 20} labelfont 1 labelsize 10
  1858. }
  1859. MenuItem {} {
  1860. label HSh
  1861. xywh {90 90 100 20} labelfont 1 labelsize 10
  1862. }
  1863. }
  1864. Fl_Box eqgraph {
  1865. xywh {85 35 140 55} box BORDER_BOX color 50
  1866. class Fl_EQGraph
  1867. }
  1868. }
  1869. }
  1870. Function {make_dynamicfilter_window()} {} {
  1871. Fl_Window effdynamicfilterwindow {
  1872. xywh {974 596 230 100} type Double box UP_BOX color 51 labelfont 1 labelsize 19
  1873. code3 {set_module_parameters(o);}
  1874. class Fl_Group visible
  1875. } {
  1876. Fl_Choice dfp {
  1877. label Preset
  1878. 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
  1879. code0 {o->init("preset");}
  1880. class Fl_Osc_Choice
  1881. } {
  1882. MenuItem {} {
  1883. label WahWah
  1884. xywh {30 30 100 20} labelfont 1 labelsize 10
  1885. }
  1886. MenuItem {} {
  1887. label AutoWah
  1888. xywh {40 40 100 20} labelfont 1 labelsize 10
  1889. }
  1890. MenuItem {} {
  1891. label Sweep
  1892. xywh {50 50 100 20} labelfont 1 labelsize 10
  1893. }
  1894. MenuItem {} {
  1895. label VocalMorph1
  1896. xywh {50 50 100 20} labelfont 1 labelsize 10
  1897. }
  1898. MenuItem {} {
  1899. label VocalMorph2
  1900. xywh {60 60 100 20} labelfont 1 labelsize 10
  1901. }
  1902. }
  1903. Fl_Dial dfp0 {
  1904. label Vol
  1905. tooltip {Effect Volume} xywh {10 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1906. code0 {o->init("parameter0");}
  1907. class Fl_Osc_Dial
  1908. }
  1909. Fl_Dial dfp2 {
  1910. label Freq
  1911. tooltip {LFO frequency} xywh {45 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1912. code0 {o->init("parameter2");}
  1913. class Fl_Osc_Dial
  1914. }
  1915. Fl_Dial dfp6 {
  1916. label LfoD
  1917. tooltip {LFO depth} xywh {80 40 30 30} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1918. code0 {o->init("parameter6");}
  1919. class Fl_Osc_Dial
  1920. }
  1921. Fl_Group {} {
  1922. xywh {115 40 65 45} box UP_FRAME
  1923. } {
  1924. Fl_Dial dfp7 {
  1925. label {A.S.}
  1926. tooltip {how filter varies with amplitude} xywh {120 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1927. code0 {o->init("parameter7");}
  1928. class Fl_Osc_Dial
  1929. }
  1930. Fl_Dial dfp9 {
  1931. label {A.M}
  1932. tooltip {how quickly the filter varies with amplitude} xywh {150 45 25 25} box ROUND_UP_BOX labelfont 1 labelsize 11 maximum 127
  1933. code0 {o->init("parameter9");}
  1934. class Fl_Osc_Dial
  1935. }
  1936. }
  1937. }
  1938. }
  1939. Function {init(bool ins_)} {open
  1940. } {
  1941. code {efftype = 0;
  1942. insertion = ins_;
  1943. make_null_window();
  1944. make_reverb_window();
  1945. make_echo_window();
  1946. make_chorus_window();
  1947. make_phaser_window();
  1948. make_alienwah_window();
  1949. make_distorsion_window();
  1950. make_eq_window();
  1951. make_dynamicfilter_window();
  1952. int px=this->parent()->x();
  1953. int py=this->parent()->y();
  1954. effnullwindow->position(px,py);
  1955. effreverbwindow->position(px,py);
  1956. effechowindow->position(px,py);
  1957. effchoruswindow->position(px,py);
  1958. effphaserwindow->position(px,py);
  1959. effalienwahwindow->position(px,py);
  1960. effdistorsionwindow->position(px,py);
  1961. effeqwindow->position(px,py);
  1962. effdynamicfilterwindow->position(px,py);} {}
  1963. }
  1964. Function {refresh()} {open
  1965. } {
  1966. code {this->hide();
  1967. for(int i=0; i<32; ++i)
  1968. osc->requestValue(loc()+"parameter"+to_s(i));
  1969. effnullwindow->hide();
  1970. effreverbwindow->hide();
  1971. effechowindow->hide();
  1972. effchoruswindow->hide();
  1973. effphaserwindow->hide();
  1974. effalienwahwindow->hide();
  1975. effdistorsionwindow->hide();
  1976. effeqwindow->hide();
  1977. effdynamicfilterwindow->hide();
  1978. eqband=0;
  1979. if(insertion) {
  1980. revp0->label("D/W");
  1981. echop0->label("D/W");
  1982. chorusp0->label("D/W");
  1983. phaserp0->label("D/W");
  1984. awp0->label("D/W");
  1985. distp0->label("D/W");
  1986. dfp0->label("D/W");
  1987. }
  1988. switch(efftype){
  1989. case 1:
  1990. effreverbwindow->show();
  1991. break;
  1992. case 2:
  1993. effechowindow->show();
  1994. break;
  1995. case 3:
  1996. effchoruswindow->show();
  1997. break;
  1998. case 4:
  1999. effphaserwindow->show();
  2000. break;
  2001. case 5:
  2002. effalienwahwindow->show();
  2003. break;
  2004. case 6:
  2005. effdistorsionwindow->show();
  2006. break;
  2007. case 7:
  2008. bandcounter->value(eqband);
  2009. bandcounter->do_callback();
  2010. effeqwindow->show();
  2011. break;
  2012. case 8:
  2013. effdynamicfilterwindow->show();
  2014. break;
  2015. default:effnullwindow->show();
  2016. break;
  2017. };
  2018. this->show();} {}
  2019. }
  2020. decl {int eqband;} {private local
  2021. }
  2022. decl {bool insertion;} {public local
  2023. }
  2024. decl {int efftype;} {public local
  2025. }
  2026. }