Debian Codegraph @

examples/fold.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o fold.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1
17
18 asig poscil3 .8, 400, 1 ;very clean sine
19 kincr line p4, p3, p5
20 asig fold asig, kincr
21 outs asig, asig
22
23 endin
24 </CsInstruments>
25 <CsScore>
26 ;sine wave.
27 f 1 0 16384 10 1
28
29 i 1 0 4 2 2
30 i 1 5 4 5 5
31 i 1 10 4 10 10
32 i 1 15 4 1 100 ; Vary the fold-over amount from 1 to 100
33
34 e
35 </CsScore>
36 </CsoundSynthesizer>