Debian Codegraph @

examples/product.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 product.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 gisine ftgen 0, 0, 2^10, 10, 1
17
18 instr 1
19
20 a1 oscili 1, 10.0, gisine ;combine 3 sinusses
21 a2 oscili 1, 1.0, gisine ;at different rates
22 a3 oscili 1, 3.0, gisine
23 ares product a1, a2, a3
24
25 ares = ares*10000 ;scale result and
26 asig poscil .5, ares+110, gisine ;add to frequency
27 outs asig, asig
28
29 endin
30 </CsInstruments>
31 <CsScore>
32
33 i1 0 5
34 e
35 </CsScore>
36 </CsoundSynthesizer>