sending MIDI out -+rtmidi via the IAC Driver on Mac OSX
Date | 2015-09-08 05:52 |
From | Tim Mortimer |
Subject | sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Hi. I'd really like to be able to do this. My IAC Driver shows up in CsoundQT in the menu of options for transmitting MIDI in realtime, & works effectively there utilising the FLOSS code examples... but i'd like to achieve it directly from the command line, in part so i can overcome issues using sensekey opcode to provide triggers at the same time (an issue that was raised in a separate thread regarding csoundQT about a month or so back... & which i commented on yesterday) but rather than complicate this theoretically straight-forward task with a bunch of side issues & observations ... can anyone offer advice as to how i might, in theory, do this? at the moment, with -+rtmidi='coremidi', & -Q999 i don't seem to have any output options listed, 'coremidi' being the only viable setting for the rtmidi flag i have found that allows csound to run in the first place ... this article addresses getting MIDI in to csound, but i am trying to go the other way ... & as menrtioned, have done when transmitting from csoundQT ... so i know it's possible using the IAC Driver... http://www.csounds.com/journal/issue16/audiorouting.html Thank You. -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 06:31 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
The coremidi module does not have outputs, use portmidi, which is the default. Just leave out the -+rtmidi flag. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 8 Sep 2015, at 05:52, Tim Mortimer |
Date | 2015-09-08 06:53 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Thanks Victor... unfortunately, no flags yields me error: -+rtmidi='portmidi': unknown module *** error opening MIDI out device: -1 (Unknown MIDI error) ... I have the latest Yosemite 10.10 installed (on an old 2009 macbook i picked up ...) -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743456.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 06:56 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
yet -+rtmidi=portmidi works fine as a flag when i run it from csoundQT ... -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743457.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 07:09 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
stop press: it's running now, but i'm still not successfully getting MIDI out to the target direct from the command line... (i think my bogus -Q setting was causing the failure ...) i'll keep digging & advise ... -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743458.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 07:13 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
you don't need -+rtmidi at all, portmidi is the default. You need to select the device with -Q Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 8 Sep 2015, at 06:56, Tim Mortimer |
Date | 2015-09-08 07:18 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
OK so in csoundQT -+rtmidi=portmidi -Q (any number you like, or omit altogether) it runs & transmits MIDI over the IAC DRiver from the command line -+rtmidi=portmidi with -Q ommitted it runs, but no MIDI is transmitted (or sound is heard at least...) -+rtmidi=portmidi -Q 0 (or 1, or 999) i get error: -+rtmidi='portmidi': unknown module that's the sum of my knowledge of the issue ... ek. -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743460.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 07:21 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
OK great Victor, thanks for your help... No more -+rtmidi ... its gone how do i target my IAC Driver with the -Q flag? -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743461.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 08:51 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Try $ csound --midi-devices and then use -QN with N the requested number ligeti-3:src victor$ csound --midi-devices virtual_keyboard real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 6.05 (double samples) Aug 16 2015 libsndfile-1.0.25 rtaudio: PortAudio module enabled ... using callback interface rtmidi: PortMIDI module enabled 1 MIDI input devices 0: 0 (IAC Driver Bus 1) 1 MIDI output devices 0: 0 (IAC Driver Bus 1) end of score. overall amps: 0.0 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 1.201s, CPU: 0.007s ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 8 Sep 2015, at 07:21, Tim Mortimer |
Date | 2015-09-08 09:30 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
my response ... i apologise if i am doing something really stupid here... note i am using csound 6.04 .. maybe this was a bug or something ... MacUserookNo162:~ macuser$ csound --midi-devices virtual_keyboard real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 6.04 (double samples) Dec 6 2014 libsndfile-1.0.25 unknown long option: '--midi-devices' end of score. overall amps: 0.0 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 0.000s, CPU: 0.000s -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743464.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 09:41 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
I think this option was added to 6.05. You can update, or try -Q99 which will give list available devices and exit with an error Victor ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 8 Sep 2015, at 09:30, Tim Mortimer |
Date | 2015-09-08 10:12 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
"error: -+rtmidi='portmidi': unknown module" this happens anytime i set -Q to anything ... MacUserookNo162:~ macuser$ csound -Q99 /Users/macuser/Documents/csound/Lib/real\ time/polyphony\ dispenser.csd virtual_keyboard real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 6.04 (double samples) Dec 6 2014 libsndfile-1.0.25 UnifiedCSD: /Users/macuser/Documents/csound/Lib/real time/polyphony dispenser.csd STARTING FILE Creating options Creating orchestra Creating score rtaudio: PortAudio module enabled ... using callback interface Elapsed time at end of orchestra compile: real: 0.014s, CPU: 0.013s sorting score ... ... done Elapsed time at end of score sort: real: 0.014s, CPU: 0.013s error: -+rtmidi='portmidi': unknown module *** error opening MIDI out device: -1 (Unknown MIDI error) end of score. overall amps: 0.00000 0.00000 overall samples out of range: 0 0 1 errors in performance Elapsed time at end of performance: real: 0.014s, CPU: 0.013s MacUserookNo162:~ macuser$ -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743466.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 10:15 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
This is why this is so mysterious ... IF i run MIDI out from csoundQT it works fine... csoundQT can apparently find my IAC Driver & transmit on it no problems... BUT , im trying to use sensekey to trigger in realtime ... hence the desire to run from the command line ... -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743467.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 10:25 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
looks like you might have the environment variable OPCODE6DIR64 set to the wrong place, so the command line cannot find the plugins. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 8 Sep 2015, at 10:12, Tim Mortimer |
Date | 2015-09-08 10:43 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
** crickets ** OK, well this is good news in a way, as i have no idea where the csound install even resides on the mac, or where the file is where you can set all your default flag values etc (i used to know where it was on Windows, but that was 6 or 7 years ago that i last used csound when working with that OS ...) currently reading this & feeling slightly confused... http://www.csounds.com/manual/html/CommandEnvironment.html ~$ export OPCODEDIR=/Users/you/your/Csound5/build umm, where might that be? i used the .dmg file standard issue from the downloads page... i'm inclined to resolve all this in this thread now for future reference ... sorry to be a pain... -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743469.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 11:21 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
If you have not set it, I doubt this is the problem (the default is fine). CsoundQT uses its own MIDI module for Csound, so that might explain why it works there. There are a couple of reasons why portmidi might not be working: 1) the opcode dir is not set correctly. If you type echo $OPCODE6DIR64 and get anything other than a blank line on the terminal, you will know that this is causing the problem. Otherwise, that is not the problem. Another thing you can do is to type csound -z and see how many opcodes you have. If you have more than 1547, then the plugin directory is being found OK, and you can forget about it. 2) Csound is not loading the portmidi module because it fails to find one or more library files that portmidi depends on. This could be because the installer is missing one of these or because there is another related bug in the installer. That could be the case, although we would have heard about it. But, if this is the case, you should upgrade to 6.05 and see if it fixes your problem, because 6.04 is old and it is not possible for me to check if it is wrong or not, and it would not be helpful, anyway, to waste time there. Regards ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 8 Sep 2015, at 10:43, Tim Mortimer |
Date | 2015-09-08 12:10 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Hi Victor Everything re $OPCODE6DIR64 & -z behaves as you suggest... so perhaps the build dependencies are the issue I will install 6.05 tomorrow & see what happens. Should I uninstall 6.04 first? or can i overwrite the installation on Mac using the supplied .dmg? cheers -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743472.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 12:13 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
No need to uninstall. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 8 Sep 2015, at 12:10, Tim Mortimer |
Date | 2015-09-08 15:07 |
From | Tim Mortimer |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Hi (Victor) Curiousity got the better of me, & i updated & now it seems to be working, transmitting on the IAC driver with the -Q0 flag ... It's past my bedtime, there are a few other minor issues coming up with the installation that i now report FYI.... setting the paths to the STK opcodes being the most likely point of interest (i don't have Jack installed, is that why the other messages are popping up? cheers MacUserookNo162:~ macuser$ csound /Users/macuser/Documents/csound/Lib/real\ time/chord\ dispenser\ -\ MIDI.csd virtual_keyboard real time MIDI plugin for Csound Error: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. 0dBFS level = 32768.0 Csound version 6.05 (double samples) Jun 8 2015 libsndfile-1.0.25 WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/libjacko.dylib' (-1) WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/libjackTransport.dylib' (-1) WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/librtjack.dylib' (-1) UnifiedCSD: /Users/macuser/Documents/csound/Lib/real time/chord dispenser - MIDI.csd STARTING FILE Creating options Creating orchestra Creating score Error: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. rtaudio: PortAudio module enabled ... using callback interface rtmidi: PortMIDI module enabled Elapsed time at end of orchestra compile: real: 0.014s, CPU: 0.010s sorting score ... ... done Elapsed time at end of score sort: real: 0.015s, CPU: 0.010s 0: IAC Driver IAC Bus 1 (portmidi) PortMIDI: selected output device 0: 'IAC Driver IAC Bus 1' (CoreMIDI) --Csound version 6.05 (double samples) Jun 8 2015 graphics suppressed, ascii substituted 0dBFS level = 1.0 ftable 1: etc ... -- View this message in context: http://csound.1045644.n5.nabble.com/sending-MIDI-out-rtmidi-via-the-IAC-Driver-on-Mac-OSX-tp5743454p5743481.html Sent from the Csound - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 15:12 |
From | jpff |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
In the next releaae the stk message says warning not error Without jack installed it cannot load those plugins. Harmless. Personally I just delete thejack libraries as I do not have jack either ==John ff ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-08 15:24 |
From | Victor Lazzarini |
Subject | Re: sending MIDI out -+rtmidi via the IAC Driver on Mac OSX |
Just ignore the STK warnings, they are silenced now in the latest code. If you don’t have Jack installed, the warnings will show, but you can ignore them. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 8 Sep 2015, at 15:07, Tim Mortimer |