The original purpose of this csd was to set (FLsetVal) some FLslider values to CC-values sent through a midi connection from a (ancient) guitar effect processor
(Yamaha DG-Stomp).
To test the idea i first made a simple midi-file including a few CC's and some note-on's and -off's and used that for testing.
Then i found that there is something wrong either in my thinking or missing command-line flags because there were no time-gaps between csound
visible printing outputs but midi-file events had quite long time delays between each other.
Let me first tell how i think how csound works in this case. My thinking is that the given print-commands in csd-file activate according to the the time-points in the midi-file.
So the present very simple csd reads only the midi-file and at the moment there is a new event, prints the information about that.
In this case according to the time-stamps i would see messages at the terminal roughly after every 2 s.
Here's the csd-file:
<CsoundSynthesizer>
<CsOptions>
-n
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 441
nchnls = 2
0dbfs = 1
instr 1
kStatus, kChan, kData1, kData2 midiin
if kStatus != 0 then ;print if any new MIDI message has been received
printk 0, kStatus
printk 0, kChan
printk 0, kData1
printk 0, kData2
endif
endin
</CsInstruments>
<CsScore>
f 0 3600 ;dummy table for realtime input
i1 0 3600
e
</CsScore>
</CsoundSynthesizer>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here