changeset 9:e5970597e220

Add Segmentino task, update some READMEs
author Chris Cannam
date Mon, 02 Sep 2013 12:20:59 +0100
parents 1f244a1da67a
children 45cef77776d7
files audio_melody_extraction/cepstral-pitchtracker/README.txt structural_segmentation/segmentino/README.txt structural_segmentation/segmentino/segmentino.sh structural_segmentation/segmentino/segmentino.so structural_segmentation/segmentino/segmentino.ttl
diffstat 5 files changed, 72 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/audio_melody_extraction/cepstral-pitchtracker/README.txt	Mon Sep 02 10:10:18 2013 +0100
+++ b/audio_melody_extraction/cepstral-pitchtracker/README.txt	Mon Sep 02 12:20:59 2013 +0100
@@ -5,14 +5,14 @@
 
 # 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:
 
 ./ame_cep.sh input.wav output.txt
 
--- a/structural_segmentation/segmentino/README.txt	Mon Sep 02 10:10:18 2013 +0100
+++ b/structural_segmentation/segmentino/README.txt	Mon Sep 02 12:20:59 2013 +0100
@@ -0,0 +1,19 @@
+# MIREX 2013 submission
+#
+# Structural Segmentation
+# Segmentino by Matthias Mauch
+# 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:
+
+./segmentino.sh input.wav output.txt
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/structural_segmentation/segmentino/segmentino.sh	Mon Sep 02 12:20:59 2013 +0100
@@ -0,0 +1,34 @@
+# 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
+
+# Convert the Sonic Annotator format
+#
+# filename;starttime;duration;value;"label"
+#
+# to the lab format
+# 
+# starttime<TAB>endtime<TAB>label
+#
+# To ensure both start and end times have the same number of
+# significant digits, we'll do an addition in awk for both (hence
+# the $2+0 for start time)
+
+VAMP_PATH="$mydir" sonic-annotator \
+    -t segmentino.ttl \
+    -w csv --csv-stdout --csv-separator ";" \
+    "$infile" \
+    | awk -F';' '{ gsub(/\"/, ""); print $2+0"\t"$2+$3"\t"$5 }' \
+    > "$outfile"
+
Binary file structural_segmentation/segmentino/segmentino.so has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/structural_segmentation/segmentino/segmentino.ttl	Mon Sep 02 12:20:59 2013 +0100
@@ -0,0 +1,17 @@
+@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .
+@prefix vamp:     <http://purl.org/ontology/vamp/> .
+@prefix :         <#> .
+
+:transform_plugin a vamp:Plugin ;
+    vamp:identifier "segmentino" .
+
+:transform_library a vamp:PluginLibrary ;
+    vamp:identifier "segmentino" ;
+    vamp:available_plugin :transform_plugin .
+
+:transform a vamp:Transform ;
+    vamp:plugin :transform_plugin ;
+    vamp:step_size "512"^^xsd:int ; 
+    vamp:block_size "16384"^^xsd:int ; 
+    vamp:output [ vamp:identifier "segmentation" ] .
+