简体   繁体   English

Arduino MIDI 控制器库

[英]Arduino MIDI controller library

I am trying to make a MIDI controller with three buttons (play, pause, and rec), a potentiometer and a fader.我正在尝试制作一个带有三个按钮(播放、暂停和录制)、一个电位计和一个推子的 MIDI 控制器。 I am using this library: https://github.com/tttapa/MIDI_controller我正在使用这个库: https : //github.com/tttapa/MIDI_controller

I can't manage to make the buttons do what I want (trigger the play button on my daw).我无法让按钮做我想做的事(在我的 daw 上触发播放按钮)。

Also when I tested the potentiometers with Hairless , I got this error:此外,当我使用Hairless测试电位器时,出现了以下错误:

Enter image description here在此处输入图片说明

This seems like a communication error.这似乎是一个通信错误。

The autor recommends to change to the new version .作者建议更换到新版本 If you want to stay with that version, try tweaking the set speeds on both sides.如果您想继续使用该版本,请尝试调整两侧的设定速度。

The default Hairless baud rate in Arduino is 115,200 symbols/second. Arduino 中的默认无毛波特率为 115,200 个符号/秒。

(You could change it in the settings, but I recommend just changing it in Hairless, as I think it is the default.) (您可以在设置中更改它,但我建议只在无毛中更改它,因为我认为这是默认设置。)

 MIDI_controller/src/Settings/Settings.h
     Line 10
  #define HAIRLESS_BAUD 115200

I had the same problem.我有同样的问题。

Your setup does not provide a MIDI input to the DAW.您的设置没有为 DAW 提供 MIDI 输入。 A DAW can read from a MIDI input but not from a serial port. DAW 可以从 MIDI 输入读取,但不能从串行端口读取。

The Arduino sends MIDI via serial port to the application "Hairless serial MIDI bridge" and Hairless sends that MIDI data with the correct baudrate to a MIDI input device. Arduino 通过串行端口将 MIDI 发送到应用程序“Hairless 串行 MIDI 桥接器”,Hairless 将具有正确波特率的 MIDI 数据发送到 MIDI 输入设备。

You can use http://www.tobias-erichsen.de/software/loopmidi.html for a MIDI input.您可以使用http://www.tobias-erichsen.de/software/loopmidi.html进行 MIDI 输入。

Have a look at https://piecesofpi.co.uk/arduino-usb-midi-the-easy-way/ for details.有关详细信息,查看https://piecesofpi.co.uk/arduino-usb-midi-the-easy-way/

Another option may be an Arduino with internal USB (Atmega 32U4) without the need for Hairless and the MIDI loopback (I have not tries this).另一种选择可能是带有内部 USB (Atmega 32U4) 的 Arduino,而无需 Hairless 和 MIDI 环回(我没有尝试过)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM