You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem related to this feature request.
Right now, the logic to process which events are sent by the player requires comparisons of the event names with a string or variables created by the user.
Problem
Describe the problem related to this feature request.
Right now, the logic to process which events are sent by the player requires comparisons of the event names with a string or variables created by the user.
See the React example into this repository:
web-midi-player/example/react/src/components/Player.js
Lines 5 to 8 in 6ce4785
web-midi-player/example/react/src/components/Player.js
Line 135 in 6ce4785
Strings like
'MIDI_PLAY'
or'MIDI_ERROR'
have to be typed or created by the user instead of imported as variables fromweb-midi-player
.Solution
What solution do you suggest to solve this problem?
Export all event names so that comparing which events are being fired is easier. Something like this:
The text was updated successfully, but these errors were encountered: