[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Removing lines under custom dynamic mark with lyluatex integration
From:       Claire Meyer <claire.meyer.bourhis.lilypond () gmail ! com>
Date:       2020-08-26 19:45:37
Message-ID: CAL_jZO3Hk8enPLVd8Z7fTeS5ymdMQCBr2A5n7qJNvdZ0ut098g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I've been reproducing an old score, and wanted to be as faithful to the
original layout as possible, so I came up (with the help of several people
on here and in other internet places as well) with a custom dynamic mark,
which *almost* does what I want.

Vertically, the dynamic mark is centered between the two staves,
horizontally it comes after the end of the score, the text and its
formatting is how I want it. The only thing is that the staves lines
continue under, and I'd like for them to stop after the segno bar.

I attached a file to the mail with my code. If I remove the line 43
((ly:grob-set-property!
grob 'X-extent '(0 . 6))), I obtain what I describe as my goal, but when I
integrate with latex/lyluatex, I have a cropped version in which the
dynamic mark doesn't appear. The (ly:grob-set-property! grob 'X-extent '(0
. 6)) line ensures it's not cropped, but prolongs the staves lines.

If someone could tell me how to remove the extra staves lines, while
guaranteeing that the dynamic is not cropped when integrating in latex with
lyluatex, I'd be grateful :)
Claire

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been reproducing an old \
score, and wanted to be as faithful to the original layout as possible, so I came up \
(with the help of several people on here and in other internet places as well) with a \
custom dynamic mark, which <i><b>almost</b></i> does what I want. \
<br></div><div><br></div><div>Vertically, the dynamic mark is centered between the \
two staves, horizontally it comes after the end of the score, the text and its \
formatting is how I want it. The only thing is that the staves lines continue under, \
and I&#39;d like for them to stop after the segno bar.</div><div><br></div><div>I \
attached a file to the mail with my code. If I remove the line 43 (<span \
style="font-family:monospace">(ly:grob-set-property! grob &#39;X-extent &#39;(0 . \
6))</span>), I obtain what I describe as my goal, but when I integrate with \
latex/lyluatex, I have a cropped version in which the dynamic mark doesn&#39;t \
appear. The <span style="font-family:monospace">(ly:grob-set-property! grob \
&#39;X-extent &#39;(0 . 6))</span> line ensures it&#39;s not cropped, but prolongs \
the staves lines.</div><div><br></div><div>If someone could tell me how to remove the \
extra staves lines, while guaranteeing that the dynamic is not cropped when \
integrating in latex with lyluatex, I&#39;d be grateful \
:)</div><div>Claire<br></div></div>


["test_1.ly" (text/x-lilypond)]

%%%%%%%%%%
%% VERSION
%%%%%%%%%%

\version "2.20.0"


%%%%%%%%%
%% GLOBAL
%%%%%%%%%

themeGlobal = {
	\time 4/4
	\key bes \major
}


%%%%%%%%
%% THEME
%%%%%%%%

themeUpper = \relative c'' {
	<a c>2 \breathe f4 bes |
}

themeLower = \relative c {
	<f f,> <f f,> \breathe r2
}


%%%%%%%%%%%
%% DYNAMICS
%%%%%%%%%%%

dalSegno = \markup \with-dimensions #'(0 . 0) #'(0 . 0) {
	\raise #-2.5 \center-column { "D. S." "al" "Fin" }
}

themeDynamics = {
	2 4 4 |
	\once \override Staff.BarLine.stencil =
		#(lambda (grob)
		(ly:grob-set-property! grob 'X-extent '(0 . 6))
		(ly:stencil-combine-at-edge
			(ly:bar-line::print grob)
			X RIGHT
			(grob-interpret-markup grob dalSegno)
			0))
	\bar "S-S"
}


%%%%%%%%%%%%%%%
%% PIANO SCORES
%%%%%%%%%%%%%%%

pianoUpper = {
	\clef "treble"
	\themeGlobal
	<<
		\new Voice {
			\themeUpper
		}
	>>
}

pianoLower = {
	\clef "bass"
	\themeGlobal
	<<
		\new Voice {
			\themeLower
		}
	>>
}


%%%%%%%%
%% SCORE
%%%%%%%%

\score {
	<<
		\new PianoStaff
		<<
			\new Staff = "upper" \pianoUpper
			\new Dynamics { \themeDynamics }
			\new Staff = "lower" \pianoLower
		>>
	>>
}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic