Debian Codegraph @

examples/ftsr.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ; For Non-realtime ouput leave only the line below:
6 ; -o ftsr.wav -W ;;; for file output any platform
7 </CsOptions>
8 <CsInstruments>
9
10 ; by Menno Knevel 2022
11
12 sr = 44100
13 ksmps = 32
14 nchnls = 2
15 0dbfs = 1
16
17 instr 1
18
19 itab = p4
20 isr = ftsr(itab)
21 prints "\nsampling-rate of table number %d = %d\n\n", itab, isr
22
23 endin
24 </CsInstruments>
25 <CsScore>
26 f 1 0 0 1 "drumsSlp.wav" 0 0 0 ;stereo file
27 f 2 0 0 1 "ahh.aiff" 0 0 0 ;& different formats
28 f 3 0 0 1 "beats.mp3" 0 0 0
29 f 4 0 0 1 "beats.ogg" 0 0 0
30
31 i 1 0 1 1
32 i 1 + 1 2
33 i 1 + 1 3
34 i 1 + 1 4
35 e
36 </CsScore>
37 </CsoundSynthesizer>