This patch changes determine-frets-mf so that it puts notes
on the highest string with a fret >= min-fret, instead of
putting them on the lowest available string. This leads to
more rational automatically calculated fretboards.
(if (note-string note)
(set-fret note (note-string note))
(let*
- ((string (find (lambda (string) (string-qualifies string
- (note-pitch note)))
- (reverse free-strings))))
- (if string
- (set-fret note string)
+ ((fit-string (find (lambda (string)
+ (string-qualifies string (note-pitch note)))
+ free-strings)))
+ (if fit-string
+ (set-fret note fit-string)
(ly:warning "No string for pitch ~a (given frets ~a)" (note-pitch note)
specified-frets))