Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SunMusic.csd
diff options
context:
space:
mode:
Diffstat (limited to 'SunMusic.csd')
-rwxr-xr-xSunMusic.csd71
1 files changed, 71 insertions, 0 deletions
diff --git a/SunMusic.csd b/SunMusic.csd
new file mode 100755
index 0000000..19b667d
--- /dev/null
+++ b/SunMusic.csd
@@ -0,0 +1,71 @@
+; BROTHER SUN (2010) for realtime Csound5 - by Arthur B. Hunkins
+; requires MIDI device with 8-9 knobs/sliders
+
+<CsoundSynthesizer>
+<CsOptions>
+
+-odac -+rtaudio=alsa -+rtmidi=alsa -M hw:1,0 -m0d --expression-opt -b128 -B2048 -+raw_controller_mode=1
+
+</CsOptions>
+<CsInstruments>
+
+sr = 32000
+ksmps = 100
+nchnls = 2
+
+ instr 1
+
+ichan chnget "Chan"
+ictrl chnget "Cont"
+ipan chnget "Pan"
+ipctrl chnget "PCont"
+kmod1 ctrl7 (ichan = 0? 1: ichan), (ichan = 0? 7: ictrl), 0, 7
+kmod1 port kmod1, .1
+kmod2 ctrl7 (ichan = 0? 2: ichan), (ichan = 0? 7: ictrl + 1), 0, 10
+kmod2 port kmod2, .1
+kmod3 ctrl7 (ichan = 0? 3: ichan), (ichan = 0? 7: ictrl + 2), 0, 13
+kmod3 port kmod3, .1
+kmod4 ctrl7 (ichan = 0? 4: ichan), (ichan = 0? 7: ictrl + 3), 0, 16
+kmod4 port kmod4, .1
+kmod5 ctrl7 (ichan = 0? 5: ichan), (ichan = 0? 7: ictrl + 4), 0, 19
+kmod5 port kmod5, .1
+kmod6 ctrl7 (ichan = 0? 6: ichan), (ichan = 0? 7: ictrl + 5), 0, 22
+kmod6 port kmod6, .1
+kfreq ctrl7 (ichan = 0? 7: ichan), (ichan = 0? 7: ictrl + 6), 50, 55
+kfreq port kfreq, 1.5, 50
+krand rspline -.1, .1, .5, .8
+krand2 rspline -.1, .1, .5, .8
+krand3 rspline -.1, .1, .5, .8
+krand4 rspline -.1, .1, .5, .8
+krand5 rspline -.1, .1, .5, .8
+amod1 lfo kfreq * kmod1, kfreq * 2
+amod2 lfo kfreq * kmod2, (kfreq * 3) + krand
+amod3 lfo kfreq * kmod3, (kfreq * 5) + krand2
+amod4 lfo kfreq * kmod4, (kfreq * 7) + krand3
+amod5 lfo kfreq * kmod5, (kfreq * 9) + krand4
+amod6 lfo kfreq * kmod6, (kfreq * 11) + krand5
+kamp2 ctrl7 (ichan = 0? 8: ichan), (ichan = 0? 7: ictrl + 7), 0, 1
+kamp table kamp2 * 512, 1
+kamp = (kamp2 == 0? 0: kamp * 25000)
+kamp port kamp, .1
+kramp jspline -.15 * kamp, 1, 3.5
+aout oscil kamp + kramp, amod1 + amod2 + amod3 + amod4 + amod5 + amod6, 2
+ if ipan = 0 goto skip
+kpan ctrl7 (ichan = 0? 9: ichan), (ichan = 0? 7: ipctrl), 0, 1
+kpan port kpan, .5
+a1,a2,a3,a4 pan aout, kpan, 1, 3, 1
+ outs a1, a2
+ goto fin
+skip: outs aout, aout
+fin: endin
+
+</CsInstruments>
+<CsScore>
+
+f1 0 512 16 1 511 2.2 1000
+f2 0 16384 10 1
+f3 0 8193 7 0 8193 1
+i1 0 3600
+
+</CsScore>
+</CsoundSynthesizer>