uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
whammy.h
Go to the documentation of this file.
1 
4 /*
5  * Copyright 2015 Sebastian Neuser
6  *
7  * This file is part of the uMIDI firmware.
8  *
9  * The MIDI volume controller firmware is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * The uMIDI firmware is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with the uMIDI firmware. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef _WHAMMY_H
24 #define _WHAMMY_H
25 
26 
27 //---------------- includes ----------------//
28 #include <stdint.h>
29 #include "lib/gpio.h"
30 #include "lib/wave.h"
31 
32 
33 //---------------- constants ----------------//
34 
35 
36 //---------------- data types ----------------//
37 
40 {
78 };
79 
80 
81 //---------------- functions and procedures ----------------//
82 bool exec_pattern(const char* command);
83 bool exec_speed(const char* command);
84 bool exec_tap(const char* command);
85 void decrease_speed(void);
86 void increase_speed(void);
87 void init_whammy_module(void);
88 void select_next_pattern(void);
89 void select_previous_pattern(void);
90 void tap_tempo(void);
91 void toggle_sequencing(void);
92 
93 //---------------- EOF ----------------//
94 #endif // _WHAMMY_H
95 
First perfect fourth in 2oct mode.
Definition: whammy.h:58
void increase_speed(void)
Definition: whammy.c:173
Tritone in 1oct mode.
Definition: whammy.h:47
void toggle_sequencing(void)
Definition: whammy.c:199
void select_previous_pattern(void)
Definition: whammy.c:189
void init_whammy_module(void)
Definition: whammy.c:178
Waveform function generator.
GPIO configuration and service functions.
First tritone in 2oct mode.
Definition: whammy.h:59
Octave in 1oct mode.
Definition: whammy.h:53
Second minor sixth in 2oct mode.
Definition: whammy.h:73
Second octave in 2oct mode.
Definition: whammy.h:77
Unison, valid in every mode.
Definition: whammy.h:41
Second tritone in 2oct mode.
Definition: whammy.h:71
Minor seventh in 1oct mode.
Definition: whammy.h:51
Second major sixth in 2oct mode.
Definition: whammy.h:74
Second minor second in 2oct mode.
Definition: whammy.h:66
bool exec_tap(const char *command)
Definition: wah.c:100
Major second in 1oct mode.
Definition: whammy.h:43
First major seventh in 2oct mode.
Definition: whammy.h:64
whammy_note
Amplitudes that represent certain intervals on a DigiTech Whammy pedal.
Definition: whammy.h:39
Second perfect fourth in 2oct mode.
Definition: whammy.h:70
Major third in 1oct mode.
Definition: whammy.h:45
First major third in 2oct mode.
Definition: whammy.h:57
First minor third in 2oct mode.
Definition: whammy.h:56
First minor second in 2oct mode.
Definition: whammy.h:54
Second major seventh in 2oct mode.
Definition: whammy.h:76
void tap_tempo(void)
Definition: whammy.c:194
First octave in 2oct mode.
Definition: whammy.h:65
bool exec_pattern(const char *command)
Definition: whammy.c:148
Minor third in 1oct mode.
Definition: whammy.h:44
Second perfect fifth in 2oct mode.
Definition: whammy.h:72
Perfect fifth in 1oct mode.
Definition: whammy.h:48
Minor second in 1oct mode.
Definition: whammy.h:42
Major seventh in 1oct mode.
Definition: whammy.h:52
Second minor third in 2oct mode.
Definition: whammy.h:68
Second major third in 2oct mode.
Definition: whammy.h:69
void decrease_speed(void)
Definition: whammy.c:168
Major sixth in 1oct mode.
Definition: whammy.h:50
Perfect fourth in 1oct mode.
Definition: whammy.h:46
Minor sixth in 1oct mode.
Definition: whammy.h:49
First perfect fifth in 2oct mode.
Definition: whammy.h:60
First minor seventh in 2oct mode.
Definition: whammy.h:63
First minor sixth in 2oct mode.
Definition: whammy.h:61
bool exec_speed(const char *command)
Definition: wah.c:86
First major sixth in 2oct mode.
Definition: whammy.h:62
Second minor seventh in 2oct mode.
Definition: whammy.h:75
void select_next_pattern(void)
Definition: whammy.c:184
First major second in 2oct mode.
Definition: whammy.h:55
Second major second in 2oct mode.
Definition: whammy.h:67