How to use WebMidi in a JS Worker #291
Unanswered
nathanpaletat
asked this question in
Q&A
Replies: 2 comments
-
If I try import {WebMidi} from "https://cdn.jsdelivr.net/npm/webmidi@next/dist/esm/webmidi.esm.min.js"; inside my worker file console log : Uncaught SyntaxError: Cannot use import statement outside a module |
Beta Was this translation helpful? Give feedback.
0 replies
-
As far as I know, the Web MIDI API is not supported in workers. You can check out this thread for more details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have to use webmidi.js inside a javascript worker.
I try with importScripts("webmidi.iife.min.js") inside my worker file but I can't get 'WebMidi' object...
I don't find the way... please help me !
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions