3 if ! test -f wscript || ! test -d gtk2_ardour || ! test -d libs/qm-dsp/;then
4 echo "This script needs to run from ardour's top-level src tree"
8 if test -z "`which rsync`" -o -z "`which git`"; then
9 echo "this script needs rsync and git"
19 trap "rm -rf $TMP" EXIT
22 git clone git://github.com/c4dm/qm-vamp-plugins.git
23 VAMPPLUGS="$TMP/qm-vamp-plugins/plugins"
25 cd "$ASRC/libs/vamp-plugins/"
26 for src in *.cpp *.h; do
27 if test -f "$VAMPPLUGS/$src"; then
28 cp "$VAMPPLUGS/$src" ./
33 ## MSVC patch on top of qm-vamp-plugins-v1.7.1-10-g76bc879
35 diff --git b/libs/vamp-plugins/BarBeatTrack.cpp a/libs/vamp-plugins/BarBeatTrack.cpp
36 index 8d0b887c3..a85c924c4 100644
37 --- b/libs/vamp-plugins/BarBeatTrack.cpp
38 +++ a/libs/vamp-plugins/BarBeatTrack.cpp
39 @@ -25,7 +25,7 @@ using std::vector;
44 +#if !defined(__GNUC__) && !defined(_MSC_VER)
48 diff --git b/libs/vamp-plugins/OnsetDetect.cpp a/libs/vamp-plugins/OnsetDetect.cpp
49 index a2c4042c0..c2b6d68db 100644
50 --- b/libs/vamp-plugins/OnsetDetect.cpp
51 +++ a/libs/vamp-plugins/OnsetDetect.cpp
53 COPYING included with this distribution for more information.
57 +#include <ardourext/float_cast.h>
59 #include "OnsetDetect.h"
61 #include <dsp/onsets/DetectionFunction.h>
64 git add BarBeatTrack.cpp OnsetDetect.cpp