a better way to strip note mappings

I don't know why I didn't think of this before.