WebMIDI | Simple Web MIDI API in and out for some Livid Controllers | Audio Utils library

 by   LividInstruments JavaScript Version: Current License: MIT

kandi X-RAY | WebMIDI Summary

kandi X-RAY | WebMIDI Summary

WebMIDI is a JavaScript library typically used in Audio, Audio Utils applications. WebMIDI has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Simple Web MIDI API in and out for some Livid Controllers
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              WebMIDI has a low active ecosystem.
              It has 19 star(s) with 0 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of WebMIDI is current.

            kandi-Quality Quality

              WebMIDI has 0 bugs and 0 code smells.

            kandi-Security Security

              WebMIDI has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              WebMIDI code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              WebMIDI is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              WebMIDI releases are not available. You will need to build from source code and install.
              WebMIDI saves you 11 person hours of effort in developing the same functionality from scratch.
              It has 33 lines of code, 0 functions and 5 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebMIDI
            Get all kandi verified functions for this library.

            WebMIDI Key Features

            No Key Features are available at this moment for WebMIDI.

            WebMIDI Examples and Code Snippets

            No Code Snippets are available at this moment for WebMIDI.

            Community Discussions

            QUESTION

            How to switch a stream of events between "output devices" in rxjs
            Asked 2021-Apr-03 at 06:44

            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:44

            This (or something close) should work.

            Source https://stackoverflow.com/questions/66927284

            QUESTION

            JS - Calling class methods inside of callback function
            Asked 2021-Jan-31 at 17:38

            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:38

            WebMidi.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.

            Source https://stackoverflow.com/questions/65968515

            QUESTION

            How do I make an object returned by the browser globally available then set a function as a property?
            Asked 2020-Aug-11 at 19:15

            I am trying to access MIDI inputs in a ClojureScript project, using something like, in JS:

            ...

            ANSWER

            Answered 2020-Jul-05 at 07:24

            QUESTION

            How do I handle a standard .then style callback in clojurescript?
            Asked 2020-Jul-03 at 07:59

            Suppose I wanted to ask something of the browser, like this JS example:

            ...

            ANSWER

            Answered 2020-Jul-03 at 07:59

            You have various options: then is just a function, so you can just use (.then ..). If the thenable 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

            Source https://stackoverflow.com/questions/62709926

            QUESTION

            why is requestMIDIAccess working locally but not remote?
            Asked 2020-Apr-13 at 21:30

            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:30

            navigator.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.

            Source https://stackoverflow.com/questions/61196127

            QUESTION

            Clearing MIDI output buffer
            Asked 2020-Feb-02 at 05:03

            Using the Web MIDI API, I can send some messages:

            ...

            ANSWER

            Answered 2020-Feb-02 at 05:03

            It 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.

            Source https://stackoverflow.com/questions/59991783

            QUESTION

            The Web MIDI API is not supported by your browser - Google Chrome on Mac - when code is run locally
            Asked 2020-Jan-12 at 02:41

            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.

            https://codepen.io/teropa/pen/JLjXGK

            ...

            ANSWER

            Answered 2020-Jan-12 at 02:41

            I'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:

            Source https://stackoverflow.com/questions/59676881

            QUESTION

            How to get web midi output controller to work?
            Asked 2019-Dec-15 at 04:28

            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:28

            The 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:

            Source https://stackoverflow.com/questions/59332185

            QUESTION

            WebMidi.js outputs is empty
            Asked 2018-Aug-30 at 08:01

            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:01

            To 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:

            Source https://stackoverflow.com/questions/51110657

            QUESTION

            Webmidi js does not play a sound on browser
            Asked 2017-Apr-11 at 14:23

            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:23

            Midi 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.

            Source https://stackoverflow.com/questions/43347012

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install WebMIDI

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/LividInstruments/WebMIDI.git

          • CLI

            gh repo clone LividInstruments/WebMIDI

          • sshUrl

            git@github.com:LividInstruments/WebMIDI.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Audio Utils Libraries

            howler.js

            by goldfire

            fingerprintjs

            by fingerprintjs

            Tone.js

            by Tonejs

            AudioKit

            by AudioKit

            sonic-pi

            by sonic-pi-net

            Try Top Libraries by LividInstruments

            LiveRemoteScripts

            by LividInstrumentsPython

            Bitwig

            by LividInstrumentsJavaScript

            Livid-Online-Editor

            by LividInstrumentsJavaScript

            WebMIDI-BaseSeq

            by LividInstrumentsJavaScript

            wa_waveform

            by LividInstrumentsJavaScript