# HG changeset patch # User Chris Cannam # Date 1378488897 -3600 # Node ID 51f28d65d7f66832aa71d12e56e2eb969621dc17 # Parent e0d501dfae03e5b3a2178f67218a8d5fc1a67c97 Add OnsetsDS task diff -r e0d501dfae03 -r 51f28d65d7f6 audio_onset_detection/onsetsds/README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio_onset_detection/onsetsds/README.txt Fri Sep 06 18:34:57 2013 +0100 @@ -0,0 +1,20 @@ +# +# MIREX 2013 submission +# +# Audio Onset Detection +# Vamp plugin version of OnsetsDS by Dan Stowell +# 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: + +./onsetsds.sh input.wav output.txt + diff -r e0d501dfae03 -r 51f28d65d7f6 audio_onset_detection/onsetsds/onsetsds.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio_onset_detection/onsetsds/onsetsds.sh Fri Sep 06 18:34:57 2013 +0100 @@ -0,0 +1,23 @@ +#!/bin/bash +# 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"/onsetsds.ttl \ + -w csv --csv-stdout --csv-separator ';' \ + "$infile" \ + | cut -d';' -f2 \ + > "$outfile" + diff -r e0d501dfae03 -r 51f28d65d7f6 audio_onset_detection/onsetsds/onsetsds.ttl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio_onset_detection/onsetsds/onsetsds.ttl Fri Sep 06 18:34:57 2013 +0100 @@ -0,0 +1,28 @@ +@prefix xsd: . +@prefix vamp: . +@prefix : <#> . + +:transform_plugin a vamp:Plugin ; + vamp:identifier "onsetsds" . + +:transform_library a vamp:PluginLibrary ; + vamp:identifier "vamp-onsetsds" ; + vamp:available_plugin :transform_plugin . + +:transform a vamp:Transform ; + vamp:plugin :transform_plugin ; + vamp:step_size "256"^^xsd:int ; + vamp:block_size "512"^^xsd:int ; + vamp:parameter_binding [ + vamp:parameter [ vamp:identifier "dftype" ] ; + vamp:value "3"^^xsd:float ; + ] ; + vamp:parameter_binding [ + vamp:parameter [ vamp:identifier "medspan" ] ; + vamp:value "11"^^xsd:float ; + ] ; + vamp:parameter_binding [ + vamp:parameter [ vamp:identifier "threshold" ] ; + vamp:value "0.5"^^xsd:float ; + ] ; + vamp:output [ vamp:identifier "onsets" ] . diff -r e0d501dfae03 -r 51f28d65d7f6 audio_onset_detection/onsetsds/vamp-onsetsds.so Binary file audio_onset_detection/onsetsds/vamp-onsetsds.so has changed