uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
wah.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 _WAH_H
24 #define _WAH_H
25 
26 
27 //---------------- includes ----------------//
28 #include <stdint.h>
29 
30 
31 //---------------- constants ----------------//
33 #define MIDI_NOTE_ENABLE_WAH 42
34 
35 
36 
37 //---------------- data types ----------------//
38 
39 
40 //---------------- functions and procedures ----------------//
41 void enable_wah(bool enable);
42 bool exec_enable(const char* command);
43 bool exec_speed(const char* command);
44 bool exec_tap(const char* command);
45 bool exec_waveform(const char* command);
46 void handle_midi_cc(midi_value_t controller, midi_value_t value);
47 void handle_midi_note_off(midi_value_t value, midi_value_t velocity);
48 void handle_midi_note_on(midi_value_t value, midi_value_t velocity);
49 void handle_switch(void);
50 void init_wah_module(void);
51 void update_wah_pwm(void);
52 
53 
54 //---------------- EOF ----------------//
55 #endif // _WAH_H
56 
void enable_wah(bool enable)
Definition: wah.c:68
uint8_t midi_value_t
Type for valid MIDI values [0..127].
Definition: midi.h:56
void handle_midi_note_on(midi_value_t value, midi_value_t velocity)
Definition: wah.c:154
bool exec_tap(const char *command)
Definition: wah.c:100
void handle_midi_cc(midi_value_t controller, midi_value_t value)
Definition: wah.c:143
void update_wah_pwm(void)
Definition: wah.c:188
void handle_midi_note_off(midi_value_t value, midi_value_t velocity)
Definition: wah.c:148
bool exec_enable(const char *command)
Definition: wah.c:75
bool exec_waveform(const char *command)
Definition: wah.c:106
void handle_switch(void)
Definition: wah.c:160
void init_wah_module(void)
Definition: wah.c:174
bool exec_speed(const char *command)
Definition: wah.c:86