Started to implement sysex voice upload.

pull/4/head
Holger Wirtz 5 years ago
parent 897a0fad25
commit c3532cbb32
  1. 25
      MicroDexed.ino
  2. 165
      doc/one_sysex_data.txt

@ -654,6 +654,31 @@ void handleSystemExclusive(byte * sysex, uint len)
Serial.print(F(", data_index = ")); Serial.print(F(", data_index = "));
Serial.println(data_index, DEC); Serial.println(data_index, DEC);
#endif #endif
}
else if (len == 163)
{
// 1 Voice bulk upload
#ifdef DEBUG
Serial.println(F("1 Voice bulk upload"));
#endif
if ((sysex[3] & 0x7f) != 0)
{
#ifdef DEBUG
Serial.println(F("E: Not a SysEx voice bulk upload."));
#endif
return;
}
if (((sysex[4] << 7) | sysex[5]) != 0x9b)
{
#ifdef DEBUG
Serial.println(F("E: Wrong length for SysEx voice bulk upload (not 155)."));
#endif
return;
}
} }
#ifdef DEBUG #ifdef DEBUG
else else

@ -0,0 +1,165 @@
SYSEX-Data[163]
240
67
0
0
1
27
73
75
5
0
99
99
92
0
49
0
0
0
0
7
0
0
84
0
2
0
12
77
54
0
47
98
98
36
0
49
0
0
0
0
2
0
5
99
0
2
0
3
99
74
10
0
98
98
36
0
98
0
0
0
0
5
0
1
84
0
2
0
10
83
15
10
47
99
92
0
0
49
0
0
0
0
0
0
0
99
0
2
0
10
64
38
6
0
99
92
99
0
49
0
0
0
0
7
0
1
87
0
2
1
6
0
33
0
47
0
99
85
0
98
0
0
0
0
0
0
0
50
0
17
37
7
84
95
95
60
50
50
50
50
4
6
0
30
0
11
0
0
0
2
12
83
89
78
84
72
32
69
78
83
50
107
247
Loading…
Cancel
Save