Manage your web application with the midi USB controller

I would like to connect a MIDI midi controller (88-key keyboard) and use the keys to control the web application.

I have seen people using arduino-based web-based robot control applications think this is possible?

Q1 is it possible? Or is it already done? Q2, if possible, can you describe the process? Q3 can you post links to any open source examples / libraries?

+4
source share
1 answer

Can you explain a little more about what you want to do? There would be several ways to do this.

  • Use your existing MIDI library to respond to MIDI events, and then send a series of keyboard keystrokes to do something.

  • Create a custom server that runs on your computer and talks to your device. Then you can connect to your "MIDI" server and send and receive data using sockets (i.e. you could create a controller surface in Flex or Silverlight if you want). I used this approach to create a MIDI controller application on an Android phone.

  • Create a website that will talk to your device. This would use almost the same methods as # 2. I really got this working with the ASP.NET website, it was a very simple proof of concept - you load a page and it plays a note on your MIDI device. With the library mentioned below, you pretty much just β€œopen” your device, and then listen to the data and transfer the data.

I created my own MIDI through the TCP / IP library based on this code sample in CodeProject: http://www.codeproject.com/KB/audio-video/midiwrapper.aspx .

I planned Open Sourcing that the code did not have time to prepare it. If you are interested, I could be sure that you post it somewhere.

0
source

Source: https://habr.com/ru/post/1334072/


All Articles