[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: maximumFretStretch in Manual, tablatures section ?
From: |
Thomas Morley |
Subject: |
Re: maximumFretStretch in Manual, tablatures section ? |
Date: |
Thu, 25 Jan 2018 22:57:20 +0100 |
2018-01-25 19:52 GMT+01:00 Éric <address@hidden>:
> 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
- maximumFretStretch in Manual, tablatures section ?, Éric, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?, Blöchl Bernhard, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?,
Thomas Morley <=
- Re: maximumFretStretch in Manual, tablatures section ?, Carl Sorensen, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?, Thomas Morley, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?, Carl Sorensen, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?, Thomas Morley, 2018/01/25
- Re: maximumFretStretch in Manual, tablatures section ?, Thomas Morley, 2018/01/26