alsa-tools/envy24control/midi.h
Takashi Iwai 603e129bc5 envy24control: enhanced mapping of midi controller
From: Dirk Jagdmann <doj@cubic.org>

Hello,

this patch adds a command line option to select a better mapping from
midi controller values to dB sliders. The default stays as a linear
mapping, which has the disadvantage, that a sensible area to adjust your
volume (which ist mostly in the range of 0..-12dB) is in the upper
1/10th of your midi controller. This patch adds a map, which consists of
two linear functions, so that the upper half of your midi controller
controls values from 0..-12dB, the lower half then controls -13..-96dB.
2005-08-03 13:52:13 +00:00

13 lines
312 B
C

#ifndef MIDI__H
#define MIDI__H
#include <gdk/gdk.h>
int midi_init(char *appname, int channel, int midi_enhanced);
int midi_close();
void midi_maxstreams(int);
int midi_controller(int c, int v);
void midi_process(gpointer data, gint source, GdkInputCondition condition);
int midi_button(int b, int v);
#endif