Mercurial > hg > mirex2013
changeset 39:51f28d65d7f6 abstract
Add OnsetsDS task
author | Chris Cannam |
---|---|
date | Fri, 06 Sep 2013 18:34:57 +0100 |
parents | e0d501dfae03 |
children | aa885f160838 |
files | audio_onset_detection/onsetsds/README.txt audio_onset_detection/onsetsds/onsetsds.sh audio_onset_detection/onsetsds/onsetsds.ttl audio_onset_detection/onsetsds/vamp-onsetsds.so |
diffstat | 4 files changed, 71 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 +
--- /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" +
--- /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: <http://www.w3.org/2001/XMLSchema#> . +@prefix vamp: <http://purl.org/ontology/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" ] .