lilypond-user
[Top][All Lists]
Advanced

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

Re: Image width issue


From: Jean Abou Samra
Subject: Re: Image width issue
Date: Fri, 13 Jan 2023 12:35:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

Le 12/01/2023 à 05:44, Rajesh Baskar a écrit :
Hi Jean,

Thanks for your help this works. But I have a question, this solution makes the 1st image match the width of the 2nd image by reducing it. Can the 2nd images width match the  1st images width by increasing it.


Try


\version "2.24.0"

\language english

RedDotMarkup = \markup \with-color "#FF0000" \vcenter \fontsize #-1 \musicglyph "dots.dot"
RedDot =
  \tweak text \RedDotMarkup
  \tweak stencil
    #(grob-transformer
      'stencil
      (lambda (grob original)
        (ly:stencil-outline
         (ly:text-interface::print grob)
         original)))
  \tweak staff-position #0
  \etc

\header {
  tagline = ##f
}

\score {
  \new Staff \with { \omit TimeSignature }
  {
    \set Staff.midiInstrument = #"acoustic grand"
    \key c \major
    \time 5/1
    \clef bass
    g,1 a,
    \tweak transparent ##t %% Comment or uncomment this line
    \RedDot b,
    c d
    \bar "||"
  }
  \layout {
    \context {
      \Score proportionalNotationDuration = #(ly:make-moment 1/2)
    }
  }
}



Basically, it gives the red dot note head the same width
as a normal note head (although it's not clear to me why
this is important in your use case).

Best,
Jean



Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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