Jump to content

Chords with stretched fingering for FretBoards and TabVoice: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Sometimes chords with a stretched fingering are required. If not otherwise specified the context-property <code>maximumFretStretch</code> is set to <code>4</code>, though. Resulting in a warning about &quot;No string for pitch ...&quot; and the note is omitted. You may set <code>maximumFretStretch</code> to an approppriate value or explecitely assign string-numbers to all notes of a chord.
Sometimes chords with a stretched fingering are required. If not otherwise specified the context-property <code>maximumFretStretch</code> is set to <code>4</code>, though. Resulting in a warning about &quot;No string for pitch ...&quot; and the note is omitted. You may set <code>maximumFretStretch</code> to an approppriate value or explecitely assign string-numbers to all notes of a chord.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% The code below will print two warnings, which may be omitted by uncommenting:
%% 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))
%#(for-each (lambda (x) (ly:expect-warning "No string for pitch")) (iota 2))

Revision as of 18:57, 16 November 2025

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"

%% 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
>>