Debian Codegraph @

examples/fluidCCi.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -+rtmidi=virtual -M0 ;;;realtime audio out and realtime midi in
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ;-o fluidCCi.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 giengine fluidEngine
17 ; soundfont path to manual/examples
18 isfnum fluidLoad "19Trumpet.sf2", giengine, 1
19 fluidProgramSelect giengine, 1, isfnum, 0, 56
20
21 instr 1
22
23 mididefault 60, p3
24 midinoteonkey p4, p5
25 ikey init p4
26 ivel init p5
27 fluidCCi giengine, 1, 93, 127 ;full chorus &
28 fluidCCi giengine, 1, 91, 127 ;full reverb!
29 fluidNote giengine, 1, ikey, ivel
30
31 endin
32
33 instr 99
34
35 imvol init 7
36 asigl, asigr fluidOut giengine
37 outs asigl*imvol, asigr*imvol
38
39 endin
40 </CsInstruments>
41 <CsScore>
42
43 i 1 0 5 60 100 ;play one note from score and...
44 i 99 0 60 ;play virtual keyboard for 60 sec.
45 e
46
47 </CsScore>
48 </CsoundSynthesizer>