Digigurdy-baz
Loading...
Searching...
No Matches
eeprom_values.h
Go to the documentation of this file.
1#ifndef EEPROM_VALUES_H
2#define EEPROM_VALUES_H
3
4// This file holds memory addresses within the EEPROM used by digigurdy-baz.
5//
6// EEPROM memory is rated for at least 100,000 writes (reads are harmless).
7// If you end up burning out one of the memory locations, you can shift them around
8// by redefining the assingments here.
9
10// The slots below should be arranged so that they are at least 20 apart. This is
11// to provide room for future upgrades. There may be two more channels later, as well
12// as a second value (volume) for each channel.
13//
14// Teensy3.5 has 4096 bytes of EEPROM, so there's lots of room here.
15static const int EEPROM_SLOT1 = 0;
16static const int EEPROM_SLOT2 = 20;
17static const int EEPROM_SLOT3 = 40;
18static const int EEPROM_SLOT4 = 60;
19
20// These define what the values are within the "slots". You'd add this to one of the
21// SLOTs above to get the actual address in EEPROM.
22static const int EEPROM_HI_MEL = 0;
23static const int EEPROM_LO_MEL = 1;
24static const int EEPROM_DRONE = 2;
25static const int EEPROM_TROMP = 3;
26static const int EEPROM_BUZZ = 4;
27static const int EEPROM_TPOSE = 5;
28static const int EEPROM_CAPO = 6;
29static const int EEPROM_HI_MEL_VOL = 7;
30static const int EEPROM_LOW_MEL_VOL = 8;
31static const int EEPROM_DRONE_VOL = 9;
32static const int EEPROM_TROMP_VOL = 10;
33static const int EEPROM_BUZZ_VOL = 11;
34static const int EEPROM_KEYCLICK_VOL = 12;
35static const int EEPROM_HI_MEL_GROS = 13;
36static const int EEPROM_LOW_MEL_GROS = 14;
37static const int EEPROM_TROMP_GROS = 15;
38static const int EEPROM_DRONE_GROS = 16;
39static const int EEPROM_BUZZ_GROS = 17;
40
41// This int saves the play screen type. 0 = note + staff, 1 = note only;
42static const int EEPROM_DISPLY_TYPE = 100;
43
44// This int saves how saved tunings are conveyed to the midi controller.
45// 0 = nothing is done (default and old style)
46// 1 = Conveyed as a Program Control message on channel 1
47// ... Reserved for future use
48static const int EEPROM_SCENE_SIGNALLING = 101;
49
50// This int saved the LED on/off preference.
51// 0 = no buzz LED
52// 1 = LED buzz
53static const int EEPROM_BUZZ_LED = 102;
54
55// These three ints hold the last-chosen EX1/2/3/4/5/6 button functions.
56// See ExButton::fn_choice_screen() for the numbering used.
57static const int EEPROM_EX1 = 103;
58static const int EEPROM_EX2 = 104;
59static const int EEPROM_EX3 = 105;
60static const int EEPROM_EX4 = 106;
61static const int EEPROM_EX5 = 107;
62static const int EEPROM_EX6 = 108;
63static const int EEPROM_EX7 = 109;
64static const int EEPROM_EX8 = 110;
65static const int EEPROM_EX9 = 111;
66static const int EEPROM_EX10 = 112;
67static const int EEPROM_EXBB = 113;
68
69static const bool EEPROM_USE_SOLFEGE = 114;
70
71// This determines which output to use besides usbMIDI
72// 0 = MIDI-OUT
73// 1 = Trigger/Tsunami
74// 2 = Both
75static const int EEPROM_SEC_OUT = 115;
76
77static const int EEPROM_MEL_VIBRATO = 116;
78
79// These hold transpose steps, if they exist.
80static const int EEPROM_EX1_TSTEP = 117;
81static const int EEPROM_EX2_TSTEP = 118;
82static const int EEPROM_EX3_TSTEP = 119;
83static const int EEPROM_EX4_TSTEP = 120;
84static const int EEPROM_EX5_TSTEP = 121;
85static const int EEPROM_EX6_TSTEP = 122;
86static const int EEPROM_EX7_TSTEP = 123;
87static const int EEPROM_EX8_TSTEP = 124;
88static const int EEPROM_EX9_TSTEP = 125;
89static const int EEPROM_EX10_TSTEP = 126;
90static const int EEPROM_EXBB_TSTEP = 127;
91
92#endif