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

Add an event to flock.midi.access that notifies when the connected ports have changed #12

Open
colinbdclark opened this issue Jan 22, 2019 · 0 comments

Comments

@colinbdclark
Copy link
Contributor

The Web MIDI API provides a onstatechange event that will fire whenever the connected set of ports change—for example, when a MIDI device is connected or disconnected from the computer.

Flocking does not provide an event that can notify clients when this occurs. As a result, the flock.ui.midiSelector, for example, is unable to refresh itself on the fly when ports come or go.

We should add a new onPortsChanged event to the System component, which will fire whenever its underlying access object notifies of changes.

colinbdclark referenced this issue in lichen-community-systems/Flocking Jan 22, 2019
Updates the flock.ui.midiSelector component to automatically rerender itself when ports change.
Minor bug fixing and namespacing in flock.ui.midiSelector.
colinbdclark referenced this issue in lichen-community-systems/Flocking Jan 22, 2019
* master:
  Fixes gh-274: Correctly generates an ID for the portSelector selectbox. Also namespaces some listeners and improves the configurability of labels.
@colinbdclark colinbdclark transferred this issue from lichen-community-systems/Flocking Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant