Mercurial > hg > sonic-annotator
view tests/test-midi-writer/test-midi-writer.sh @ 200:f35bbb3e4d41 sonic-annotator-1.2
Change of tack: rename the JSON writer to JAMS. It's simpler than having a JSON writer with a mandatory flag to tell it what sort of JSON to write.
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 17:51:03 +0100 |
parents | 082c3f21f49e |
children |
line wrap: on
line source
#!/bin/bash . ../include.sh infile=$audiopath/20sec-silence.wav tmpmidi=$mypath/tmp_1_$$.mid trap "rm -f $tmpmidi" 0 for output in notes-regions curve-vsr; do flag="" $r -d "$testplug:$output" -w midi --midi-one-file "$tmpmidi" --midi-force "$infile" 2>/dev/null || \ fail "Failed to run for plugin $testplug with output $output and no additional flags" midicompare "$tmpmidi" "$mypath/expected/$output.mid" || \ faildiff_od "Output differs from expected for output $output" "$tmpmidi" "$mypath/expected/$output.mid" done exit 0