diff --git a/AugmentedNet/score_parser.py b/AugmentedNet/score_parser.py index 098c8e85..71cf0f57 100644 --- a/AugmentedNet/score_parser.py +++ b/AugmentedNet/score_parser.py @@ -37,7 +37,14 @@ def _m21Parse(f, fmt=None): - return music21.converter.parse(f, format=fmt) + s = music21.converter.parse(f, format=fmt) + perc = [ + p + for p in s.parts + if list(p.recurse().getElementsByClass("PercussionClef")) + ] + s.remove(perc, recurse=True) + return s def from_tsv(tsv, sep="\t"):