1 Star 2 Fork 0

ZengYL/ScMIDI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
const.h 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
ZengYL 提交于 2022-04-30 03:34 . V1.1(A)
#ifndef CONST_H
#define CONST_H
#include <QVector>
constexpr auto version = "A";
constexpr uchar IGN = 1;
//以下数据来自https://scratch.mit.edu/projects/282814322/
//乐器映射
const QVector<uchar> patchMap(
{1, 1, 2, 1, 2, 2, 1, 1, 19, 19, 17, 16, 19, 19, 19, 19,
3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 4,
6, 6, 7, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 7, 8, 8,
8, 8, 8, 8, 15, 15, 15, 8, 9, 9, 9, 9, 9, 9, 9, 9,
11, 11, 11, 11, 14, 10, 14, 10, 12, 12, 13, 13, 13, 13, 13, 13,
20, 3, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21,
21, 21, 7, 15, 16, 16, 18, 15, 4, 7, 19, 21, 19, IGN, 8, 11,
7, 7, 18, 19, IGN, 18, 21, 7, 5, IGN, 18, 13, 16, 18, 15, 18});
const QVector<uchar> drumMap({2, 2, 3, 1, 8, 1, 14, 6, 13, 6, 14, 5,
14, 13, 4, 13, 5, 4, 7, 7, 4, 11, 4, 17,
4, 13, 14, 13, 13, 14, 13, 14, 9, 10, 15, 15,
12, 12, 16, 16, 9, 10, 10, 18, 18, 12, 12});
//以下数据原创,自己测的
//音量调校
const QVector<uchar> patchVolFac({60, 85, 65, 45, 65, 80, 55, 30, 90, 55, 55,
60, 60, 60, 45, 31, 30, 25, 70, 15, 55});
const QVector<uchar> drumVolFac(
{60, 90, 55, 25, 64, 65, 62, 52, 43, 43, 55, 55, 80, 52, 65, 47, 40, 45});
#endif // CONST_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Zeng_YL/scmidi.git
git@gitee.com:Zeng_YL/scmidi.git
Zeng_YL
scmidi
ScMIDI
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385