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.

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