Permalink
Browse files

Added missing csd files.

  • Loading branch information...
1 parent 5bcd8b6 commit 3a24971f55ed145d82bbd6950354917db8272e2f @jacobjoaquin committed Aug 9, 2010
View
@@ -0,0 +1,7 @@
+the data folder:
+If your library is using files like images, sound files,
+any data file, etc., put them into the data folder.
+When coding your library you can use processing's internal loading
+functions like loadImage(), loadStrings(), etc. to load files
+located inside the data folder into your library.
+
@@ -0,0 +1,31 @@
+<CsoundSynthesizer>
+<CsInstruments>
+sr = 44100
+kr = 1470
+ksmps = 30
+nchnls = 1
+0dbfs = 1
+
+gi_wave ftgen 1, 0, 8192, 9, 0.5, 1, 0
+
+chn_k "mouse_x", 1
+chn_k "mouse_y", 1
+chnset 0, "mouse_x"
+chnset 0, "mouse_y"
+
+instr 1
+ idur = p3
+ iamp = p4
+
+ k1 chnget "mouse_y"
+ k2 chnget "mouse_x"
+ a1 oscil iamp * k1, 100 * 8 ^ k2, gi_wave
+
+ out a1
+endin
+
+</CsInstruments>
+<CsScore>
+i 1 0 [60 * 60 * 24] 0.707
+</CsScore>
+</CsoundSynthesizer>
@@ -0,0 +1,20 @@
+<CsoundSynthesizer>
+<CsInstruments>
+sr = 44100
+kr = 4410
+ksmps = 10
+nchnls = 2
+0dbfs = 1
+
+instr 1
+ ; Keep synth running
+endin
+
+</CsInstruments>
+<CsScore>
+f 1 0 512 10 1 0 [1/3] 0 [1/5] 0 [1/7] 0 [1/9] 0 [1/11] 0 [1/13] 0 [1/15]
+f 2 0 64 21 6 1
+
+i 1 0 [60 * 60] ; Turn on for 1 hour
+</CsScore>
+</CsoundSynthesizer>
@@ -18,22 +18,6 @@ void draw() {
displayDiscreteTable(2, 20, height * 0.75, width - 40, height * 0.20);
}
-void randomFillTable(int t) {
- int s = cs.tableLength(t);
-
- for (int i = 0; i < s; i++) {
- cs.tableSet(t, i, random(2.0) - 1);
- }
-}
-
-void createRandomTable(int t, int s) {
- cs.event("f " + t + " 0 " + s + " 10 0");
-
- for (int i = 0; i < s; i++) {
- cs.tableSet(t, i, i * 2.0 / (float) s - 1.0);
- }
-}
-
void displayDiscreteTable(int t, float x, float y, float w, float h) {
int length = cs.tableLength(t);
@@ -0,0 +1,89 @@
+<CsoundSynthesizer>
+<CsInstruments>
+sr = 44100
+kr = 441
+ksmps = 100
+nchnls = 2
+0dbfs = 1
+
+gi_sin ftgen 1, 0, 8192, 10, 1
+
+chn_a "left", 3
+chn_a "right", 3
+
+instr 1
+ idur = p3 ; Duration
+ iamp = p4 ; Amplitude
+ ifreq = p5 ; Frequency
+ ipan = p6 ; Pan
+ i_index = p7 ; FM index amount
+
+ imix = 0.75
+
+ irandom random 0.995, 1.005
+ a2 linseg 0, 0.05, 1, idur - 0.05, 0
+ k2 line 0.5 + (3 * i_index), idur, 0.5
+ a1 foscil iamp, ifreq * irandom, 1, 1.61803399, k2, 1
+
+ a1 = a1 * a2
+
+ aleft = a1 * sqrt(1 - ipan)
+ aright = a1 * sqrt(ipan)
+
+ outs aleft * sqrt(1 - imix), aright * sqrt(1 - imix)
+
+ chnmix aleft * sqrt(imix), "left"
+ chnmix aright * sqrt(imix), "right"
+ event_i "i", 2, 0, 1, iamp * 0.4 * sqrt(1 - imix), ifreq * 3, ipan
+endin
+
+instr 2
+ p3 = 0.2 ; Set duration
+ idur = p3 ; Duration
+ iamp = p4 ; Amplitude
+ ifreq = p5 ; Frequency
+ ipan = p6 ; Pan
+
+ a1 line iamp, idur, 0
+ a2 oscil a1, ifreq , 1
+
+ outs a2 * sqrt(1 - ipan), a2 * sqrt(ipan)
+ chnmix a2 * sqrt(1 - ipan), "left"
+ chnmix a2 * sqrt(ipan), "right"
+endin
+
+instr 3
+ iamp = p4 ; Amplitude
+ imax_delay = 35
+ imin_delay = 10
+
+ a1 chnget "left"
+ a2 chnget "right"
+ chnclear "left"
+ chnclear "right"
+
+ ifb = 0.6
+ it = 0.1
+
+ alfo1 oscil 0.5, 0.1, 1
+ alfo1 = (alfo1 + 0.5) * (imax_delay - imin_delay) + imin_delay
+ alfo2 oscil 0.5, 0.11, 1, 0.3
+ alfo2 = (alfo2 + 0.5) * (imax_delay - imin_delay) + imin_delay
+
+ afb1 delayr it
+ ad1 vdelay3 a1 + afb1, alfo1, imax_delay
+ delayw ad1 * ifb
+
+ afb2 delayr it
+ ad2 vdelay3 a2 + afb2, alfo2, imax_delay
+ delayw ad2 * ifb
+
+ a3, a4 freeverb ad2, ad1, 0.8, 0.5
+ outs a3 * iamp, a4 * iamp
+endin
+
+</CsInstruments>
+<CsScore>
+i 3 0 [60 * 60 * 24] 0.8 ; Turn of fx for 24 hours
+</CsScore>
+</CsoundSynthesizer>

0 comments on commit 3a24971

Please sign in to comment.