lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple fingering and glides


From: Valentin Petzel
Subject: Re: Multiple fingering and glides
Date: Wed, 07 Aug 2024 12:24:09 +0200

Am Donnerstag, 1. August 2024, 22:36:40 MESZ schrieb Fennel:
> Hi all,
> 
> I'm working on a project that involves multiple fingerings for each note,
> and shift lines or glides between some notes. Since lilypond will only
> engrave glides between notes with the same fingering, I'm using finger 5 to
> be the placeholder fingering and overriding the Fingering text property to
> the desired value.
> 
> Can anyone say why this is producing the attached output? There are two main
> issues. 1. The glide line is engraving not as expected. I'd like it to run
> from the first "5" to the next (adjacent) "5", and I don't have a clue as
> to why it is behaving the way that it does. 1. The \once text override is
> applying to the entire NoteEvent, not the next Fingering, which is the
> intended behavior. Is there a workaround for this?
> 
> -Fennel

Hello Fennel,

if I’m understanding you correctly you wish to see slides between different 
fingerings. One way to go about this would be to assign an arbitrary number to 
the fingering (let’s call id the ID) and then change what is displayed by 
tweaking the text of the fingering. Example:

{
  4-\tweak text "2" _\finger 12345 \glide
  4-\tweak text "3" _\finger 12345
}

here we use the actual fingering of 12345 as "ID", and then actually have it 
display once 2, once 3. We can wrap this in a function:

cfinger =
#(define-music-function (id finger) (index? index-or-markup?)
   #{
     -\tweak text #(if (index? finger) (number->string finger) finger)
     -\finger #id
   #})

{
  4_\cfinger 12345 2 \glide
  4_\cfinger 12345 3
}

Cheers,
Valentin

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]