Re: how to change extents of a grob?

2022-04-14 Thread David Kastrup
Werner LEMBERG writes: > Dear LilyPonders, > > > I can get the extents of a grob with `ly:grob-extent`. What is the > corresponding Scheme function to set the extents? > > Or to ask in a different way: At the time when properties are > processed and you have to manipulate stencils, changing the

Re: how to change extents of a grob?

2022-04-14 Thread Werner LEMBERG
>> Or to ask in a different way: At the time when properties are >> processed and you have to manipulate stencils, changing the stencil >> of a grob doesn't change the extents of this grob, AFAICS. > > You are not supposed to change stencils at all. They are not > entities with identity. > > C

Custom Spanner with variable length sections

2022-04-14 Thread Dimitris Marinakis
I need a custom spanner that has x sections with different symbols. This is going to be tricky so any help is appreciated. I already have a hacky solution for fixed length spanners but it is pain to maintain it. I'd like a more usable solution that can handle variable lengths. It would be nice to

Re: Custom Spanner with variable length sections

2022-04-14 Thread Kieren MacMillan
Hi Dimitris, > I need a custom spanner that has x sections with different symbols. This is > going to be tricky so any help is appreciated. https://github.com/davidnalesnik/lilypond-text-spanner-inner-texts Hope that helps! Kieren.

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Werner LEMBERG
> There is a problem with ligatures at the syllable boundaries (and > kerning). [...] it is not sufficient to shift the right syllable > in a syllable pair to the left. Instead, the following should be > done. [...] Meanwhile I could implement this :-) I will submit a MR soon. Werner

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 17:39, Werner LEMBERG a écrit : There is a problem with ligatures at the syllable boundaries (and kerning). [...] it is not sufficient to shift the right syllable in a syllable pair to the left. Instead, the following should be done. [...] Meanwhile I could implement this :-)

Re: how to change extents of a grob?

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 11:41, Werner LEMBERG a écrit : Or to ask in a different way: At the time when properties are processed and you have to manipulate stencils, changing the stencil of a grob doesn't change the extents of this grob, AFAICS. You are not supposed to change stencils at all. They are n

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Werner LEMBERG
> How did you do that? Sorry to rain on your parade, but I would not > want you to put a lot of work in it if it will not be of mergeable > quality. Attached. In the end the necessary modifications were surprisingly minor. Please comment, there is certainly room for improvements. Werner

Re: Custom Spanner with variable length sections

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 16:09, Kieren MacMillan a écrit : Hi Dimitris, I need a custom spanner that has x sections with different symbols. This is going to be tricky so any help is appreciated. https://github.com/davidnalesnik/lilypond-text-spanner-inner-texts Ok, I'm not sure if this solves the p

Off-topic: What do you guys think of the upside-down music?

2022-04-14 Thread Kenneth Wolcott
Hi; Off-topic: What do you guys think of the upside-down music? On youtube: https://www.youtube.com/channel/UCrLBkLxyE7T1cyv_4ykGTrg Upside-down Scores Example: Für Elise Upside-down (new version, with Score) https://www.youtube.com/watch?v=q2vsAua8FxM How is this done? Can this be done wi

Re: Off-topic: What do you guys think of the upside-down music?

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 21:58, Kenneth Wolcott a écrit : Hi; Off-topic: What do you guys think of the upside-down music? On youtube: https://www.youtube.com/channel/UCrLBkLxyE7T1cyv_4ykGTrg Upside-down Scores Example: Für Elise Upside-down (new version, with Score) https://www.youtube.com/watc

Tags for contexts without duration

2022-04-14 Thread Dimitris Marinakis
I often find myself in need of offsetting some tempo or rehearsal marks for certain parts but not the full score but tags won't work in this case since I can't have two marks at the same location on a single context. It is a lot of work to duplicate the whole context just to differentiate a few mar

Cross-staff arpeggios with a grace note

2022-04-14 Thread Knute Snortum
I am having trouble with arpeggios and grace notes again. In this situation, I have a cross-staff arpeggio of a chord with a grace note (see attachment). LilyPond's default is to put the arpeggio and grace note on top of each other. Jean taught me the trick of putting the arpeggio on the grace n

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Alexander Kobel
Hi all, On 4/6/22 20:17, Jean Abou Samra wrote: > Le 06/04/2022 à 14:33, Werner LEMBERG a écrit : >> Is someone taking care of bugs in the magnetic snapping lyrics >> engraver?  Here is an example where it fails to position lyrics >> correctly (see last system in the image). >> >> >> Werner >

Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Leo Correia de Verdier
I think there might be a more beautiful solutions to your whole situation, but I’m too tired to figure it out right now, so: You can change the arpeggio’s Y-extent to prevent it from pushing away the other staff. %%% \version "2.22.2" rightHand = { e'2 } leftHand = \relative { \clef bass

Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 23:06, Knute Snortum a écrit : I am having trouble with arpeggios and grace notes again. In this situation, I have a cross-staff arpeggio of a chord with a grace note (see attachment). LilyPond's default is to put the arpeggio and grace note on top of each other. Jean taught

Re: Cross-staff arpeggios with a grace note

2022-04-14 Thread Knute Snortum
On Thu, Apr 14, 2022 at 2:23 PM Jean Abou Samra wrote: >> You can change the arpeggio’s Y-extent to prevent it from pushing away the >> other staff. ... > The magic incantation would be \tweak vertical-skylines ##f. Thanks Jean and Leo, those work great! -- Knute Snortum

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 18:18, Werner LEMBERG a écrit : How did you do that? Sorry to rain on your parade, but I would not want you to put a lot of work in it if it will not be of mergeable quality. Attached. In the end the necessary modifications were surprisingly minor. Please comment, there is cer

Re: Tags for contexts without duration

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 22:44, Dimitris Marinakis a écrit : I often find myself in need of offsetting some tempo or rehearsal marks for certain parts but not the full score but tags won't work in this case since I can't have two marks at the same location on a single context. Not sure I understand th

Re: Off-topic: What do you guys think of the upside-down music?

2022-04-14 Thread Kenneth Wolcott
Thanks, Jean! This is cool! Not that I would do anything with it, but it sure is nice to know that there seems to be no limit to what Lilypond can do :-) On Thu, Apr 14, 2022 at 1:18 PM Jean Abou Samra wrote: > > > > Le 14/04/2022 à 21:58, Kenneth Wolcott a écrit : > > Hi; > > > >Off-topic:

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Werner LEMBERG
>> Attached. In the end the necessary modifications were surprisingly >> minor. Please comment, there is certainly room for improvements. > > Thanks. This is a bit what I feared: in this state, there is > potential for things going wrong with other after-line-breaking > callbacks. Those are th

Re: bug in magnetic snapping lyrics engraver

2022-04-14 Thread Werner LEMBERG
>> How did you do that? Sorry to rain on your parade, but I would not >> want you to put a lot of work in it if it will not be of mergeable >> quality. > > Attached. In the end the necessary modifications were surprisingly > minor. Please comment, there is certainly room for improvements. Att