Hi everyone!
I’m encountering a rather bizarre behaviour, where there is the expected midi output if I run a .csd from CsoundQT, but there is something else happening when I run from the terminal (on a mac).
I am sending PitchBend messages and in CsoundQT everything works fine.
If I run csound from the terminal, however, there is only two PB-Messages being sent, one at the very start and one at the very end. The last one being 8192 (the “0”), regardless of what the last message I am trying to send actually is.
Both from the terminal and inside CsoundQT I’m running version 6.18.
In both cases the midi output connection (portmidi device) is the same, no additional midi options have been activated in CsoundQT.
If I use the “Run in Terminal” option in CsoundQT, I get the same faulty behaviour I am experiencing by directly running the patch in the terminal manually.
Can anybody guide me into the right direction?
Cheers
Max
-+rtmidi=portmidi
-Ma
-Q2 ; MIDI OUT Device
-odac
instr 1
kpi =int:k(line(7192, p3, 9192))
kch changed kpi
schedkwhen kch, 0, 0, “PBSend”, 0, .01, kpi
endin
instr PBSend
imsb = int(p4/128)
ilsb = int(p4%128)
print ilsb
print imsb
midiout 224, 1, ilsb, imsb
turnoff
endin
i1 0 10