Debian Codegraph @

examples/ksmps.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5
6 ; By Stefano Cucchi - 2024
7
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 48000
12
13 ; If you set ksmps = 24000, then kr = 2, so you hear 2 step every sec.
14 ksmps = 24000
15
16 ; If you set ksmps = 32, then kr = 1500. You can hear a smooth glissando
17 ;ksmps = 32
18
19 nchnls = 2
20 0dbfs = 1
21
22 instr 1
23 kamp = 0.4
24 kfreq expseg p4, p3, p5
25 a1 oscil3 kamp, kfreq, 1
26 outs a1, a1
27 endin
28
29 </CsInstruments>
30 <CsScore>
31
32 f 1 0 524288 10 1
33
34 i 1 0 15 100 13000
35 e
36 </CsScore>
37 </CsoundSynthesizer>