2018-01-25 19:52 GMT+01:00 Éric <[email protected]>:
> Hello,
>
> in this exemple, the 1rst chord is the default calculation of tablature but
> not what I want.
> The 2nd chord get an error message even your intuition do not…
> The 3rd chord showing what I want.
>
> \version "2.19.60"
>
> \score {
> \new TabStaff
> { <c' bes'> <c'\2 bes'> <c'\2 bes'\1> }
> }
>
>
> The maximumFretStretch is set to 4 by default in translation.init.scm
> Lilypond files, while this chord is a 5 stretched.
Read
(ly:context-property context 'maximumFretStretch 4)
as: use the value 4, if maximumFretStretch is not otherwise specified.
> (yes, it can happen, specialy in highter notes position, where frets are
> less large, or if you play a small instrument)
>
> Looking to the manuel, the property maximumFretStretch is only belonging to
> Fretboards context.
Not really.
In the IR you'll find that maximumFretStretch is read by the Fretboard_engraver.
But it doesn't say it's used in FretBoards-context exclusively.
You already found maximumFretStretch in the determine-frets-procedure
in translation-functions.scm which is the
`noteToFretFunction', read by Fretboard_engraver *and*
Tab_note_heads_engraver (in TabVoice).
> Don't you think that it should be mentionned in the Tablature section of
> the manual that, at least, you have to type all the string numbers involved
> in a more than default stretch ?
>
> By the way, is there a way to override this default, just for a score or a
> section of it ?
Just change maximumFretStretch:
\score {
<<
\new TabStaff
{
<c' bes'>
\set maximumFretStretch = 5
<c'\2 bes'>
\unset maximumFretStretch
<c' bes'>
}
\new TabStaff
%% as a general setting for this TabStaff:
\with { maximumFretStretch = 5 }
{
<c' bes'>
<c'\2 bes'>
<c' bes'>
}
>>
\layout {
\context {
\TabStaff
%% as a general setting for all TabStaffs
%maximumFretStretch = 5
}
}
}
Nevertheless, usage of this maximumFretStretch-property is pretty
under-documented, imho.
Cheers,
Harm
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user