Debian Codegraph @

src/Examples/FLOSS Manual Examples/04 Sound Synthesis/04E01_Simple_waveshaping.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 giTrnsFnc ftgen 0, 0, 4097, -7, -0.5, 1024, -0.5, 2048, 0.5, 1024, 0.5
12 giSine ftgen 0, 0, 1024, 10, 1
13
14 instr 1
15 aAmp poscil 1, 400, giSine
16 aIndx = (aAmp + 1) / 2
17 aWavShp tablei aIndx, giTrnsFnc, 1
18 out aWavShp, aWavShp
19 endin
20
21 </CsInstruments>
22 <CsScore>
23 i 1 0 10
24 </CsScore>
25 </CsoundSynthesizer>
26 ;example by joachim heintz