annotate plugin/PluginScan.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 2f628dc9a0b0
children c6bdf247016a
rev   line source
Chris@1178 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1178 2
Chris@1178 3 /*
Chris@1178 4 Sonic Visualiser
Chris@1178 5 An audio file viewer and annotation editor.
Chris@1178 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1178 7
Chris@1178 8 This program is free software; you can redistribute it and/or
Chris@1178 9 modify it under the terms of the GNU General Public License as
Chris@1178 10 published by the Free Software Foundation; either version 2 of the
Chris@1178 11 License, or (at your option) any later version. See the file
Chris@1178 12 COPYING included with this distribution for more information.
Chris@1178 13 */
Chris@1178 14
Chris@1178 15 #ifndef PLUGIN_SCAN_H
Chris@1178 16 #define PLUGIN_SCAN_H
Chris@1178 17
Chris@1178 18 #include <QStringList>
Chris@1178 19
Chris@1180 20 class KnownPlugins;
Chris@1178 21
Chris@1180 22 class PluginScan
Chris@1178 23 {
Chris@1178 24 public:
Chris@1178 25 static PluginScan *getInstance();
Chris@1178 26
Chris@1181 27 void scan(QString helperExecutablePath);
Chris@1179 28
Chris@1179 29 bool scanSucceeded() const;
Chris@1178 30
Chris@1180 31 enum PluginType {
Chris@1180 32 VampPlugin,
Chris@1180 33 LADSPAPlugin,
Chris@1180 34 DSSIPlugin
Chris@1180 35 };
Chris@1180 36 QStringList getCandidateLibrariesFor(PluginType) const;
Chris@1178 37
Chris@1178 38 QString getStartupFailureReport() const;
Chris@1178 39
Chris@1178 40 private:
Chris@1178 41 PluginScan();
Chris@1178 42 ~PluginScan();
Chris@1178 43 KnownPlugins *m_kp;
Chris@1179 44 bool m_succeeded;
Chris@1180 45
Chris@1180 46 class Logger;
Chris@1180 47 Logger *m_logger;
Chris@1178 48 };
Chris@1178 49
Chris@1178 50 #endif