Debian Codegraph @

examples/lposcil.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 lposcil.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 kcps = 1.5 ; a fifth up
19 kloop = 0 ; loop start time in samples
20 kend = 45000 ; loop end time in samples
21
22 asig lposcil 1, kcps, kloop, kend, 1
23 outs asig, asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 ; Its table size is deferred,
29 ; and format taken from the soundfile header.
30 f 1 0 0 1 "drumsMlp.wav" 0 0 0
31
32 ; Play Instrument #1 for 6 seconds.
33 ; This will loop the drum pattern several times.
34 i 1 0 6
35
36 e
37 </CsScore>
38 </CsoundSynthesizer>