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.

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