justinlatimer / node-midi

A node.js wrapper for RtMidi providing MIDI I/O

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to set custom names for inputs and outputs?

crstffr opened this issue · comments

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

+1

same issue here.