Debian Codegraph @

examples/pitchamdf.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 real audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o pitchamdf.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Menno Knevel 2022
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1 ;clean audio
19
20 asig soundin p4
21 outs asig, asig
22 endin
23
24 instr 2 ;use pitch
25
26 Sfile = p4
27 asig soundin Sfile
28
29 asig tone asig, 1000 ;lowpass-filter
30 kcps, krms pitchamdf asig, 100, 500, 200
31 asig poscil krms, kcps, 1 ;re-synthesize with sawtooth
32 printf "now %s is used...\n\n", 1, Sfile
33 outs asig, asig
34
35 endin
36 </CsInstruments>
37 <CsScore>
38 f1 0 16384 10 1 0.5 0.3 0.25 0.2 0.167 0.14 0.125 .111 ;sawtooth
39
40 i 1 0 3 "fox.wav"
41 i 2 3 3 "fox.wav"
42 i 1 6 4 "singFemale.aif"
43 i 2 10 4 "singFemale.aif"
44 i 1 15 2 "drumsMlp.wav"
45 i 2 17 2 "drumsMlp.wav"
46 </CsScore>
47 </CsoundSynthesizer>