Extra "ports" of juce-based plugins using the distrho build system
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.

91 lines
1.9KB

  1. <Cabbage>
  2. form size(350, 125), caption("Metalizer"), colour("black"),pluginID("meta")
  3. image bounds(5, 5, 340, 90), colour("black"), outline("white")
  4. rslider bounds(15, 15, 70, 70), channel("depth"), text("Depth"), colour("lightgrey") range(0.2, 4, 0.2)
  5. rslider bounds(95, 15, 70, 70), channel("time"), text("Time"), colour("lightgrey") range(0.0001,8,.1)
  6. rslider bounds(170, 15, 70, 70), channel("mix"), text("Dry/Wet"), colour("lightgrey") range(0, 1, 0)
  7. checkbox pos(260, 15) text("On/Off"), channel("on_off")
  8. </Cabbage>
  9. <CsoundSynthesizer>
  10. <CsOptions>
  11. -d -n
  12. </CsOptions>
  13. <CsInstruments>
  14. sr = 44100
  15. ksmps = 64
  16. nchnls = 2
  17. ;Author: Giorgio Zucco (2012)
  18. ;(adapted from Metallic reverb from CsoundBook)
  19. opcode Metalizer,aa,aakk
  20. asig1,asig2,kdepth,krvt xin
  21. klp1 = 1/8*kdepth
  22. klp2 = 1/13*kdepth
  23. klp3 = 1/546*kdepth
  24. klp4 = 1/739*kdepth
  25. klp5 = 1/1360 *kdepth
  26. klp6 = 1/2654*kdepth
  27. aecho1 vcomb asig1, krvt, klp1, 1
  28. aecho2 vcomb asig2, krvt, klp2, 1
  29. aecho1 = asig1+aecho1
  30. aecho2 = asig2+aecho2
  31. aecho3 vcomb aecho1, krvt, klp3, 1
  32. aecho4 vcomb aecho1, krvt, klp4, 1
  33. aecho5 vcomb aecho2, krvt, klp5, 1
  34. aecho6 vcomb aecho2, krvt, klp6, 1
  35. aout1 = (aecho1+aecho3+aecho5)*.1
  36. aout2 = (aecho2+aecho4+aecho6)*.1
  37. xout aout1 ,aout2
  38. endop
  39. instr 1
  40. kdepth chnget "depth"
  41. ktime chnget "time"
  42. kOnOff chnget "on_off"
  43. kmix chnget "mix"
  44. a1,a2 ins
  45. if kOnOff = 1 then
  46. aout1,aout2 Metalizer a1,a2,kdepth,ktime
  47. elseif kOnOff = 0 then
  48. aout1 = 0
  49. aout2 = 0
  50. endif
  51. amix1 ntrpol aout1,a1,1-kmix
  52. amix2 ntrpol aout2,a2,1-kmix
  53. kpan1 jspline 1,1,5
  54. kpan2 jspline 1,1,4
  55. aleft,aright pan2 amix1,kpan1
  56. aleft2,aright2 pan2 amix2,kpan2
  57. outs (aleft+aleft2)*.5,(aright+aright2)*.5
  58. endin
  59. </CsInstruments>
  60. <CsScore>
  61. i1 0 360000
  62. </CsScore>
  63. </CsoundSynthesizer>