Csound Csound-dev Csound-tekno Search About

--Q and midi device numbers

Date2016-06-26 20:52
FromToby Shepard
Subject--Q and midi device numbers
I use csound from Cygwin with -Q to send midi events to VST hosts like Reaper and Finale.  Often, when trying out new software the devices will appear to Csound (portmidi) with different integers than before.  This causes me to edit my run scripts with the new number to make them work.  When I uninstall the new software, I have to edit all my scripts back to the original number to make them work again.

Is there a better way to deal with this, such as referring to the device by name instead of an integer?

Thanks!


Tobiah
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-06-27 09:49
FromVictor Lazzarini
SubjectRe: --Q and midi device numbers
You can run csound to query out devices using

csound --midi-devices=out  

and that will give you a list that you can parse in your script to get the
number for the device you want to use.

========================
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 26 Jun 2016, at 20:52, Toby Shepard  wrote:
> 
> I use csound from Cygwin with -Q to send midi events to VST hosts like Reaper and Finale.  Often, when trying out new software the devices will appear to Csound (portmidi) with different integers than before.  This causes me to edit my run scripts with the new number to make them work.  When I uninstall the new software, I have to edit all my scripts back to the original number to make them work again.
> 
> Is there a better way to deal with this, such as referring to the device by name instead of an integer?
> 
> Thanks!
> 
> 
> Tobiah
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here