Debian Codegraph @

examples/bbcuts.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o bbcuts.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 ; by Menno Knevel 2022
17
18 instr 1 ;Play an audio file
19
20 aleft, aright diskin2 "drumsSlp.wav", 1, 0
21 outs aleft, aright
22 endin
23
24 instr 2 ;Cut-up stereo audio file.
25
26 ibps = 16
27 isubdiv = p4
28 ibarlength = 2
29 iphrasebars = 1
30 inumrepeats = 8
31
32 aleft, aright diskin2 "drumsSlp.wav", 1, 0
33 aleft, aright bbcuts aleft, aright, ibps, isubdiv, ibarlength, iphrasebars, inumrepeats
34 outs aleft, aright
35 endin
36
37 </CsInstruments>
38 <CsScore>
39
40 i1 0 4 ; original sample
41 i2 5 4 1 ; subdivisions = 1
42 i2 10 4 .5 ; subdivisions = .5
43 e
44
45 </CsScore>
46 </CsoundSynthesizer>