We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ca253 commit f11366dCopy full SHA for f11366d
doc/MackieControl_zhCN.md
@@ -126,6 +126,18 @@ Mackie Control 使用 MIDI 通道压力事件控制电平表值。
126
当通道压力值 % 16 等于 14 时,设置电平过载指示。
127
当通道压力值 % 16 等于 15 时,清除电平过载指示。
128
129
+## Mackie 字符格式
130
+你可以参考如下代码转换 ASCII 字符为 Mackie 字符:
131
+```cpp
132
+uint8_t charToMackie(char c) {
133
+ if (c >= 'a' && c <= 'z') { return static_cast<uint8_t>((c - 'a') + 1); }
134
+ else if (c >= 'A' && c <= 'Z') { return static_cast<uint8_t>((c - 'A') + 1); }
135
+ else if (c >= '0' && c <= '9') { return static_cast<uint8_t>((c - '0') + 0x30); }
136
+
137
+ return 0x20;
138
+}
139
+```
140
141
## 参考文档
142
[mackie-control-monitor](https://github.com/tony-had/mackie-control-monitor)
143
[V2Mackie](https://github.com/versioduo/V2Mackie)
0 commit comments