mall fixes for drum mapping.

dev
Holger Wirtz 3 years ago
parent 09c4feb592
commit d272ef327f
  1. 174
      addon/SD/PERFORMANCE/0/drmmap.json
  2. 0
      addon/SD/PERFORMANCE/0/epiano.json
  3. 106
      addon/SD/PERFORMANCE/1/drmmap.json
  4. 106
      addon/SD/PERFORMANCE/2/drmmap.json
  5. 106
      addon/SD/PERFORMANCE/3/drmmap.json
  6. 106
      addon/SD/PERFORMANCE/4/drmmap.json
  7. 106
      addon/SD/PERFORMANCE/5/drmmap.json
  8. 106
      addon/SD/PERFORMANCE/6/drmmap.json
  9. 106
      addon/SD/PERFORMANCE/7/drmmap.json
  10. 106
      addon/SD/PERFORMANCE/8/drmmap.json
  11. 4
      config.h
  12. 2
      dexed_sd.cpp

@ -1,86 +1,106 @@
{ {
"type": [ "type": [
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0, 1,
0 1,
1,
1,
1,
1,
1
], ],
"in": [ "in": [
0, 36,
0, 37,
0, 38,
0, 39,
0, 40,
0, 41,
0, 42,
0, 43,
0, 44,
0, 45,
0, 46,
0, 47,
0, 48,
0, 49,
0, 50,
0, 51,
0, 52,
0, 53,
0 54,
55,
56,
57,
58,
59
], ],
"out": [ "out": [
0, 45,
0, 46,
0, 47,
0, 48,
0, 49,
0, 50,
0, 51,
0, 52,
0, 53,
0, 54,
0, 55,
0, 56,
0, 57,
0, 58,
0, 59,
0, 60,
0, 61,
0, 62,
0 63,
64,
65,
66,
67,
68
], ],
"channel": [ "channel": [
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0, 10,
0 10,
10,
10,
10,
10,
10
] ]
} }

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -0,0 +1,106 @@
{
"type": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"in": [
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59
],
"out": [
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"channel": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
]
}

@ -55,7 +55,7 @@
// sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h // sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h
//#define USB_MIDI_SYSEX_MAX 4104 //#define USB_MIDI_SYSEX_MAX 4104
#define VERSION "1.2.0a" #define VERSION "1.2.1"
//************************************************************************************************* //*************************************************************************************************
//* DEVICE SETTINGS //* DEVICE SETTINGS
@ -119,7 +119,7 @@
#endif #endif
// DEFAULT MIDI CHANNEL FOR DRUMSAMPLER // DEFAULT MIDI CHANNEL FOR DRUMSAMPLER
#define DRUM_MIDI_CHANNEL 10 #define DRUM_MIDI_CHANNEL 10
#define NUM_CUSTOM_MIDI_MAPPINGS 20 //Number of Custom Key, CC and Button Mappings #define NUM_CUSTOM_MIDI_MAPPINGS 24 //Number of Custom Key, CC and Button Mappings
// NUMBER OF SAMPLES IN DRUMSET // NUMBER OF SAMPLES IN DRUMSET
#if defined(ARDUINO_TEENSY41) #if defined(ARDUINO_TEENSY41)

@ -533,7 +533,7 @@ bool save_sd_drummappings_json(uint8_t number)
json = SD.open(filename, FILE_WRITE); json = SD.open(filename, FILE_WRITE);
if (json) if (json)
{ {
for (uint8_t i = 0; i < NUM_CUSTOM_MIDI_MAPPINGS - 1; i++) for (uint8_t i = 0; i < NUM_CUSTOM_MIDI_MAPPINGS; i++)
{ {
data_json["type"][i] = custom_midi_map[i].type; data_json["type"][i] = custom_midi_map[i].type;
data_json["in"][i] = custom_midi_map[i].in; data_json["in"][i] = custom_midi_map[i].in;

Loading…
Cancel
Save