fix typeerror in lead-sheet with acc and ambitus turned on, reported by Piotr Komorowski