|
uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
|
Wah-wah module implementation. More...
#include <stdbool.h>#include <stdlib.h>#include <avr/wdt.h>#include <util/delay.h>#include "lib/adc.h"#include "lib/gpio.h"#include "lib/leds.h"#include "lib/math.h"#include "lib/midi.h"#include "lib/pwm.h"#include "lib/serial_communication.h"#include "lib/usb.h"#include "lib/wave.h"#include "config.h"#include "wah.h"
Functions | |
| static uint16_t | linear_function (uint8_t midi_value) |
| static void | toggle_wah (void) |
| void | enable_wah (bool enable) |
| bool | exec_enable (const char *command) |
| bool | exec_speed (const char *command) |
| bool | exec_tap (const char *command) |
| bool | exec_waveform (const char *command) |
| void | handle_midi_cc (midi_value_t controller, midi_value_t value) |
| void | handle_midi_note_off (midi_value_t note, midi_value_t velocity) |
| void | handle_midi_note_on (midi_value_t note, midi_value_t velocity) |
| void | handle_switch (void) |
| void | init_wah_module (void) |
| void | update_wah_pwm (void) |
Variables | |
| static struct wave | pwm_wave |
| static struct linear_range | pwm_range |
| static bool | enable_state = false |
Wah-wah module implementation.
| void enable_wah | ( | bool | enable | ) |
| bool exec_enable | ( | const char * | command | ) |
| bool exec_speed | ( | const char * | command | ) |
| bool exec_tap | ( | const char * | command | ) |
| bool exec_waveform | ( | const char * | command | ) |
| void handle_midi_cc | ( | midi_value_t | controller, |
| midi_value_t | value | ||
| ) |
| void handle_midi_note_off | ( | midi_value_t | note, |
| midi_value_t | velocity | ||
| ) |
| void handle_midi_note_on | ( | midi_value_t | note, |
| midi_value_t | velocity | ||
| ) |
| void handle_switch | ( | void | ) |
| void init_wah_module | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
| void update_wah_pwm | ( | void | ) |
|
static |
|
static |
|
static |
1.8.13