Questions tagged [web-midi]

The Web MIDI API allows web applications to use MIDI input and output devices on the client system. Web applications will be able to send and receive MIDI messages. It is intended to enable non-music MIDI applications as well as music ones.

The Web MIDI API allows web applications to use MIDI input and output devices on the client system. Web applications will be able to send and receive MIDI messages. It is intended to enable non-music MIDI applications as well as music ones.

79 questions
1
vote
2 answers

Using Web MIDI API on Android Chrome 52

I have worked successfully with Web MIDI API and Chrome 52 on my Mac laptop - for example recognizing connected MIDI instruments. But Web MIDI API does not seem to work or recognize connected instruments when I use Chrome 52 in my Samsung Galaxy S5…
argiepiano
  • 141
  • 6
1
vote
1 answer

Is it possible to use quad-channels reverbs in Web Audio Api? (make stereo sound)

is it possible to be used in channelized sound quad-reverb types? And use the 4-channel reverbs (two stereo files: LR and RL).Does Web Audio Api support quad mode? I use Web Midi Api for work. And my scheme at this moment allows me connect one…
1
vote
1 answer

Check if access to Web MIDI API is already granted?

If access to MIDI is requested via navigator.requestMIDIAccess({sysex: true}) the user has to confirm the access in a modal in Chrome and Opera. Is there a way to check if a user already has allowed access to MIDI without triggering the modal? The…
solitud
  • 683
  • 5
  • 15
1
vote
1 answer

Sending a MIDI tuning request with the WebMIDI API results in error

I'm trying to send a MIDI tune request message (246 or 0xF6) with the Web MIDI API and I keep getting a Message is incomplete error in Chrome and Opera. Here is the problematic code: navigator.requestMIDIAccess().then(function (interface) { …
djip.co
  • 997
  • 10
  • 17
1
vote
3 answers

Web Midi - Listing Device Names

I have created a simple script to list connected midi input devices. This works fine in Chrome on Windows but fails on Chrome on Mac with 'Cannot read property name of undefined'. This also happens if I copy and paste the code from the w3c.org…
ezero
  • 1,230
  • 3
  • 12
  • 27
1
vote
1 answer

Why does no sound emit from this soundfont midi player replication?

I am attempting to replicate the functionality of this soundfont based midi file player with verbatim javascript and html. Despite no errors (except a favicon 404 error), no sounds emit when playing a midi file. However, events are displayed in the…
ballade4op52
  • 2,142
  • 5
  • 27
  • 42
1
vote
1 answer

Lengthening MIDI.js piano note duration

I'm using MIDI.js to build a music app that allows users to play piano through their keyboard. Everything is working, but the problem I'm having is that the notes (called with MIDI.noteOn) only last 3 seconds, then just cut off. I'm trying to find a…
saemchou
  • 11
  • 1
  • 3
1
vote
2 answers

Web MIDI callback function only works when logged to console

I'm building an experimental Web MIDI app which graphically displays the notes you're playing on an external MIDI keyboard to the browser. I'm having a strange error where the following callback only works if I log it to the console: //…
Anson Kao
  • 5,256
  • 4
  • 28
  • 37
1
vote
1 answer

How to discover midi keyboard in web midi api?

reference: Browsers in 2013 with Web MIDI API? I'm currently running Chrome 34.0.1847.116 on OS 10.9.2 and experimenting with the Web Midi API. After enabling chrome://flags/#enable-web-midi, I'm able to get a midiAccess object by pasting the…
Mike Ellis
  • 1,120
  • 1
  • 12
  • 27
1
vote
3 answers

MIDI Programming for web

I'm trying to build a web program that allows the input of electric guitar's or other midi input. my question is, "is this possible", and what programming language would you prefer? thank in advance
0
votes
0 answers

Add Webmidi as global to my p5.js typescript project

I'm building a p5.js sketch without any framework/bundler. I just have a sketch.ts file, provided in this p5-typescript-starter project. I see that they do some declarations and fancy typescript stuff in the global.d.ts file that enables me to use…
ANimator120
  • 2,556
  • 1
  • 20
  • 52
0
votes
1 answer

How can I send a joystick MIDI CC 1 Modulation Wheel and Pitch Wheel messages with Web MIDI API?

There is the code for sending a note to midiOutput: navigator.requestMIDIAccess() .then(function(midiAccess) { const outputs = midiAccess.outputs.values(); const inputs = midiAccess.inputs.values(); console.log(outputs); for(const…
mr_blond
  • 1,586
  • 2
  • 20
  • 52
0
votes
1 answer

Schedule Web MIDI Events with precision using WAAClock lib

I have read and implemented in the past something similar to what Chris Wilson described in his article "A Tale of Two Clocks": https://web.dev/audio-scheduling/ I recently found WAAClock which in theory implements the same…
Danny Bullo
  • 65
  • 1
  • 5
0
votes
0 answers

WebMidi - how to call removeListener?

I am using WebMidi in a react app and can't figure out how to selectively remove listeners. I have to remove all of the listeners for a particular input. Does anybody know how to remove listeners one at a time? I need to leave a listener for cc's…
ohthepain
  • 2,004
  • 3
  • 19
  • 30
0
votes
0 answers

Javascript Midi change track for individual notes one after another

So I want to change every individual midi note into a different midi track one after the other. Here is a jsfiddle of what I have so far: https://jsfiddle.net/alexybaddie/5ca7r9g0/84/ But the general code I want some help with lies in this section…
Alexandra
  • 5
  • 4