Debian Codegraph @

examples/lowres.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o lowres.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 kres = p4
19 asig vco .2, 220, 1 ;sawtooth
20
21 kcut line 1000, p3, 10 ;note: kcut is not in Hz
22 as lowres asig, kcut, kres ;note: kres is not in dB
23 aout balance as, asig ;avoid very loud sounds
24 outs aout, aout
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 ; a sine
30 f 1 0 16384 10 1
31
32 i 1 0 4 3
33 i 1 + 4 30
34 i 1 + 4 60
35 e
36 </CsScore>
37 </CsoundSynthesizer>