fbpx
Skip to main content

MIDI Forum

Leave midi devices ...
 
Notifications
Clear all

Leave midi devices usable for a desktop app for example?

9 Posts
3 Users
0 Reactions
9,397 Views
Patrice
Posts: 6
Active Member
Topic starter
 

Hello everyone, I've been writing an app for the Korg Kronos for a while now, I'm very happy with the API.

See https://www.youtube.com/user/superpno74

One thing still resists me:

When I launch the app, all the devices present remain unusable for an external app, even if I do not use them in my web app ...

Can someone confirm this behavior for me?

Can we free devices for external use?

Thank you in advance for all responses 😉

Regards, 🙂 🙂

Patrice.

 
Posted : 22/02/2021 10:09 am
Patrice
Posts: 6
Active Member
Topic starter
 

Sorry, I'm talking about the Web Midi API 🙂 🙂

 
Posted : 22/02/2021 10:19 am
Sema
 Sema
Posts: 179
Reputable Member
 

You can try to explicitly close the unused ports in your Web MIDI application.

 
Posted : 22/02/2021 11:27 am
Bavi_H
Posts: 266
Reputable Member
 

I've only played around with Web MIDI a little bit, but I believe Chrome on Windows has a bug: When a tab uses Web MIDI, it will use all the MIDI input and output devices on your system, preventing other apps from using them, until you close the tab -- it doesn't matter if your code closes the port using Web MIDI.

In July 2020 I tried to search if other people had this problem and found the following bug report that seems to describe the issue: https://bugs.chromium.org/p/chromium/issues/detail?id=471793

I haven't done any research on this issue since then, but the up-to-date Chrome on my Windows 8.1 computer still appears to have this bug.

 
Posted : 22/02/2021 1:05 pm
Patrice
Posts: 6
Active Member
Topic starter
 

Thank you very much for your answers, I tried closing the ports explicitly with no results.

I will test under my Mac mini to see.

I find this bug (if it is one) very invalidating for the API.
Weird that they didn't correct that.

I will report here the results of my tests under Chrome / Mac.

Thank you again for your posts.

Patrice.

 
Posted : 23/02/2021 12:13 am
Patrice
Posts: 6
Active Member
Topic starter
 

Well ...

It Works on Mac ...

This is a Windows problem ...

Under windows it does not work either under opera ... 🙁

We're gonna say it's a bug, eh?

Thank you for your attention .

Patrice;

 
Posted : 23/02/2021 1:48 am
Sema
 Sema
Posts: 179
Reputable Member
 

Try Firefox with the MIDI extension: https://addons.mozilla.org/en-US/firefox/addon/jazz-midi
It also requires the plugin: https://jazz-soft.net/download/Jazz-Plugin

 
Posted : 23/02/2021 7:19 am
Patrice
Posts: 6
Active Member
Topic starter
 

I tried firefox ...

Obviously he doesn't like my code that's not perfect enough for him at all.. 🙁 🙁

 
Posted : 24/02/2021 1:58 am
Sema
 Sema
Posts: 179
Reputable Member
 

If your code uses Web MIDI API, you can either include JZZ.js before your script: https://github.com/jazz-soft/JZZ
or install another plugin: https://addons.mozilla.org/en-US/firefox/addon/web-midi-api

 
Posted : 24/02/2021 9:12 pm
Share: