Debian Codegraph @

examples/scanmap_matrxT.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ; -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o scanmap_matrxT.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 scanmap_Additive
17
18 a0 init 0
19 kp[] init 16
20 kv[] init 16
21 giTableKP ftgen 100, 0, -16, 2, 0
22 giTableKV ftgen 101, 0, -16, 2, 0
23 scanu2 -1, .1, 6, 2, 3, 4, 5, 2, 10, .001, .01, .1, .9, 0, 0, a0, 1, 2
24 kp,kv scanmap 2, 1000, 2
25 copya2ftab kp, giTableKP
26 copya2ftab kv, giTableKV
27 a1 poscil ampdbfs(p4)*kv[8], cpsmidinn(p5)+kp[8]
28 a2 poscil ampdbfs(p4)*kv[13], cpsmidinn(p5)+kp[13]
29 a3 poscil ampdbfs(p4)*kv[5], cpsmidinn(p5)+kp[5]
30 a4 poscil ampdbfs(p4)*kv[1], cpsmidinn(p5)+kp[1]
31 kamp line 3, p3, 0.01
32 outs (a1+a4)*kamp, (a2+a3) * kamp
33 endin
34
35 </CsInstruments>
36 <CsScore>
37 f1 0 16 10 1 ; initial displacement condition (sine shape)
38 f2 0 16 -7 1 16 1 ; uniform masses
39 f3 0 0 -44 "string_with_extras-16.matrxT"
40 f4 0 16 -7 .001 16 1 ; ramped centering
41 f5 0 16 -7 .1 16 1 ; ramped damping
42 f6 0 16 -7 .01 16 .01 ; uniform initial velocity
43
44 i "scanmap_Additive" 0 15 -1 72
45 e
46 </CsScore>
47 </CsoundSynthesizer>