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.

EffUI.fl 64KB

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