关于 Arduino <Control_Surface.h> 库的问题

问题描述

我正在按照 中的示例制作带有 4*4 按钮垫的 MIDI 控制器,代码如下:

#include <Control_Surface.h>

USBMIDI_Interface midi;

using namespace MIDI_Notes;
const AddressMatrix<4,4> addresses = {{
  {note(C,4),note(Db,note(D,note(Eb,4)},{note(E,note(F,note(Gb,note(G,{note(Ab,note(A,note(Bb,note(B,{note(C,5),5)},}};

NoteButtonMatrix<4,4> buttonmatrix = {
  {0,1,2,3},// row pins
  {4,5,6,7},// column pins
  addresses,// address matrix
  CHANNEL_1,// channel and cable number
};

void setup() {
  Control_Surface.begin();
}

void loop() {
  Control_Surface.loop();
}

我正在使用名为“MIDI-OX”的应用程序测试是否有任何MIDI信号,我的情况是推送时没有反应;当我将整个行和列作为一个midi音符测试按钮时,我确定电路没有连接问题。

请问我的代码有什么问题?非常感谢!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)