Jump to content

Chords with stretched fingering for FretBoards and TabVoice

From LilyPond wiki
Revision as of 22:50, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sometimes chords with a stretched fingering are required. If not otherwise specified the context-property maximumFretStretch is set to 4, though. Resulting in a warning about "No string for pitch ..." and the note is omitted. You may set maximumFretStretch to an approppriate value or explecitely assign string-numbers to all notes of a chord.

\version "2.24.0"

%% The code below will print two warnings, which may be omitted by uncommenting:
%#(for-each (lambda (x) (ly:expect-warning "No string for pitch")) (iota 2))

mus = { 
  <c' bes'> 
  <c'\2 bes'> 
  \set maximumFretStretch = 5
  <c' bes'> 
  <c'\2 bes'\1> 
}

<<
  \new FretBoards \mus
  \new TabVoice \mus
>>