Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Cabbage>
- form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginID("def1")
- 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")
- 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")
- 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")
- </Cabbage>
- <CsoundSynthesizer>
- <CsOptions>
- -n -d -+rtmidi=NULL -M0 -m0d
- </CsOptions>
- <CsInstruments>
- ; Initialize the global variables.
- sr = 44100
- ksmps = 32
- nchnls = 2
- 0dbfs = 1
- instr 1
- kGain chnget "gain"
- a1 inch 1
- a2 inch 2
- ityp chnget "type"
- idist chnget "dist"
- adist1 clip a1, ityp, idist
- adist2 clip a2, ityp, idist
- outs adist1*kGain, adist2*kGain
- endin
- </CsInstruments>
- <CsScore>
- ;causes Csound to run for about 7000 years...
- f0 z
- ;starts instrument 1 and runs it for a week
- i1 0 [60*60*24*7]
- </CsScore>
- </CsoundSynthesizer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement