Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use an external MIDI device as an input in the demo app #1

Open
jraoult opened this issue Apr 29, 2015 · 0 comments
Open

Comments

@jraoult
Copy link

jraoult commented Apr 29, 2015

I'm trying to use and external MIDI keyboard but the list of available input devices is not complete. Reading the code (https://github.com/jariseon/webdawplugins/blob/master/runtime/demo.html#L283) I can understand that if there is more than 1 device the first one is put in the correct section (inputs) but the remaining devices are incorrectly put in the outputs section.

You probably want something more along the lines of:

io.forEach( function (it, idx) {
  for (var itport = it.next(); !itport.done; itport = it.next())
    {
      var port = itport.value;
      var option = new Option(port.name);
      option.midiport = port;
      if (idx == 0) midiport_in.appendChild(option);
      else midiport_out.appendChild(option);
    }
});

Then, seems like the onmidiport function is not present but is expected to be executed every time the selection of input / output MIDI device changes. The input device is never actually updated and the virtual keyboard / arpeggiator stays set as the input.

@jraoult jraoult changed the title Input MIDI devices are incorrectly listed in the demo app Impossible to use an external MIDI device as an input in the demo app Apr 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant