Chris Cannam wrote:
> Perhaps at the moment we should just list the suggested preferences in a
> big file somewhere.
Yes, this is a good idea. Even better would be a source-code comment
// PREFERENCE AUTO_COMBINE_RESTS
or maybe #ifdef PREFERNCE_AUTO_COMBINE_RESTS ?
I just hate keeping alternate files somewhere, when the source code will do
> > If you create this sequence:
> > 1/4 rest, 1/16 rest, 1/4 rest, 1/16 rest ...
> > the way the combine code "requires" the new rest to be a valid musical
> > length prevents these from being combined.
> Well, that's reasonable enough. If you combined the first two or
> the last two, or combined all four, you'd end up with something you
> couldn't draw as a single note anyway. You'd have to write it as a
> tied minim and quaver, or something. There'd be no point, surely?
The trouble is, what if I want to turn this into a 1/2 rest and a 1/8 rest?
I have no way of doing that with the current UI, short of inserting some
extra notes to break up the 1/4 rest.
I'm not sure if cut and paste would solve this problem.
> Would you rather it merged them and then "rounded down" to a minim?
> That would leave the bar an incomplete length, and could make it
> difficult to fill it out with correct notes again.
I don't understand why it would be difficult to fill with the correct notes
> > can rests be "sorted" within the bar?
> In general, no. Consider a 6/8 bar containing a crotchet rest,
> quaver rest, crotchet rest, quaver rest. ...as 6/8 is
> supposed to have only two beats per bar, not three.
Okay, thanks for the explanation! I guess I haven't seen much of this.
> There is a function (TimeSignature::getDurationListForInterval)
> that attempts to calculate the "best" series of rests to fill an
> interval of a given duration starting at a given point in a bar
> of a given time signature; it doesn't always get it right, but in
> any case I wouldn't suggest using it in this instance.
I think a preference, combined with say an ALT keystroke, would be good:
How about the default eraser behavior is to erase only the current note, no
combining, unless you have ALT down, then it combines aggressively to the
left and right within the bar, leaving you with a sorted group of short
And the preference can switch the behavior of the ALT key.
> But for first-timers, consistency is as important as cleverness.
> Doing what they mean is only good if it is actually what they
> mean, and trying to be clever and getting it wrong is going to
> put anyone off -- beginner or advanced user.
Yes, this is true. I guess it didn't do what I meant so I thought it should
be changed ;-)