Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <Cabbage>
  2. form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginID("def1")
  3. rslider bounds(296, 162, 100, 100), channel("dist"), range(0, 1, 0, 1, .01), text("Dist"), trackercolour("lime"), outlinecolour(0, 0, 0, 50), textcolour("black")
  4. rslider bounds(20, 180, 100, 100), channel("type"), range(0, 3, 0, 1, 1), text("Type"), trackercolour("lime"), outlinecolour(0, 0, 0, 50), textcolour("black")
  5. rslider bounds(160, 80, 100, 100), channel("gain"), range(0, 1, 0, 1, .01), text("Gain"), trackercolour("lime"), outlinecolour(0, 0, 0, 50), textcolour("black")
  6.  
  7. </Cabbage>
  8. <CsoundSynthesizer>
  9. <CsOptions>
  10. -n -d -+rtmidi=NULL -M0 -m0d
  11. </CsOptions>
  12. <CsInstruments>
  13. ; Initialize the global variables.
  14. sr = 44100
  15. ksmps = 32
  16. nchnls = 2
  17. 0dbfs = 1
  18.  
  19.  
  20. instr 1
  21. kGain chnget "gain"
  22.  
  23. a1 inch 1
  24. a2 inch 2
  25.  
  26. ityp chnget "type"
  27. idist chnget "dist"
  28.  
  29. adist1 clip a1, ityp, idist
  30. adist2 clip a2, ityp, idist
  31.  
  32. outs adist1*kGain, adist2*kGain
  33. endin
  34.  
  35. </CsInstruments>
  36. <CsScore>
  37. ;causes Csound to run for about 7000 years...
  38. f0 z
  39. ;starts instrument 1 and runs it for a week
  40. i1 0 [60*60*24*7]
  41. </CsScore>
  42. </CsoundSynthesizer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement