WebMIDI | Simple Web MIDI API in and out for some Livid Controllers | Audio Utils library
kandi X-RAY | WebMIDI Summary
kandi X-RAY | WebMIDI Summary
Simple Web MIDI API in and out for some Livid Controllers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebMIDI
WebMIDI Key Features
WebMIDI Examples and Code Snippets
Community Discussions
Trending Discussions on WebMIDI
QUESTION
I have one rxjs subject that is a stream of WebMidi notes (a note is an array of numbers), and another subject that is a stream of selected midi output devices:
...ANSWER
Answered 2021-Apr-03 at 06:44This (or something close) should work.
QUESTION
I'm currently having a problem and don't know how to solve it correctly.
I'm developing a web application with js using the WebMidi API.
I want to load all midi devices into a dropdown after WebMidi is loaded. As far as I understood it I have to pass the enable function of Webmidi a callback function:
...ANSWER
Answered 2021-Jan-31 at 17:38WebMidi.enable
is an asynchronous function, meaning it allows you to specify what to do once WebMidi
is enabled. The problem is that you're not using this functionality to full power.
Imagine you're the guy who shoots the gun to start a race: your code is the equivalent of shooting and turning your eyes away from the race but still wanting to know when the race ends. If you want to do something right after the race ends, better look at the race, right?
Right now, the constructor function starts the WebMidi.enable
race and immediately tries to fill the dropdown. That's not what you want - you want to fill the dropdown when the race ends.
To resolve your problem, make MidiListener.enable
take a callback function that gets executed when WebMidi.enable
is done without errors. This will allow you to do something right when WebMidi.enable
finishes.
QUESTION
I am trying to access MIDI inputs in a ClojureScript project, using something like, in JS:
...ANSWER
Answered 2020-Jul-05 at 07:24You can use set!
.
QUESTION
Suppose I wanted to ask something of the browser, like this JS example:
...ANSWER
Answered 2020-Jul-03 at 07:59You have various options: then
is just a function, so you can just use (.then ..
).
If the then
able is a Promise object, promesa https://cljdoc.org/d/funcool/promesa/5.1.0/doc/user-guide has a nice interop story.
It's also pretty simple to add some macro syntax sugar around promises, as I've done here: https://gist.github.com/beders/06eeb1d8f49de715c6bd2b84f634cff6
QUESTION
Playing around with this javascript library https://www.w3.org/TR/webmidi/#introduction I got some basic functionality working and I was happily able to send midi notes to my syntheseizer and hear it working!..
However, when I wanted to try out the exact same javascript code, but hosted remotely, I got this error:
...ANSWER
Answered 2020-Apr-13 at 21:30navigator.requestMIDIAccess()
is only available in a secure context, which means your remote host must serve your resources via HTTPS.
Resources served from localhost
are considered to be in a secure context, whether delivered via HTTPS or HTTP.
Connect to your remote host using HTTPS instead of HTTP and that should resolve the problem.
QUESTION
Using the Web MIDI API, I can send some messages:
...ANSWER
Answered 2020-Feb-02 at 05:03It is indeed not yet available. You can follow this issue to get updated of any advancements.
Note that Firefox has a flag to allow the Web Midi API, might worth a try to see if they do handle it.
QUESTION
Folks,
I am trying work on a simple Web MIDI app.
I already looked up and found out that Google Chrome is the only browser that supports this. So, I installed this but I still get this.
WebMidi could not be enabled Error: The Web MIDI API is not supported by your browser. at WebMidi.enable (webmidi.min.js:30) at script.js:430 (anonymous) @ script.js:432 WebMidi.enable @ webmidi.min.js:30 (anonymous) @ script.js:430 Promise.then (async) (anonymous) @ script.js:154
Mac - 10.15.2 Chrome - 79.0.3945.117
According to this link - https://www.midi.org/17-the-mma/99-web-midi , Chrome definitely has the support.
Important Note - If I were run the code directly on codepen, it works just fine. So the browser is working. But when I try to run locally, I get the error.
...ANSWER
Answered 2020-Jan-12 at 02:41I've used web-midi with Chromium and Opera on 10.12.6, so I wouldn't say that Chrome is the only browser that has web-midi.
With Opera I think I had to enable experimental features:
QUESTION
So I have a midi controller connected to my machine, and I have it playing successfully with Logic Pro X on a mac.
I'm trying with Web Midi API to send a note to this midi controller, as an output device with the hope that it'll trigger the midi controller which will in turn trigger the sound via Logic.
I'm using webmidi.js for this and I tried:
...ANSWER
Answered 2019-Dec-15 at 04:28The only way to do this I found was to create a virtual midi device as output, and use this virtual midi device as input in my daw. Then use the code above but select the output as this new virtual midi device.
Steps on Mac:
1. Audio Midi Setup -> Window -> Show Midi Studio.
2. In Midi Studio Double Click IAC Driver -> Create New Virtual Midi device with + Button on bottom left corner of screen. Check "Device is Online".
Go to DAW of your choice and change the input to this new midi device.
Now in javascript, using the code above, change to the new output:
QUESTION
I am trying to use WebMidi.js to play a note in the browser. I am using the code below which is mostly taken from the quick start guide.
...ANSWER
Answered 2018-Aug-30 at 08:01To use MIDI outputs to play a sound you would need to have a hardware or a software MIDI synthesizer with virtual MIDI ports running. You probably want to use AudioContext instead:
QUESTION
Hey I am using the webmidi js library to play midi music on click on the browser. https://www.npmjs.com/package/webmidi
I am using a very basic example from the library. Even though it seems that the connection works I can not here anything.
...ANSWER
Answered 2017-Apr-11 at 14:23Midi Through Port-0 is a dummy sequencer that doesn't make any sound. I assume you are running on a Linux machine - try the command aconnect -o to see a list of available MIDI outputs, find the device you are trying to play the MIDI notes through and select that one as your output.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WebMIDI
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page