Debian Codegraph @

examples/ftcps.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o ftlen.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 1
16
17 ; Instrument #1.
18 instr 1
19 ; Print out the base frequency of Table #1.
20 ; if it has been set in the original file.
21 icps = ftcps(1)
22 print icps
23 endin
24
25
26 </CsInstruments>
27 <CsScore>
28
29 ; Table #1: Use an audio file, Csound will determine its base frequency, if set.
30 f 1 0 0 1 "sample.wav" 0 0 0
31
32 ; Play Instrument #1 for 1 second.
33 i 1 0 1
34 e
35
36
37 </CsScore>
38 </CsoundSynthesizer>