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

Refresh input devices when new device is plugin (Node.js) #271

Open
djipco opened this issue May 10, 2022 Discussed in #257 · 1 comment
Open

Refresh input devices when new device is plugin (Node.js) #271

djipco opened this issue May 10, 2022 Discussed in #257 · 1 comment
Assignees
Labels
Context: Node.js Problem specific to Node.js Type: dependency Issue that cannot be resolved until a dependency is fixed

Comments

@djipco
Copy link
Owner

djipco commented May 10, 2022

Discussed in #257

Originally posted by jdlee May 2, 2022

I'm also having trouble getting this event to fire using the below code:

WebMidi.addListener("connected", e => {
console.log(e.port.name);
});

I was assuming that simply plugging in my midi controller and turning it on would get it to trigger, but maybe i misunderstand?

@djipco djipco added Type: dependency Issue that cannot be resolved until a dependency is fixed Context: Node.js Problem specific to Node.js labels May 10, 2022
@djipco djipco self-assigned this May 10, 2022
@djipco
Copy link
Owner Author

djipco commented May 10, 2022

WEBMIDI.js relies on the jazz-midi module to provide Web MIDI API support on the Node.js platform. It seems that jazz-midi does not dispatch statechange events as it should. We will have to wait for a fix in the dependency. Meanwhile, you can follow the relevant jazz-midi issue (#8) for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Context: Node.js Problem specific to Node.js Type: dependency Issue that cannot be resolved until a dependency is fixed
Projects
None yet
Development

No branches or pull requests

1 participant