使用 Arduino 通过 USB 发送 MIDI

发布于 2024-08-08 02:11:56 字数 501 浏览 4 评论 0 原文

我有兴趣制作一个基于 Arduino 的 MIDI 控制器来与我的计算机对话。查看 Arduino MIDI 的其他示例(例如,使用 Arduino 的 MIDI 输出 ),它们似乎都连接了专用的 5 针 DIN。这是有道理的,因为这是将键盘、扩展器和音序器连接在一起的原始电缆。

但是,我想将 MIDI 发送到我的电脑。只需将 5 针 DIN 插入转换盒,该转换盒通过 USB 连接到我的电脑。我已经有一根 USB 电缆将 Arduino 连接到我的 PC。那么为什么我不能使用这个呢?

我假设阻止我的是这些转换盒都带有知道如何处理通过 USB 传入的信号的驱动程序。然而,比如说,我计算机上的虚拟合成器不会期望或知道如何处理通过串行端口传入的原始字节。那么,是否有与这些驱动程序相当的标准或免费版本可供我用于我自己的项目?或者,如果没有,写一个需要什么?我在哪里可以找到更多相关信息?

I'm interested in making an Arduino based MIDI controller to talk to my computer. Looking at other examples of Arduino MIDI (for example, MIDI Output using an Arduino), they all seem to wire up a dedicated 5 pin DIN. Which makes sense as this is the original cable to connect keyboards, expanders and sequencers together.

However, I want to send MIDI to my PC. A 5-pin DIN is just going to have to be plugged into a conversion box which connects to my PC via USB. And I already have a USB cable to connect my Arduino to my PC. So why can't I just use this?

I'm assuming what would stop me is that these conversion boxes all come with drivers which know how to handle the signal coming in over USB. Whereas, say, a virtual synthesizer on my computer wouldn't expect or know how to handle raw bytes coming in via the serial port. So is there a standard or free equivalent to these drivers that I could use for my own project? Or, if not, what would it take to write one? Where could I find out more about this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

再可℃爱ぅ一点好了 2024-08-15 02:11:56

我发现将便宜的(6 美元)MIDI-USB 接口直接嵌入到我的 Arduino 项目中会更容易。 快速而肮脏的 Arduino MIDI Over USB解释了如何操作。

还有一些我将旧计算器变成 Arduino USB-MIDI 控制器的图片计算器 MIDI USB 控制器

我希望这有帮助。

I found it was easier to just embed a cheap ($6) MIDI-USB interface right into my Arduino projects. Quick and Dirty Arduino MIDI Over USB explains how.

There are also some pictures of an old calculator I turned into an Arduino USB-MIDI controller in Calculator MIDI USB Controller.

I hope that helps.

你的呼吸 2024-08-15 02:11:56

我们为此开发了 OSHW Arduino Shield http://openpipe.cc/products/midi- USB盾/
提供源代码和原理图。
希望有帮助!

We've developed an OSHW Arduino Shield for that http://openpipe.cc/products/midi-usb-shield/
Source code and schematics available.
Hope it helps!

冰葑 2024-08-15 02:11:56

您可能需要使用 checkSpikenzielabs 串行 - MIDI 转换器。它看起来正是您正在寻找的东西。它将输入的串行数据转换为 MIDI 数据。所以在Arduino端,照常发送串口数据即可,而在PC端接收MIDI数据。

You may want to use checkSpikenzielabs Serial - MIDI Converter. It looks exactly what you're looking for. It converts incomming serial data to MIDI data. So on the Arduino side, just send serial data as usual, and receive MIDI data on PC side.

献世佛 2024-08-15 02:11:56

我们构建了一些模块来轻松制作您自己的 Midi 设备
看看 e-licktronic

我们使用 Hairless 将串行转换为 MIDI
这是一个非常简单的软件

We built some module to make your own Midi device easily
just have a look e-licktronic

We use Hairless to convert Serial to MIDI
it's a very simple software

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文