Closed simonbahr closed 2 years ago
Ah, this is an interesting one, thanks. You're sort of right but actually handle-ties already checks for chords vs. single pitches and handles them accordingly. What you've got here (and I guess somehow none of the regression tests have hit this yet) are chord objects with single pitches--that's where it broke :/
If it's OK with you I'll include this whole piece in the regression tests so that no code breaks the new functionality.
In any case: an easy fix and you'll find your piece now works with the michael branch
Thank you, Michael!! You can of course include this in the regression tests.
Great, thanks Simon!
The function pitch= is only defined for pitch-objects or for one pitch-object and one chord-object. For comparing chords, the function chord= is defined. However, when generating an sc-object using make-slippery-chicken (in a very ordinary way), sc tries to call pitch= with two chord objects sometimes. (I believe it happens when checking ties.) Therefore, pitch= should e.g. become a synonym to chord= (or replace it entirely, if there is no specific reason for keeping chord=). An example: