summaryrefslogtreecommitdiff
path: root/examples/fold.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fold.csd')
-rw-r--r--examples/fold.csd35
1 files changed, 16 insertions, 19 deletions
diff --git a/examples/fold.csd b/examples/fold.csd
index aa21186..db1c9b9 100644
--- a/examples/fold.csd
+++ b/examples/fold.csd
@@ -1,39 +1,36 @@
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-; Audio out Audio in No messages
--odac -iadc -d ;;;RT audio I/O
+-odac ;;;realtime audio out
+;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o fold.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
-; Initialize the global variables.
sr = 44100
-kr = 4410
-ksmps = 10
-nchnls = 1
+ksmps = 32
+nchnls = 2
+0dbfs = 1
-; Instrument #1.
instr 1
- ; Use an ordinary sine wave.
- asig oscils 30000, 100, 1
- ; Vary the fold-over amount from 1 to 200.
- kincr line 1, p3, 200
- a1 fold asig, kincr
+asig poscil3 .8, 400, 1 ;very clean sine
+kincr line p4, p3, p5
+asig fold asig, kincr
+ outs asig, asig
- out a1
endin
-
-
</CsInstruments>
<CsScore>
+;sine wave.
+f 1 0 16384 10 1
-; Play Instrument #1 for four seconds.
-i 1 0 4
-e
-
+i 1 0 4 2 2
+i 1 5 4 5 5
+i 1 10 4 10 10
+i 1 15 4 1 100 ; Vary the fold-over amount from 1 to 100
+e
</CsScore>
</CsoundSynthesizer>