changeset 15:bd1482e8c459

Add BeatRoot Vamp plugin task
author Chris Cannam
date Mon, 02 Sep 2013 15:56:43 +0100
parents 0309fc159946
children e8d3c68863f9
files audio_beat_tracking/beatroot-vamp/README.txt audio_beat_tracking/beatroot-vamp/beatroot-vamp.sh audio_beat_tracking/beatroot-vamp/beatroot-vamp.ttl audio_beat_tracking/qm-tempotracker/README.txt
diffstat 4 files changed, 63 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/audio_beat_tracking/beatroot-vamp/README.txt	Mon Sep 02 15:56:43 2013 +0100
@@ -0,0 +1,19 @@
+#
+# MIREX 2013 submission
+#
+# Audio Beat Tracking
+# BeatRoot Vamp plugin by Simon Dixon and Chris Cannam
+# Prepared by Chris Cannam, chris.cannam@eecs.qmul.ac.uk
+
+# Dependencies
+
+- Sonic Annotator v1.0
+  http://code.soundsoftware.ac.uk/projects/sonic-annotator/files
+
+- Typical Unix/GNU shell commands
+
+# How to run
+
+In a terminal window run:
+
+./beatroot-vamp.sh input.wav output.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/audio_beat_tracking/beatroot-vamp/beatroot-vamp.sh	Mon Sep 02 15:56:43 2013 +0100
@@ -0,0 +1,22 @@
+# runs sonic annotator using the specified transform file (-t)
+#   input file: $1
+#   output file: $2
+
+mydir=`dirname "$0"`
+infile="$1"
+outfile="$2"
+
+if [ t"$infile" = "t" ] || [ t"$outfile" = "t" ]; then
+    echo "Usage: $0 infile.wav outfile.txt"
+    exit 2
+fi
+
+echo "Processing input WAV file $infile, writing results to $outfile..." 1>&2
+
+VAMP_PATH="$mydir" sonic-annotator \
+    -t "$mydir"/beatroot-vamp.ttl \
+    -w csv --csv-stdout --csv-separator ';' \
+    "$infile" \
+    | cut -d';' -f2 \
+    > "$outfile"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/audio_beat_tracking/beatroot-vamp/beatroot-vamp.ttl	Mon Sep 02 15:56:43 2013 +0100
@@ -0,0 +1,16 @@
+@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .
+@prefix vamp:     <http://purl.org/ontology/vamp/> .
+@prefix :         <#> .
+
+:transform_plugin a vamp:Plugin ;
+    vamp:identifier "beatroot" .
+
+:transform_library a vamp:PluginLibrary ;
+    vamp:identifier "beatroot-vamp" ;
+    vamp:available_plugin :transform_plugin .
+
+:transform a vamp:Transform ;
+    vamp:plugin :transform_plugin ;
+    vamp:step_size "441"^^xsd:int ; 
+    vamp:block_size "2048"^^xsd:int ; 
+    vamp:output [ vamp:identifier "beats" ] .
--- a/audio_beat_tracking/qm-tempotracker/README.txt	Mon Sep 02 15:52:37 2013 +0100
+++ b/audio_beat_tracking/qm-tempotracker/README.txt	Mon Sep 02 15:56:43 2013 +0100
@@ -2,16 +2,18 @@
 # MIREX 2013 submission
 #
 # Audio Beat Tracking
-# Luis Figueira, luis.figueira@eecs.qmul.ac.uk
+# Prepared by Luis Figueira, luis.figueira@eecs.qmul.ac.uk
 
 # Dependencies
 
-- Sonic annotator 1.0
+- Sonic Annotator v1.0
   http://code.soundsoftware.ac.uk/projects/sonic-annotator/files
 
+- Typical Unix/GNU shell commands
+
 # How to run
 
-In a terminal windon/console/shell run:
+In a terminal window run:
 
-./qm-tempotracker.sh %input %output
+./qm-tempotracker.sh input.wav output.txt