Skip to content

Instantly share code, notes, and snippets.

@r9y9
Created April 21, 2020 12:48
Show Gist options
  • Save r9y9/ee120206edb9345ccec48fa6159ef7a4 to your computer and use it in GitHub Desktop.
Save r9y9/ee120206edb9345ccec48fa6159ef7a4 to your computer and use it in GitHub Desktop.
#!/bin/bash
NEUTRINO_DIR=~/sp/NEUTRINO
dst_dir=./sinsy_lab
mkdir -p $dst_dir/full
mkdir -p $dst_dir/mono
for f in musicxml/*.xml
do
name=$(basename $f)
lab_name=${name/.xml/.lab}
$NEUTRINO_DIR/bin/musicXMLtoLabel $f $dst_dir/full/${lab_name} $dst_dir/mono/${lab_name}
diff $dst_dir/full/${lab_name} pysinsy_lab/full/${lab_name}
diff $dst_dir/mono/${lab_name} pysinsy_lab/mono/${lab_name}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment