Debian Codegraph @

examples/voice.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 voice.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 kamp = p4
19 kphon = p5
20 asig voice kamp, 200, kphon, 0.488, 0, 1, 1, 2
21 outs asig, asig
22
23 endin
24 </CsInstruments>
25 <CsScore>
26 f 1 0 256 1 "impuls20.aiff" 0 0 0 ;audio file for the carrier waveform
27 f 2 0 256 10 1 ;sine wave for the vibrato waveform
28
29 ; ampl phoneme
30 i 1 0 2 0.8 1
31 i 1 + . 0.6 2
32 i 1 + . 1.8 3
33 i 1 + . 15.0 4
34 i 1 + . 0.05 5
35 i 1 + . 0.06 6
36 i 1 + . 0.03 7
37 i 1 + . 0.0002 8
38 i 1 + . 0.1 9
39 i 1 + . 0.5 10
40 i 1 + . 100 11
41 i 1 + . 0.03 12
42 i 1 + . 0.04 13
43 i 1 + . 0.04 14
44 i 1 + . 0.04 15
45 i 1 + . 0.05 16
46
47 e
48 </CsScore>
49 </CsoundSynthesizer>
50