Yesterday I had to plug in my keyboard to the computer and wasn't sure if it was working. How do I test? Well, I had to look up an older post, copy and paste some code to the console... what a drag.
昨天我不得不将键盘插入计算机,不确定是否可以正常工作。 我该如何测试? 好吧,我不得不查找一个较旧的帖子,将一些代码复制并粘贴到控制台中……真是太麻烦了。
I though it would be cool to have a page where you can test midi devices without touching any dirty filthy half-baked console code.
虽然有一个页面可以测试Midi设备,而无需触碰任何肮脏的,半生不熟的控制台代码,但我很酷。
Hence https://www.onlinemusictools.com/webmiditest/ was born. A quick and dirty half-baked tool.
因此https://www.onlinemusictools.com/webmiditest/诞生了。 快速又脏的半熟工具。
Here's a demonstration in a video:
这是视频中的演示:
The code is pretty simple. You find one input device and listen to its onmidimessage
events. They you find one output device and call its send()
method with an array of three values.
代码很简单。 您找到一个输入设备并听其onmidimessage
事件。 他们找到一个输出设备,并使用三个值的数组调用其send()
方法。
For more info see this previous post.
有关更多信息,请参见上一篇文章。
Tell your friends about this post on Facebook and Twitter
在Facebook和Twitter上告诉您的朋友有关此帖子的信息