Debian Codegraph @

examples/bbcutm.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o bbcutm.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; additions by Menno Knevel 2021
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1 ; Play an audio file normally.
19
20 asource soundin "drumsMlp.wav"
21 outs asource, asource
22
23 endin
24
25 instr 2 ; Cut-up an audio file
26
27 ibps = 4
28 isubdiv = 8
29 ibarlength = 4
30 iphrasebars = 1
31 inumrepeats = p4
32 asource diskin2 "drumsMlp.wav", 1, 0 ,1
33 a1 bbcutm asource, ibps, isubdiv, ibarlength, iphrasebars, inumrepeats
34 outs a1, a1
35
36 endin
37
38 </CsInstruments>
39 <CsScore>
40
41 i 1 0 2
42 ; repeats
43 i 2 3 8 2
44 i 2 12 8 6
45 e
46 </CsScore>
47 </CsoundSynthesizer>