Mercurial > hg > sonic-visualiser
view deploy/osx/deploy.sh @ 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 | 1e63105fc82d |
children | 2d48532a074b |
line wrap: on
line source
#!/bin/bash set -e # Execute this from the top-level directory of the project (the one # that contains the .app bundle). Supply the name of the .app bundle # as argument (the target will use $app.app regardless, but we need # to know the source) source="$1" dmg="$2" if [ -z "$source" ] || [ ! -d "$source" ] || [ -z "$dmg" ]; then echo "Usage: $0 <source.app> <target-dmg-basename>" echo " e.g. $0 MyApplication.app MyApplication" echo " Version number and .dmg will be appended automatically," echo " but the .app name must include .app" exit 2 fi app=`basename "$source" .app` set -u version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` stem=${version%%-*} case "$stem" in [0-9].[0-9]) bundleVersion="$version".0 ;; [0-9].[0-9].[0-9]) bundleVersion="$version" ;; *) echo "Error: Version stem $stem (of version $version) is neither two- nor three-part number" ;; esac echo echo "Copying in frameworks and plugins from Qt installation directory." deploy/osx/copy-qt.sh "$app" || exit 2 echo echo "Fixing up paths." deploy/osx/paths.sh "$app" echo echo "Copying in qt.conf to set local-only plugin paths." echo "Make sure all necessary Qt plugins are in $source/Contents/plugins/*" echo "You probably want platforms/, accessible/ and imageformats/ subdirectories." cp deploy/osx/qt.conf "$source"/Contents/Resources/qt.conf echo echo "Copying in plugin load checker helper." cp checker/plugin-checker-helper.app/Contents/MacOS/plugin-checker-helper \ "$source"/Contents/MacOS/ echo echo "Writing version $bundleVersion in to bundle." echo "(This should be a three-part number: major.minor.point)" perl -p -e "s/SV_VERSION/$bundleVersion/" deploy/osx/Info.plist \ > "$source"/Contents/Info.plist echo "Done: check $source/Contents/Info.plist for sanity please" echo echo "Making target tree." volume="$app"-"$version" target="$volume"/"$app".app dmg="$dmg"-"$version".dmg mkdir "$volume" || exit 1 ln -s /Applications "$volume"/Applications cp README README.OSC COPYING CHANGELOG "$volume/" cp -rp "$source" "$target" echo "Done" deploy/osx/sign.sh "$volume" || exit 1 echo echo "Making dmg..." hdiutil create -srcfolder "$volume" "$dmg" -volname "$volume" && rm -r "$volume" echo "Done"