Digigurdy-baz
|
Macros | |
#define | WHITE_OLED |
Enables SD1306 display support, do not use with BLUE_OLED. More... | |
#define | BLUE_OLED |
Enables SSH1106 display support, do not use with WHITE_OLED. More... | |
#define | BLUE_OLED |
Enables SSH1106 display support, do not use with WHITE_OLED. More... | |
#define | USE_TRIGGER |
Enables WAV Trigger support. More... | |
#define | USE_TRIGGER |
Enables WAV Trigger support. More... | |
#define | USE_TSUNAMI |
Enables Tsunami support. More... | |
#define | USE_GEARED_CRANK |
Enables geared-crank support. More... | |
#define | LED_KNOB |
Enables an LED buzz indicator on LED_PIN. More... | |
#define | USE_PEDAL |
Enables the accessory/vibrato pedal on PEDAL_PIN. More... | |
#define | USE_PEDAL |
Enables the accessory/vibrato pedal on PEDAL_PIN. More... | |
#define | ALLOW_COMBO_MODE |
Setting this option allows both MIDI-OUT and Trigger/Tsunami use simultaneously. More... | |
#define | ALLOW_COMBO_MODE |
Setting this option allows both MIDI-OUT and Trigger/Tsunami use simultaneously. More... | |
#define | REV4_MODE |
Setting this option enables EX pins 7-10, and SPI2 display. More... | |
#define | REV4_MODE |
Setting this option enables EX pins 7-10, and SPI2 display. More... | |
#define | __TSUNAMI_USE_SERIAL1__ |
The Serial port to use on the Teensy unit for the Tsunami. More... | |
#define | __WT_USE_SERIAL5__ |
The Serial port to use on the Teensy unit for the Trigger. More... | |
Variables | |
const String | EXTRA_LINE = " Rev4.0 Test Build " |
This is a freeform line displayed on the About screen. More... | |
const int | TSUNAMI_OUT = 0 |
The audio output channel used by the Tsunami unit. More... | |
const int | LED_PIN = 40 |
Pin used for the LED buzz indicator, if LED_KNOB is enabled. More... | |
const int | PEDAL_PIN = 38 |
Pin used for the accessory pedal, if USE_PEDAL is enabled. More... | |
const float | PEDAL_MAX_V = 658.0 |
The max voltage reported by the accessory pedal. More... | |
const int | pin_array [] |
The ordered layout of the keybox keys/buttons. More... | |
const int | num_keys = 24 |
The number of keys on the keybox. More... | |
const int | X_INDEX = 0 |
The position of the "X" key on the keybox. More... | |
const int | A_INDEX = num_keys - 2 |
The position of the "A" key on the keybox. More... | |
const int | B_INDEX = num_keys - 5 |
The position of the "B" key on the keybox. More... | |
const int | BUTTON_1_INDEX = 1 |
The position of the "1" key on the keybox. More... | |
const int | BUTTON_2_INDEX = 3 |
The position of the "2" key on the keybox. More... | |
const int | BUTTON_3_INDEX = 4 |
The position of the "3" key on the keybox. More... | |
const int | BUTTON_4_INDEX = 6 |
The position of the "4" key on the keybox. More... | |
const int | BUTTON_5_INDEX = 8 |
The position of the "5" key on the keybox. More... | |
const int | BUTTON_6_INDEX = 9 |
The position of the "6" key on the keybox. More... | |
const int | TPOSE_UP_INDEX = num_keys - 1 |
The position of the "T-UP" key on the keybox. More... | |
const int | TPOSE_DN_INDEX = num_keys - 3 |
The position of the "T-DOWN" key on the keybox. More... | |
const int | CRANK_PIN = 15 |
The pin running to the crank. More... | |
const int | BUZZ_PIN = 16 |
The analog pin running to the buzz potentiometer/knob. More... | |
const int | BIG_BUTTON_PIN = 39 |
The pin running to the arcade, "auto-crank" button. More... | |
const int | EX1_PIN = 19 |
The pin to the EX1 button. More... | |
const int | EX2_PIN = 13 |
The pin to the EX2 button. More... | |
const int | EX3_PIN = 12 |
The pin to the EX3 button. More... | |
const int | EX4_PIN = 41 |
The pin to the EX4 button. More... | |
const int | EX5_PIN = 40 |
The pin to the EX5 button. More... | |
const int | EX6_PIN = 17 |
The pin to the EX6 button. More... | |
const int | EX7_PIN = 14 |
The pin to the EX7 button. More... | |
const int | EX8_PIN = 18 |
The pin to the EX8 button. More... | |
const int | EX9_PIN = 22 |
The pin to the EX9 button. More... | |
const int | EX10_PIN = 23 |
The pin to the EX10 button. More... | |
These variables/definitions are compile-time configuration options.
#define __TSUNAMI_USE_SERIAL1__ |
The Serial port to use on the Teensy unit for the Tsunami.
#define __WT_USE_SERIAL5__ |
The Serial port to use on the Teensy unit for the Trigger.
#define ALLOW_COMBO_MODE |
Setting this option allows both MIDI-OUT and Trigger/Tsunami use simultaneously.
Set this only if the MIDI-OUT and Trigger/Tsunami Tx pins are different!
#define ALLOW_COMBO_MODE |
Setting this option allows both MIDI-OUT and Trigger/Tsunami use simultaneously.
Set this only if the MIDI-OUT and Trigger/Tsunami Tx pins are different!
#define BLUE_OLED |
Enables SSH1106 display support, do not use with WHITE_OLED.
#define BLUE_OLED |
Enables SSH1106 display support, do not use with WHITE_OLED.
#define LED_KNOB |
Enables an LED buzz indicator on LED_PIN.
#define REV4_MODE |
Setting this option enables EX pins 7-10, and SPI2 display.
meant for rev4 boards.
#define REV4_MODE |
Setting this option enables EX pins 7-10, and SPI2 display.
meant for rev4 boards.
#define USE_GEARED_CRANK |
Enables geared-crank support.
Disable for optical-crank support
#define USE_PEDAL |
Enables the accessory/vibrato pedal on PEDAL_PIN.
#define USE_PEDAL |
Enables the accessory/vibrato pedal on PEDAL_PIN.
#define USE_TRIGGER |
Enables WAV Trigger support.
Cannot be used with USE_TSUNAMI simultaneously
#define USE_TRIGGER |
Enables WAV Trigger support.
Cannot be used with USE_TSUNAMI simultaneously
#define USE_TSUNAMI |
Enables Tsunami support.
Cannot be used with USE_TRIGGER simultaneously
#define WHITE_OLED |
Enables SD1306 display support, do not use with BLUE_OLED.
const int A_INDEX = num_keys - 2 |
The position of the "A" key on the keybox.
This is intended to be the upper rightmost key.
const int B_INDEX = num_keys - 5 |
The position of the "B" key on the keybox.
This is intended to be the upper key second from the right.
const int BIG_BUTTON_PIN = 39 |
The pin running to the arcade, "auto-crank" button.
const int BUTTON_1_INDEX = 1 |
The position of the "1" key on the keybox.
This is intended to be the leftmost key on the bottom.
const int BUTTON_2_INDEX = 3 |
The position of the "2" key on the keybox.
This is intended to be the 2nd key from the left on the bottom.
const int BUTTON_3_INDEX = 4 |
The position of the "3" key on the keybox.
This is intended to be the 3rd key from the left on the bottom.
const int BUTTON_4_INDEX = 6 |
The position of the "4" key on the keybox.
This is intended to be the 4th key from the left on the bottom.
const int BUTTON_5_INDEX = 8 |
The position of the "5" key on the keybox.
This is intended to be the 5th key from the left on the bottom.
const int BUTTON_6_INDEX = 9 |
The position of the "6" key on the keybox.
This is intended to be the 6th key from the left on the bottom.
const int BUZZ_PIN = 16 |
The analog pin running to the buzz potentiometer/knob.
const int CRANK_PIN = 15 |
The pin running to the crank.
const int EX10_PIN = 23 |
The pin to the EX10 button.
const int EX1_PIN = 19 |
The pin to the EX1 button.
const int EX2_PIN = 13 |
The pin to the EX2 button.
const int EX3_PIN = 12 |
The pin to the EX3 button.
const int EX4_PIN = 41 |
The pin to the EX4 button.
const int EX5_PIN = 40 |
The pin to the EX5 button.
const int EX6_PIN = 17 |
The pin to the EX6 button.
const int EX7_PIN = 14 |
The pin to the EX7 button.
const int EX8_PIN = 18 |
The pin to the EX8 button.
const int EX9_PIN = 22 |
The pin to the EX9 button.
const String EXTRA_LINE = " Rev4.0 Test Build " |
This is a freeform line displayed on the About screen.
const int LED_PIN = 40 |
Pin used for the LED buzz indicator, if LED_KNOB is enabled.
const int num_keys = 24 |
The number of keys on the keybox.
This must/should be set to the length of pin_array[] - 1.
const float PEDAL_MAX_V = 658.0 |
The max voltage reported by the accessory pedal.
This should be set to the max voltage your pedal will output.
const int PEDAL_PIN = 38 |
Pin used for the accessory pedal, if USE_PEDAL is enabled.
const int pin_array[] |
The ordered layout of the keybox keys/buttons.
index 0 is unused and would theoretically not affect the note being played.
const int TPOSE_DN_INDEX = num_keys - 3 |
The position of the "T-DOWN" key on the keybox.
This is intended to be the bottom second key from the right.
const int TPOSE_UP_INDEX = num_keys - 1 |
The position of the "T-UP" key on the keybox.
This is intended to be the bottom right key.
const int TSUNAMI_OUT = 0 |
The audio output channel used by the Tsunami unit.
0 == 1L, 1 == 1R, etc.
const int X_INDEX = 0 |
The position of the "X" key on the keybox.
Note that the first key position is 0. This is the index in pin_array - 1!