Debian Codegraph @

examples/tanh.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;realtime audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o tanh.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 1
17
18 asig1 vco 1, 440, 2, 0.4, 1
19 asig2 vco 1, 800, 3, 0.5, 1
20 asig = asig1+asig2 ; will go out of range
21 outs tanh(asig), tanh(asig) ; but tanh is a limiter
22
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 f1 0 65536 10 1 ; sine
28
29 i 1 0 1
30 e
31 </CsScore>
32 </CsoundSynthesizer>