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.

57 lines
2.5KB

  1. <Cabbage>
  2. form caption("Stereo Chorus") size(305, 100), pluginID("scho")
  3. image bounds(0, 0, 305, 100), colour("DarkSlateGrey"), shape("rounded"), outline("white"), line(6)
  4. rslider bounds( 10, 13, 75, 75), text("Rate"), channel("rate"), range(0.001, 7, 0.5,0.5), fontcolour("white"), colour("DarkSlateGrey"), trackercolour("Silver")
  5. rslider bounds( 80, 13, 75, 75), text("Depth"), channel("depth"), range(0, 1.00, 0.2), fontcolour("white"), colour("DarkSlateGrey"), trackercolour("Silver")
  6. rslider bounds(150, 13, 75, 75), text("Width"), channel("width"), range(0, 1.00, 0.75), fontcolour("white"), colour("DarkSlateGrey"), trackercolour("Silver")
  7. rslider bounds(220, 13, 75, 75), text("Level"), channel("level"), range(0, 1.00, .1), fontcolour("white"), colour("DarkSlateGrey"), trackercolour("Silver")
  8. </Cabbage>
  9. <CsoundSynthesizer>
  10. <CsOptions>
  11. -d -n
  12. </CsOptions>
  13. <CsInstruments>
  14. sr = 44100
  15. ksmps = 32
  16. nchnls = 2
  17. 0dbfs = 1
  18. ;Author: Iain McCurdy (2012)
  19. ;http://iainmccurdy.org/csound.html
  20. opcode StChorus,aa,aakkk
  21. ainL,ainR,krate,kdepth,kwidth xin ;READ IN INPUT ARGUMENTS
  22. ilfoshape ftgentmp 0, 0, 131072, 19, 1, 0.5, 0, 0.5 ;POSITIVE DOMAIN ONLY SINE WAVE
  23. kporttime linseg 0,0.001,0.02 ;RAMPING UP PORTAMENTO VARIABLE
  24. kChoDepth portk kdepth*0.01, kporttime ;SMOOTH VARIABLE CHANGES WITH PORTK
  25. aChoDepth interp kChoDepth ;INTERPOLATE TO CREATE A-RATE VERSION OF K-RATE VARIABLE
  26. amodL osciliktp krate, ilfoshape, 0 ;LEFT CHANNEL LFO
  27. amodR osciliktp krate, ilfoshape, kwidth*0.5 ;THE PHASE OF THE RIGHT CHANNEL LFO IS ADJUSTABLE
  28. amodL = (amodL*aChoDepth)+.01 ;RESCALE AND OFFSET LFO (LEFT CHANNEL)
  29. amodR = (amodR*aChoDepth)+.01 ;RESCALE AND OFFSET LFO (RIGHT CHANNEL)
  30. aChoL vdelay ainL, amodL*1000, 1.2*1000 ;CREATE VARYING DELAYED / CHORUSED SIGNAL (LEFT CHANNEL)
  31. aChoR vdelay ainR, amodR*1000, 1.2*1000 ;CREATE VARYING DELAYED / CHORUSED SIGNAL (RIGHT CHANNEL)
  32. aoutL sum aChoL*0.6, ainL*0.6 ;MIX DRY AND WET SIGNAL (LEFT CHANNEL)
  33. aoutR sum aChoR*0.6, ainR*0.6 ;MIX DRY AND WET SIGNAL (RIGHT CHANNEL)
  34. xout aoutL,aoutR ;SEND AUDIO BACK TO CALLER INSTRUMENT
  35. endop
  36. instr 1
  37. krate chnget "rate"
  38. kdepth chnget "depth"
  39. kwidth chnget "width"
  40. klevel chnget "level"
  41. a1,a2 ins
  42. a1,a2 StChorus a1,a2,krate,kdepth,kwidth
  43. a1 = a1 * klevel
  44. a2 = a2 * klevel
  45. outs a1,a2
  46. endin
  47. </CsInstruments>
  48. <CsScore>
  49. i 1 0 [60*60*24*7]
  50. </CsScore>
  51. </CsoundSynthesizer>