Debian Codegraph @

examples/lessthan.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 <.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 ipch = p4
19 ipitch = (ipch < 15 ? cpspch(ipch) : ipch) ;if p4 is lower then 15, it assumes p4 to be pitch-class
20 print ipitch ;and not meant to be a frequency in Hertz
21 asig poscil .5, ipitch , 1
22 outs asig, asig
23
24 endin
25 </CsInstruments>
26 <CsScore>
27 f1 0 8192 10 1 ;sine wave
28
29 i1 0 3 8.00 ;pitch class
30 i1 4 3 800 ;frequency
31
32 e
33 </CsScore>
34 </CsoundSynthesizer>
35