Debian Codegraph @

examples/trigphasor.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6
7 sr = 44100
8 ksmps = 64
9 nchnls = 2
10 0dbfs = 1.0
11
12 gisnd ftgen 0, 0, 0, -1, "finneganswake1.flac", 0, 0, 0
13
14 instr 1
15 ; use trigphasor to read a soundfile
16 inumsamps = nsamp(gisnd)
17 irate = 1 ; play at original speed
18 ktrig metro 0.25
19 aphase trigphasor ktrig, irate, 0, inumsamps
20 asig table3 aphase, gisnd
21 asig *= linsegr:a(0, 0.01, 1, 0.01, 0)
22 outch 1, asig
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 i 1 0 20
28 f0 3600
29
30 </CsScore>
31 </CsoundSynthesizer>