Commit fb9efa66 authored by Caleb Maclennan's avatar Caleb Maclennan

add script to convert MuseScore lilypad

parent b55911f6
#!/bin/zsh
hash mscore || exit
for score in $@; do
lilyout="${score%\.*}.ly"
sadeout="${score%\.*}-sade.ly"
mscore -o "$lilyout" "$score" >/dev/null &&
echo "Wrote $lilyout"
grep -v '^#' "$lilyout" |
sed 's/%.*//' |
sed '/^\s*$/d' |
pcregrep -v -M '^\\paper(\n*.*?\n*)*? \}' |
pcregrep -v -M '^\\header(\n*.*?\n*)*? \}' |
cat -s > "$sadeout" &&
echo "Wrote $sadeout"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment