Ability to set custom names for inputs and outputs?
crstffr opened this issue · comments
Christopher commented
Hello,
To anyone who may be able to help, I am looking for a way to set a custom name on the inputs and outputs that are created by RtMidi. I am using this library in multiple projects that run simultaneously and I cannot differentiate the connections because they all have the same name.
I see in the RtMidi source code that it has some support for setting a client name.
- The
openPort()
method appears to take an optionalportName
as a second argument
a. How can I pass this parameter from NodeMidi to RtMidi?
b. RtMidi.cpp#930 - There are also two methods that are not exposed via NodeMidi. I am not entirely clear on what the difference is, but perhaps one of them is what I am looking for.
a.setClientName()
in RtMidi.cpp#2064
b.setPortName()
in RtMidi.cpp#2072
I'm not at all familiar with CPP, Nan, uv, or v8 to make these changes, so I am looking for some help implementing this feature. Any help would be greatly appreciated.
Thanks for looking,
Chris
Fumiya A commented
+1
same issue here.