annotate bq.pro @ 1231:b4fd38b40712 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 91a975d93f8f
children 65b8c009a9f2
rev   line source
Chris@1035 1
Chris@1035 2 TEMPLATE = lib
Chris@1035 3
Chris@1035 4 win32-g++ {
Chris@1035 5 INCLUDEPATH += sv-dependency-builds/win32-mingw/include
Chris@1035 6 LIBS += -Lsv-dependency-builds/win32-mingw/lib
Chris@1035 7 }
Chris@1035 8 win32-msvc* {
Chris@1035 9 INCLUDEPATH += sv-dependency-builds/win32-msvc/include
Chris@1035 10 LIBS += -Lsv-dependency-builds/win32-msvc/lib
Chris@1035 11 }
Chris@1035 12 mac* {
Chris@1035 13 INCLUDEPATH += sv-dependency-builds/osx/include
Chris@1035 14 LIBS += -Lsv-dependency-builds/osx/lib
Chris@1035 15 }
Chris@1035 16
Chris@1035 17 exists(config.pri) {
Chris@1035 18 include(config.pri)
Chris@1035 19 }
Chris@1035 20
Chris@1035 21 !exists(config.pri) {
Chris@1035 22
Chris@1035 23 CONFIG += release
Chris@1035 24 DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
Chris@1035 25
Chris@1059 26 DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_LIBSAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_RUBBERBAND HAVE_DATAQUAY HAVE_LIBLO HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO
Chris@1035 27
Chris@1035 28 LIBS += -lbz2 -lrubberband -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo
Chris@1035 29
Chris@1035 30 win* {
Chris@1059 31 DEFINES += USE_OWN_ALIGNED_MALLOC _USE_MATH_DEFINES
Chris@1035 32 LIBS += -lwinmm -lws2_32
Chris@1035 33 }
Chris@1035 34 macx* {
Chris@1114 35 DEFINES += HAVE_COREAUDIO MALLOC_IS_ALIGNED
Chris@1035 36 LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
Chris@1035 37 }
Chris@1035 38 }
Chris@1035 39
Chris@1035 40 CONFIG += staticlib warn_on stl exceptions c++11
Chris@1035 41 CONFIG -= qt
Chris@1035 42
Chris@1035 43 TARGET = bq
Chris@1035 44
Chris@1035 45 DEPENDPATH += bqvec bqresample bqaudioio bqvec/bqvec bqresample/bqresample bqaudioio/bqaudioio
Chris@1035 46 INCLUDEPATH += bqvec bqresample bqaudioio bqvec/bqvec bqresample/bqresample bqaudioio/bqaudioio
Chris@1035 47
Chris@1035 48 OBJECTS_DIR = o
Chris@1035 49
Chris@1035 50 HEADERS += \
Chris@1035 51 bqvec/bqvec/Allocators.h \
Chris@1035 52 bqvec/bqvec/Barrier.h \
Chris@1035 53 bqvec/bqvec/ComplexTypes.h \
Chris@1035 54 bqvec/bqvec/Restrict.h \
Chris@1035 55 bqvec/bqvec/RingBuffer.h \
Chris@1035 56 bqvec/bqvec/VectorOpsComplex.h \
Chris@1035 57 bqvec/bqvec/VectorOps.h \
Chris@1035 58 bqvec/pommier/neon_mathfun.h \
Chris@1035 59 bqvec/pommier/sse_mathfun.h \
Chris@1035 60 bqresample/bqresample/Resampler.h \
Chris@1035 61 bqresample/speex/speex_resampler.h \
Chris@1035 62 bqaudioio/bqaudioio/ApplicationPlaybackSource.h \
Chris@1035 63 bqaudioio/bqaudioio/ApplicationRecordTarget.h \
Chris@1035 64 bqaudioio/bqaudioio/AudioFactory.h \
Chris@1035 65 bqaudioio/bqaudioio/SystemAudioIO.h \
Chris@1035 66 bqaudioio/bqaudioio/SystemPlaybackTarget.h \
Chris@1035 67 bqaudioio/bqaudioio/SystemRecordSource.h \
Chris@1035 68 bqaudioio/src/DynamicJACK.h \
Chris@1035 69 bqaudioio/src/JACKAudioIO.h \
Chris@1035 70 bqaudioio/src/JACKPlaybackTarget.h \
Chris@1035 71 bqaudioio/src/JACKRecordSource.h \
Chris@1035 72 bqaudioio/src/PortAudioIO.h \
Chris@1035 73 bqaudioio/src/PortAudioPlaybackTarget.h \
Chris@1035 74 bqaudioio/src/PortAudioRecordSource.h \
Chris@1035 75 bqaudioio/src/PulseAudioIO.h \
Chris@1035 76 bqaudioio/src/PulseAudioPlaybackTarget.h
Chris@1035 77
Chris@1035 78 SOURCES += \
Chris@1035 79 bqvec/src/Allocators.cpp \
Chris@1035 80 bqvec/src/Barrier.cpp \
Chris@1035 81 bqvec/src/VectorOpsComplex.cpp \
Chris@1035 82 bqresample/src/Resampler.cpp \
Chris@1035 83 bqaudioio/src/AudioFactory.cpp \
Chris@1035 84 bqaudioio/src/JACKAudioIO.cpp \
Chris@1035 85 bqaudioio/src/JACKPlaybackTarget.cpp \
Chris@1035 86 bqaudioio/src/JACKRecordSource.cpp \
Chris@1035 87 bqaudioio/src/PortAudioIO.cpp \
Chris@1035 88 bqaudioio/src/PortAudioPlaybackTarget.cpp \
Chris@1035 89 bqaudioio/src/PortAudioRecordSource.cpp \
Chris@1035 90 bqaudioio/src/PulseAudioIO.cpp \
Chris@1035 91 bqaudioio/src/PulseAudioPlaybackTarget.cpp \
Chris@1035 92 bqaudioio/src/SystemPlaybackTarget.cpp \
Chris@1035 93 bqaudioio/src/SystemRecordSource.cpp
Chris@1035 94