|
Digigurdy-baz
|
#include <Arduino.h>Go to the source code of this file.
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 | 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 | 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 | BLUE_OLED |
| Enables SSH1106 display support, do not use with WHITE_OLED. More... | |
| #define | USE_TRIGGER |
| Enables WAV Trigger support. 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 | __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... | |
| #define | USE_PEDAL |
| Enables the accessory/vibrato pedal on PEDAL_PIN. More... | |
Variables | |
| const String | VERSION = "2.9.2" |
| const String | REL_DATE = "2023-02-05, v" + VERSION |
| 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 float | EXPRESSION_VMAX = 120.0 |
| The crank speed in RPMs at which expression volume will max out. More... | |
| const int | EXPRESSION_START = 90 |
| The minimum expression volume. More... | |
| const int | NUM_SPOKES = 80 |
| The number of "spokes" on the optical crank wheel. More... | |
| const float | V_THRESHOLD = 5.5 |
| The crank speed at which sound begins to play in RPMs. More... | |
| const int | SAMPLE_RATE = 1000 |
| The delay between crank samples in microseconds. More... | |
| const int | MAX_WAIT_TIME = 40000 |
| The maximum amount of time in microseconds to wait for crank movement. More... | |
| const float | DECAY_FACTOR = 0.00 |
| The multiplier applied to the velocity when no movement is detected. More... | |
| const int | BUZZ_MIN = 200 |
| The minimum duration of buzz sounds. More... | |
| const int | SPIN_SAMPLES = 700 |
| The number of voltage samples per update. More... | |
| const int | VOL_THRESHOLD = 5 |
| The lower voltage threshold for the crank to register motion. More... | |
| const int | MAX_SPIN = 7600 |
| The maximum "spin" value. More... | |
| const int | SPIN_WEIGHT = 2500 |
| The amount of spin to add when motion is detected. More... | |
| const int | SPIN_DECAY = 200 |
| The amount of spin to subtract when motion is not detected. More... | |
| const int | SPIN_THRESHOLD = 5001 |
| The amount of spin necessary to make sound. More... | |
| const int | SPIN_STOP_THRESHOLD = 1000 |
| The amount of spin below which sound stops. More... | |
| const int | BUZZ_SMOOTHING = 250 |
| The amount of buzz "smoothing" to start with when buzzing registers. More... | |
| const int | BUZZ_DECAY = 1 |
| The amount of buzz "smoothing" to subtract when buzzing is not registering. 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... | |
| const String REL_DATE = "2023-02-05, v" + VERSION |
| const String VERSION = "2.9.2" |