-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathz_config.ino
94 lines (89 loc) · 2.57 KB
/
z_config.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* The GNU GENERAL PUBLIC LICENSE (GNU GPLv3)
*
* Copyright (c) 2021 Marcel Licence
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Dieses Programm ist Freie Software: Sie können es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren
* veröffentlichten Version, weiter verteilen und/oder modifizieren.
*
* Dieses Programm wird in der Hoffnung bereitgestellt, dass es nützlich sein wird, jedoch
* OHNE JEDE GEWÄHR,; sogar ohne die implizite
* Gewähr der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License für weitere Einzelheiten.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>.
*/
/*
* z_config.ino
*
* Put all your project configuration here (no defines etc)
* This file will be included at the and can access all
* declarations and type definitions
*
* Created on: 12.05.2021
* Author: Marcel Licence
*/
/*
* adc to midi mapping
*/
struct adc_to_midi_s adcToMidiLookUp[ADC_TO_MIDI_LOOKUP_SIZE] =
{
{0, 0x10},
{1, 0x10},
{2, 0x10},
{3, 0x10},
{4, 0x10},
{5, 0x10},
{6, 0x10},
{7, 0x10},
};
struct adc_to_midi_mapping_s adcToMidiMapping =
{
adcToMidiLookUp,
sizeof(adcToMidiLookUp) / sizeof(adcToMidiLookUp[0]),
//Midi_ControlChange,
UsbMidi_SendControlChange,
};
struct midiMapping_s midiMapping =
{
Midi_SendRaw,
NULL, //App_NoteOn,
NULL, //App_NoteOff,
NULL, //Synth_PitchBend,
NULL, //Synth_ModulationWheel,
NULL,
0,
};
struct usbMidiMappingEntry_s usbMidiMappingEntries[] =
{
{
NULL,
Midi_SendShortMessage,
NULL,
NULL,
0x01,
},
};
struct usbMidiMapping_s usbMidiMapping =
{
NULL,
NULL,
usbMidiMappingEntries,
sizeof(usbMidiMappingEntries) / sizeof(usbMidiMappingEntries[0]),
};