Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03D03_Sample_to_table.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac --env:SSDIR=../../SourceMaterials
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 gS_file = "fox.wav"
12 giSample ftgen 0, 0, 0, 1, gS_file, 0, 0, 1
13
14 instr PlayOnce
15 p3 filelen gS_file ;play whole length of the sound file
16 aSamp poscil3 .5, 1/p3, giSample
17 out aSamp, aSamp
18 endin
19
20 </CsInstruments>
21 <CsScore>
22 i "PlayOnce" 0 1
23 </CsScore>
24 </CsoundSynthesizer>
25 ;example by joachim heintz