annotate plugin/api/alsa/sound/asequencer.h @ 1196:c7b9c902642f spectrogram-minor-refactor

Fix threshold in spectrogram -- it wasn't working in the last release. There is a new protocol for this. Formerly the threshold parameter had a range from -50dB to 0 with the default at -50, and -50 treated internally as "no threshold". However, there was a hardcoded, hidden internal threshold for spectrogram colour mapping at -80dB with anything below this being rounded to zero. Now the threshold parameter has range -81 to -1 with the default at -80, -81 is treated internally as "no threshold", and there is no hidden internal threshold. So the default behaviour is the same as before, an effective -80dB threshold, but it is now possible to change this in both directions. Sessions reloaded from prior versions may look slightly different because, if the session says there should be no threshold, there will now actually be no threshold instead of having the hidden internal one. Still need to do something in the UI to make it apparent that the -81dB setting removes the threshold entirely. This is at least no worse than the previous, also obscured, magic -50dB setting.
author Chris Cannam
date Mon, 01 Aug 2016 16:21:01 +0100
parents da6937383da8
children 48e9f538e6e9
rev   line source
Chris@0 1 /* DSSI ALSA compatibility library
Chris@0 2 *
Chris@0 3 * This library provides for Mac OS X the ALSA snd_seq_event_t handling
Chris@0 4 * necessary to compile and run DSSI. It was extracted from alsa-lib 1.0.8.
Chris@0 5 */
Chris@0 6
Chris@0 7 /*
Chris@0 8 * Main header file for the ALSA sequencer
Chris@0 9 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl>
Chris@0 10 * (c) 1998-1999 by Jaroslav Kysela <perex@suse.cz>
Chris@0 11 *
Chris@0 12 *
Chris@0 13 * This program is free software; you can redistribute it and/or modify
Chris@0 14 * it under the terms of the GNU General Public License as published by
Chris@0 15 * the Free Software Foundation; either version 2 of the License, or
Chris@0 16 * (at your option) any later version.
Chris@0 17 *
Chris@0 18 * This program is distributed in the hope that it will be useful,
Chris@0 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@0 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@0 21 * GNU General Public License for more details.
Chris@0 22 *
Chris@0 23 * You should have received a copy of the GNU General Public License
Chris@0 24 * along with this program; if not, write to the Free Software
Chris@0 25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Chris@0 26 *
Chris@0 27 */
Chris@0 28 #ifndef __SOUND_ASEQUENCER_H
Chris@0 29 #define __SOUND_ASEQUENCER_H
Chris@0 30
Chris@0 31 #define SNDRV_SEQ_EVENT_SYSEX 130 /* system exclusive data (variable length) */
Chris@0 32
Chris@0 33 #define SNDRV_SEQ_EVENT_LENGTH_FIXED (0<<2) /* fixed event size */
Chris@0 34 #define SNDRV_SEQ_EVENT_LENGTH_VARIABLE (1<<2) /* variable event size */
Chris@0 35
Chris@0 36 #define SNDRV_SEQ_EVENT_LENGTH_MASK (3<<2)
Chris@0 37
Chris@0 38 #endif /* __SOUND_ASEQUENCER_H */