Debian Codegraph @

examples/fluidLoad.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 fluidLoad.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 "07AcousticGuitar.sf2", giengine, 1
19 fluidProgramSelect giengine, 1, isfnum, 0, 0
20
21 instr 1
22
23 mididefault 60, p3
24 midinoteonkey p4, p5
25 ikey init p4
26 ivel init p5
27 fluidNote giengine, 1, ikey, ivel
28
29 endin
30
31 instr 99
32
33 imvol init 7
34 asigl, asigr fluidOut giengine
35 outs asigl*imvol, asigr*imvol
36
37 endin
38 </CsInstruments>
39 <CsScore>
40
41 i 1 0 2 60 100 ;play one note from score and...
42 i 99 0 60 ;play virtual keyboard for 60 sec.
43 e
44
45 </CsScore>
46 </CsoundSynthesizer>