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.

64 lines
1.3KB

  1. <Cabbage>
  2. form caption("Waveguide pluck ") size(335, 170), colour("black"), pluginID("plu1")
  3. rslider bounds(0, 0, 80, 80) channel("pick"), tracker(0), range(.1, 1,.5), caption("Pick"), colour("yellow"), midictrl(1, 1)
  4. rslider bounds(85, 0, 80, 80) channel("plucked"), range(0,2,1), caption("Point-plucked"), colour("yellow"), midictrl(1, 2)
  5. rslider bounds(170, 0, 80, 80) channel("damping"), range(1, 100, 10), caption("Damping"), colour("yellow"), midictrl(1, 3)
  6. rslider bounds(255, 0, 80, 80) channel("filter"), range(10, 30000, 100), caption("Filter"), colour("yellow"), midictrl(1, 4)
  7. keyboard pos(0, 85), size(330, 50)
  8. </Cabbage>
  9. <CsoundSynthesizer>
  10. <CsOptions>
  11. -d -n -+rtmidi=NULL -M0
  12. ;-n -d -+rtmidi=NULL -M0
  13. </CsOptions>
  14. <CsInstruments>
  15. ;Author: Giorgio Zucco (2012)
  16. sr = 44100
  17. ksmps = 10
  18. nchnls = 2
  19. 0dbfs = 1
  20. instr 1
  21. iamp ampmidi 1
  22. ifreq cpsmidi
  23. kpick chnget "pick"
  24. kpoint chnget "plucked"
  25. kdamp chnget "damping"
  26. kfilt chnget "filter"
  27. kpickx portk kpick,.02
  28. axcite oscil 1,1,1 ;segnale eccitatore
  29. apluck wgpluck ifreq,iamp,kpickx,i(kpoint),i(kdamp),i(kfilt),axcite
  30. aout clip apluck,0,0dbfs
  31. kenv linsegr 1,.1,1,.3,.5,.2,0 ;inviluppo d'ampiezza
  32. outs aout*kenv,aout*kenv
  33. endin
  34. </CsInstruments>
  35. <CsScore>
  36. f1 0 16384 10 1
  37. f0 36000
  38. </CsScore>
  39. </CsoundSynthesizer>