Re: Disable all padding and collision around markup
This is perfect, thanks so much for your responses everybody. -William On 5/19/24 10:56, Kieren MacMillan wrote: Hi Knute, There are ways to "disable the padding" (a.k.a. have the spacing engine ignore the TextScript). However, it might be just as easy — or maybe even easier? — to simply tweak the X-offset and Y-offset rather than using extra-offset: The extra-offset happens late in the rendering process, so the other grobs can't adjust to its movement like they do with X- and Y-offset. Exactly! :) — Kieren __ My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours. -- William Rehwinkel - Oberlin College and Conservatory '24 will...@williamrehwinkel.net PGP key: https://ftp.williamrehwinkel.net/pubkey.txt OpenPGP_signature.asc Description: OpenPGP digital signature
Re: Disable all padding and collision around markup
Hi Knute, >> There are ways to "disable the padding" (a.k.a. have the spacing engine >> ignore the TextScript). However, it might be just as easy — or maybe >> even easier? — to simply tweak the X-offset and Y-offset rather than >> using extra-offset: > The extra-offset happens late in the rendering process, so the other grobs > can't adjust to its movement like they do with X- and Y-offset. Exactly! :) — Kieren __ My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.
Re: Disable all padding and collision around markup
On Sun, May 19, 2024 at 4:22 AM wrote: > Hi William, > > > In the following example, I use a section label and a TextScript on a > > note. I offset the markup text so that it appears inside the staff, but > > it still makes the section text higher up. I would like to know if it > > is possible to disable this padding around the TextScript, so that the > > section label appears directly over the staff without the extra space, > > the same way as it does when there is no text script. > > There are ways to "disable the padding" (a.k.a. have the spacing engine > ignore the TextScript). However, it might be just as easy — or maybe > even easier? — to simply tweak the X-offset and Y-offset rather than > using extra-offset: > The extra-offset happens late in the rendering process, so the other grobs can't adjust to its movement like they do with X- and Y-offset. -- Knute Snortum
Re: Disable all padding and collision around markup
Hi William, In the following example, I use a section label and a TextScript on a note. I offset the markup text so that it appears inside the staff, but it still makes the section text higher up. I would like to know if it is possible to disable this padding around the TextScript, so that the section label appears directly over the staff without the extra space, the same way as it does when there is no text script. There are ways to "disable the padding" (a.k.a. have the spacing engine ignore the TextScript). However, it might be just as easy — or maybe even easier? — to simply tweak the X-offset and Y-offset rather than using extra-offset: %%% SNIPPET BEGINS % -- \version "2.25.7" \score { \relative c' { \once \override NoteHead.extra-spacing-width = #'( -6 . 0 ) \once \override TextScript.extra-offset = #'(-6 . -3) \once \override TextScript.outside-staff-priority = ##f \sectionLabel "Section label (extra-offset)" \clef alto c2^\markup\whiteout\bold "Text" } } \score { \relative c' { \once \override NoteHead.extra-spacing-width = #'( -6 . 0 ) \once \override TextScript.X-offset = -6 \once \override TextScript.Y-offset = -0.375 \once \override TextScript.outside-staff-priority = ##f \sectionLabel "Section label (X-offset + Y-offset)" \clef alto c2^\markup\whiteout\bold "Text" } } %%% SNIPPET ENDS Hope this helps! Kieren.
Disable all padding and collision around markup
Dear list, In the following example, I use a section label and a TextScript on a note. I offset the markup text so that it appears inside the staff, but it still makes the section text higher up. I would like to know if it is possible to disable this padding around the TextScript, so that the section label appears directly over the staff without the extra space, the same way as it does when there is no text script. Thanks, -William % -- \version "2.25.7" % Without moving text \score { \relative c' { \sectionLabel "Some section label text here" \clef alto c2^\markup\whiteout\bold "Text" } } % Example with moving text \score { \relative c' { \once \override NoteHead.extra-spacing-width = #'( -6 . 0 ) \once \override TextScript.extra-offset = #'(-6 . -3) \once \override TextScript.outside-staff-priority = ##f \sectionLabel "Some section label text here" \clef alto c2^\markup\whiteout\bold "Text" } } % How the section label would be positioned without the text markup \score { \relative c' { \sectionLabel "Some section label text here" \clef alto c2 } } -- William Rehwinkel - Oberlin College and Conservatory '24 will...@williamrehwinkel.net PGP key: https://ftp.williamrehwinkel.net/pubkey.txt OpenPGP_signature.asc Description: OpenPGP digital signature