Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set custom names for inputs and outputs? #167

Open
crstffr opened this issue May 8, 2020 · 1 comment
Open

Ability to set custom names for inputs and outputs? #167

crstffr opened this issue May 8, 2020 · 1 comment
Labels

Comments

@crstffr
Copy link

crstffr commented May 8, 2020

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.

  1. The openPort() method appears to take an optional portName as a second argument
    a. How can I pass this parameter from NodeMidi to RtMidi?
    b. RtMidi.cpp#930
  2. 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

@yuis-ice
Copy link

+1

same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants