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

List:       lilypond-user
Subject:    Re: Bracketing verses
From:       tisimst <tisimst.lilypond () gmail ! com>
Date:       2015-06-24 21:25:39
Message-ID: CACzy+cZx5Mk9BwQsq1J98SFvLt2aeiMy3eYxMrhb=s1d92jpFA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Nice work, Pierre! That's a fantastic way to differentiate verses.

- Abraham

On Wed, Jun 24, 2015 at 2:33 PM, RomanticStrings [via Lilypond] <
ml-node+s1069038n178169h48@n5.nabble.com> wrote:

> Dear all,
> 
> Thank you!  That works beautifully!  I don't quite understand everything
> that just happened, but it looks great!
> 
> ~Conor
> 
> On Wed, Jun 24, 2015 at 12:48 AM, Schneidy [via Lilypond] <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=178169&i=0>> wrote:
> 
> > Hi,
> > 
> > Using Harm's link and Simon markup:
> > 
> > \version "2.18.2"
> > 
> > % After:  http://lsr.dsi.unimi.it/LSR/Item?id=641
> > %%
> > http://lilypond.1069038.n5.nabble.com/Different-markups-for-odd-and-even-lyrics-lines-stanzas-td58072.html
> >  
> > #(define (lyricswitch context)
> > (let ((cnt 0))
> > (make-engraver
> > (listeners
> > ((AnnounceNewContext translator ev)
> > (if (eq? (ly:context-name (ly:event-property ev 'context)) 'Lyrics)
> > (begin
> > (set! cnt (1+ cnt))
> > (if (even? cnt)
> > (ly:context-mod-apply! (ly:event-property ev 'context)
> > #{
> > \with {
> > \override StanzaNumber.font-series = #'medium
> > \override LyricText.font-shape = #'italic
> > \override LyricText.color = #(x11-color 'grey20)
> > \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
> > #'((basic-distance . 0)
> > (minimum-distance . 5)  ;; <================
> > more lower space
> > (padding . 0.2)
> > (stretchability . 0))
> > }
> > #})))))))))
> > 
> > %% Implement an alternate lyric context
> > myLayout =
> > \layout {
> > \context {
> > \Lyrics
> > \override LyricText.font-size = #-1
> > }
> > \context {
> > \Score
> > \consists #lyricswitch
> > }
> > 
> > \context {
> > \StaffGroup
> > \consists #lyricswitch
> > }
> > 
> > \context {
> > \ChoirStaff
> > \consists #lyricswitch
> > }
> > 
> > }
> > 
> > %%%%%%%%%%%% test %%%%%%%%%%%%%%%%%%%
> > 
> > mus = \relative c' \repeat unfold 3 { c4 c c c\break }
> > 
> > lyrOne = {
> > \set stanza = \markup {
> > \translate #'(0 . -.7)
> > \with-dimensions #'(0 . 0) #'(0 . 0)
> > \left-brace #22
> > 1.
> > }
> > \lyricmode {
> > \repeat unfold 2 { bla -- bla -- bla -- bla -- }
> > bla -- bla -- bla -- bla
> > }
> > }
> > 
> > lyrTwo = {
> > \set stanza = "1."
> > \lyricmode {
> > \repeat unfold 2 { blub -- blub -- blub -- blub -- }
> > blub -- blub -- blub -- blub
> > }
> > }
> > 
> > lyrThree = {
> > \set stanza = \markup {
> > \translate #'(0 . -.7)
> > \with-dimensions #'(0 . 0) #'(0 . 0)
> > \left-brace #22
> > 2.
> > }
> > \lyricmode {
> > \repeat unfold 2 { foo -- foo -- foo -- foo -- }
> > foo -- foo -- foo -- foo
> > }
> > }
> > 
> > lyrFour = {
> > \set stanza = "2."
> > \lyricmode {
> > \repeat unfold 2 { bla -- bla -- bla -- bla -- }
> > bla -- bla -- bla -- bla
> > }
> > }
> > 
> > lyrFive = {
> > \set stanza = \markup {
> > 
> > \translate #'(0 . -.7)
> > \with-dimensions #'(0 . 0) #'(0 . 0)
> > \left-brace #22
> > 3.
> > }
> > \lyricmode {
> > \repeat unfold 2 { blub -- blub -- blub -- blub -- }
> > blub -- blub -- blub -- blub
> > }
> > }
> > 
> > lyrSix = {
> > \set stanza = "3."
> > \lyricmode {
> > \repeat unfold 2 { foo -- foo -- foo -- foo -- }
> > foo -- foo -- foo -- foo
> > }
> > }
> > 
> > \score {
> > <<
> > \new Staff <<
> > \new Voice = "mus" \mus
> > \new Lyrics \lyricsto "mus" \lyrOne
> > \new Lyrics \lyricsto "mus" \lyrTwo
> > \new Lyrics \lyricsto "mus" \lyrThree
> > \new Lyrics \lyricsto "mus" \lyrFour
> > \new Lyrics \lyricsto "mus" \lyrFive
> > \new Lyrics \lyricsto "mus" \lyrSix
> > > > 
> > \new PianoStaff <<
> > \new Staff { \repeat unfold 12 c' }
> > \new Staff { \clef F \repeat unfold 12 c }
> > > > 
> > > > 
> > \layout { \myLayout }
> > }
> > 
> > 
> > Cheers,
> > Pierre
> > 
> > 2015-06-23 23:39 GMT+02:00 RomanticStrings <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=178135&i=0>>:
> > 
> > > Thank you, Simon.  It does indeed create a bracket to the left of the
> > > verse.
> > > It creates a space below the top verse, however, as well.  Is there any
> > > way
> > > to prevent that?
> > > 
> > > 
> > > 
> > > --
> > > View this message in context:
> > > http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178131.html
> > > Sent from the User mailing list archive at Nabble.com.
> > > 
> > > _______________________________________________
> > > lilypond-user mailing list
> > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=178135&i=1>
> > > https://lists.gnu.org/mailman/listinfo/lilypond-user
> > > 
> > 
> > 
> > _______________________________________________
> > lilypond-user mailing list
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=178135&i=2>
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> > ~Pierre
> > 
> > 
> > ------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> > 
> > http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178135.html
> > To unsubscribe from Bracketing verses, click here.
> > NAML
> > <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer \
> > &id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace- \
> > nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&br \
> > eadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >  
> 
> 
> 
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> 
> http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178169.html
> To start a new topic under User, email ml-node+s1069038n3h2@n5.nabble.com
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
>                 
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&i \
> d=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabb \
> le.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcru \
> mbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>  




--
View this message in context: \
http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178170.html Sent \
from the User mailing list archive at Nabble.com.


[Attachment #5 (text/html)]

<div dir="ltr">Nice work, Pierre! That&#39;s a fantastic way to differentiate \
verses.<div><br></div><div>- Abraham<br><div class="gmail_extra"><br><div \
class="gmail_quote">On Wed, Jun 24, 2015 at 2:33 PM, RomanticStrings [via Lilypond] \
<span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=178170&i=0" \
target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> \
wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

	<div dir="ltr">Dear all,<div><br></div><div>Thank you!   That works beautifully!   I \
don&#39;t quite understand everything that just happened, but it looks \
great!</div><div><br></div><div>~Conor</div></div><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div class="h5">On Wed, Jun 24, 2015 at 12:48 AM, Schneidy \
[via Lilypond] <span dir="ltr">&lt;<a \
href="http:///user/SendEmail.jtp?type=node&amp;node=178169&amp;i=0" rel="nofollow" \
link="external" target="_blank">[hidden email]</a>&gt;</span> \
wrote:<br></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' \
style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">

	<div dir="ltr"><div><div class="h5"><div><div><div><div><div>Hi,<br><br></div>Using \
Harm&#39;s link and Simon markup:<br><br></div></div><span \
style="font-family:monospace,monospace"><div><div>\version \
&quot;2.18.2&quot;<br><br>% After:   <a \
href="http://lsr.dsi.unimi.it/LSR/Item?id=641" rel="nofollow" link="external" \
target="_blank">http://lsr.dsi.unimi.it/LSR/Item?id=641</a><br>%% <a \
href="http://lilypond.1069038.n5.nabble.com/Different-markups-for-odd-and-even-lyrics-lines-stanzas-td58072.html" \
rel="nofollow" link="external" \
target="_blank">http://lilypond.1069038.n5.nabble.com/Different-markups-for-odd-and-even-lyrics-lines-stanzas-td58072.html</a><br><br>#(define \
(lyricswitch context)<br>   (let ((cnt 0))<br>       (make-engraver<br>         \
(listeners<br>           ((AnnounceNewContext translator ev)<br>             (if (eq? \
(ly:context-name (ly:event-property ev &#39;context)) &#39;Lyrics)<br>                \
(begin<br>                         (set! cnt (1+ cnt))<br>                         \
(if (even? cnt)<br>                           (ly:context-mod-apply! \
(ly:event-property ev &#39;context)<br>                             #{<br>            \
\with {<br>                               \override StanzaNumber.font-series = \
#&#39;medium<br>                               \override LyricText.font-shape = \
#&#39;italic<br>                               \override LyricText.color = \
#(x11-color &#39;grey20)<br>                               \override \
VerticalAxisGroup.nonstaff-nonstaff-spacing =<br>                                     \
#&#39;((basic-distance . 0)<br>                                                   \
(minimum-distance . 5)   ;; &lt;================ more lower space<br>                 \
(padding . 0.2)<br>                                                   (stretchability \
. 0))<br>                                 }<br>                           \
#})))))))))<br><br>%% Implement an alternate lyric context<br>myLayout =<br>\layout \
{<br>               \context {<br>               \Lyrics<br>               \override \
LyricText.font-size = #-1<br>               }<br>               \context {<br>        \
\Score<br>                               \consists #lyricswitch<br>               \
}<br>             <br>               \context {<br>               \StaffGroup<br>     \
\consists #lyricswitch<br>               }<br>             <br>               \
\context {<br>               \ChoirStaff<br>                               \consists \
#lyricswitch<br>               }<br>             <br>}<br><br>%%%%%%%%%%%% test \
%%%%%%%%%%%%%%%%%%%<br><br>mus = \relative c&#39; \repeat unfold 3 { c4 c c c\break \
}<br><br>lyrOne = {<br></div></div>               \set stanza = \markup {<span><br>   \
\translate #&#39;(0 . -.7) <br>                   \with-dimensions #&#39;(0 . 0) \
#&#39;(0 . 0)<br>                   \left-brace #22<br>                   1.<br>      \
}<br>               \lyricmode {<br>               \repeat unfold 2 { bla -- bla -- \
bla -- bla -- }<br>               bla -- bla -- bla -- bla<br>               \
}<br>}<br><br>lyrTwo = {<br>               \set stanza = &quot;1.&quot;<br>           \
\lyricmode {<br>               \repeat unfold 2 { blub -- blub -- blub -- blub -- \
}<br>               blub -- blub -- blub -- blub<br>               \
}<br>}<br><br>lyrThree = {<br></span>               \set stanza = \markup {<span><br> \
\translate #&#39;(0 . -.7) <br>                   \with-dimensions #&#39;(0 . 0) \
#&#39;(0 . 0)<br>                   \left-brace #22<br>                   2.<br>      \
}<br>               \lyricmode {<br>               \repeat unfold 2 { foo -- foo -- \
foo -- foo -- }<br>               foo -- foo -- foo -- foo<br>               \
}<br>}<br><br>lyrFour = {<br>               \set stanza = &quot;2.&quot;<br>          \
\lyricmode {<br>               \repeat unfold 2 { bla -- bla -- bla -- bla -- }<br>   \
bla -- bla -- bla -- bla<br>               }<br>}<br><br>lyrFive = {<br></span>       \
\set stanza = \markup {<div><div><br>                   \translate #&#39;(0 . -.7) \
<br>                   \with-dimensions #&#39;(0 . 0) #&#39;(0 . 0)<br>               \
\left-brace #22<br>                   3.<br>               }<br>               \
\lyricmode {<br>               \repeat unfold 2 { blub -- blub -- blub -- blub -- \
}<br>               blub -- blub -- blub -- blub<br>               \
}<br>}<br><br>lyrSix = {<br>               \set stanza = &quot;3.&quot;<br>           \
\lyricmode {<br>               \repeat unfold 2 { foo -- foo -- foo -- foo -- }<br>   \
foo -- foo -- foo -- foo<br>               }<br>}<br><br>\score {<br>               \
&lt;&lt;<br>                   \new Staff &lt;&lt;<br>                       \new \
Voice = &quot;mus&quot; \mus<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrOne<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrTwo<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrThree<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrFour<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrFive<br>                       \new Lyrics \lyricsto \
&quot;mus&quot; \lyrSix<br>                   &gt;&gt;<br>                   \new \
PianoStaff &lt;&lt;<br>                       \new Staff { \repeat unfold 12 c&#39; \
}<br>                       \new Staff { \clef F \repeat unfold 12 c }<br>            \
&gt;&gt;<br>               &gt;&gt;<br>               \layout { \myLayout }<br>} \
</div></div></span><br><br></div>Cheers,<br></div>Pierre<br></div></div><div><div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote"><span class=""><span>2015-06-23 \
23:39 GMT+02:00 RomanticStrings <span dir="ltr">&lt;<a \
href="http:///user/SendEmail.jtp?type=node&amp;node=178135&amp;i=0" rel="nofollow" \
link="external" target="_blank">[hidden \
email]</a>&gt;</span>:<br></span></span><blockquote style='border-left:2px solid \
#CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" \
class="gmail_quote"><span class=""><span>Thank you, Simon.   It does indeed create a \
bracket to the left of the verse.<br> It creates a space below the top verse, \
however, as well.   Is there any way<br> to prevent that?<br>
<br>
<br>
<br></span>
--<br>
View this message in context: <a \
href="http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178131.html" \
rel="nofollow" link="external" \
target="_blank">http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178131.html</a><br>
 </span><div><div><span class=""><span>Sent from the User mailing list archive at \
Nabble.com.<br> <br>
_______________________________________________<br>
lilypond-user mailing list<br>
</span></span><a href="http:///user/SendEmail.jtp?type=node&amp;node=178135&amp;i=1" \
rel="nofollow" link="external" target="_blank">[hidden email]</a><br> <a \
href="https://lists.gnu.org/mailman/listinfo/lilypond-user" rel="nofollow" \
link="external" target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br>
 </div></div></blockquote></div><br></div></div></div></div></div></div><span \
class=""><span> <br>_______________________________________________
<br>lilypond-user mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&amp;node=178135&amp;i=2" \
rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><a \
href="https://lists.gnu.org/mailman/listinfo/lilypond-user" rel="nofollow" \
link="external" target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br>


	
	
	</span><div style="margin-top:1em;color:#666666;font-size:11px">
				~Pierre
			</div>
	<br>
	<br>
	<hr noshade size="1" color="#cccccc">
	<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span>
		<div style="font-weight:bold">If you reply to this email, your message will be \
added to the discussion below:</div>  </span><a \
href="http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178135.html" \
rel="nofollow" link="external" \
target="_blank">http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178135.html</a>
  </div></span><div><div>
	<div style="color:#666;font:11px \
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">  
		To unsubscribe from Bracketing verses, <a rel="nofollow" link="external" \
target="_top">click here</a>.<br>  <a \
href="http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe \
r&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNames \
pace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&a \
mp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" \
rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>  \
</div></div></div></blockquote></div><br></div>


	
	
	
	<br>
	<br>
	<hr noshade size="1" color="#cccccc">
	<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span \
class="">  <div style="font-weight:bold">If you reply to this email, your message \
will be added to the discussion below:</div>  </span><a \
href="http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178169.html" \
target="_blank" rel="nofollow" \
link="external">http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178169.html</a>
  </div><div class="HOEnZb"><div class="h5">
	<div style="color:#666;font:11px \
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">  To \
start a new topic under User, email <a \
href="/user/SendEmail.jtp?type=node&node=178170&i=1" target="_top" rel="nofollow" \
link="external">[hidden email]</a> <br>  To unsubscribe from Lilypond, <a href="" \
target="_blank" rel="nofollow" link="external">click here</a>.<br>  <a \
href="http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe \
r&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNames \
pace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&a \
mp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" \
rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>  \
</div></div></div></blockquote></div><br></div></div></div>


	
	
	
<br/><hr align="left" width="300" />
View this message in context: <a \
href="http://lilypond.1069038.n5.nabble.com/Bracketing-verses-tp178126p178170.html">Re: \
Bracketing verses</a><br/> Sent from the <a \
href="http://lilypond.1069038.n5.nabble.com/User-f3.html">User mailing list \
archive</a> at Nabble.com.<br/>



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


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

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