mirror of
				https://github.com/alsa-project/alsa-tools.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	 603e129bc5
			
		
	
	
		603e129bc5
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			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
 |