Debian Codegraph @

examples/JackoMidiInConnect.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -M0 -+rtmidi=null
4 </CsOptions>
5 <CsInstruments>
6
7 sr = 48000
8 ksmps = 128
9 nchnls = 2
10 0dbfs = 1
11
12 ; by Menno Knevel - 2023
13 ; The example shows how to connect a Midi port (Edirol) to the Midi In of Instrument 1
14
15 JackoInit "default", "csound6" ; Csound as a Jack client
16 JackoMidiInConnect "UM-3:midi/playback_2", "midiinEDIROL" ; create 1 Midi in port
17
18 instr 1 ; get notes to the EDIROL Midi port
19 ifreq cpsmidi
20 iamp ampmidi .7
21 aout vco2 iamp, ifreq
22 outs aout, aout
23 endin
24
25 </CsInstruments>
26 <CsScore>
27
28 i1 1 30
29 e
30 </CsScore>
31 </CsoundSynthesizer>