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

List:       lilypond-user
Subject:    Re: selectively suppressing barlines?
From:       Graham King <graham.king () tremagi ! org ! uk>
Date:       2017-08-30 19:13:57
Message-ID: 1504120437.23068.35.camel () oberon ! tremagi ! org ! uk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Wed, 2017-08-30 at 14:22 -0400, Kieren MacMillan wrote:

> Hi Graham,
> 
> > This technique, however, feels really clumsy by Lilypond standards.
> > Have I overlooked a better way?
> 
> Maybe something like
> 
> %%%  SNIPPET BEGINS
> \version "2.19.40"
> 
> \layout {
>   indent = 0
>   ragged-right = ##t
>   \context {
>     \Staff
>     \RemoveEmptyStaves
>   }
> }
> 
> cantusVoice = {
>   c''1 \break R1 \break
>   c''\breve*1/2 \once \omit Staff.BarLine s1
> }
> 
> altusVoice = {
>   c'1 1 1 1
> }
> 
> \score {
>   \new ChoirStaff <<
>     \new Staff { \cantusVoice }
>     \new Staff { \altusVoice }
>   >>
> }
> %%%  SNIPPET ENDS

Thanks Kieren,
that's much neater.  Staff.BarLine was the thing I had missed.

And I can use a tag to generate reasonable MIDI output.

kind regards
-- Graham

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
On Wed, 2017-08-30 at 14:22 -0400, Kieren MacMillan wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Graham,</FONT>

<FONT COLOR="#000000">&gt; This technique, however, feels really clumsy by Lilypond standards.</FONT>
<FONT COLOR="#000000">&gt; Have I overlooked a better way?</FONT>

<FONT COLOR="#000000">Maybe something like</FONT>

<FONT COLOR="#000000">%%%  SNIPPET BEGINS</FONT>
<FONT COLOR="#000000">\version &quot;2.19.40&quot;</FONT>

<FONT COLOR="#000000">\layout {</FONT>
<FONT COLOR="#000000">  indent = 0</FONT>
<FONT COLOR="#000000">  ragged-right = ##t</FONT>
<FONT COLOR="#000000">  \context {</FONT>
<FONT COLOR="#000000">    \Staff</FONT>
<FONT COLOR="#000000">    \RemoveEmptyStaves</FONT>
<FONT COLOR="#000000">  }</FONT>
<FONT COLOR="#000000">}</FONT>

<FONT COLOR="#000000">cantusVoice = {</FONT>
<FONT COLOR="#000000">  c''1 \break R1 \break</FONT>
<FONT COLOR="#000000">  c''\breve*1/2 \once \omit Staff.BarLine s1</FONT>
<FONT COLOR="#000000">}</FONT>

<FONT COLOR="#000000">altusVoice = {</FONT>
<FONT COLOR="#000000">  c'1 1 1 1</FONT>
<FONT COLOR="#000000">}</FONT>

<FONT COLOR="#000000">\score {</FONT>
<FONT COLOR="#000000">  \new ChoirStaff &lt;&lt;</FONT>
<FONT COLOR="#000000">    \new Staff { \cantusVoice }</FONT>
<FONT COLOR="#000000">    \new Staff { \altusVoice }</FONT>
<FONT COLOR="#000000">  &gt;&gt;</FONT>
<FONT COLOR="#000000">}</FONT>
<FONT COLOR="#000000">%%%  SNIPPET ENDS</FONT>
</PRE>
</BLOCKQUOTE>
Thanks Kieren,<BR>
that's much neater.&nbsp; Staff.BarLine was the thing I had missed.<BR>
<BR>
And I can use a tag to generate reasonable MIDI output.<BR>
<BR>
kind regards<BR>
-- Graham
</BODY>
</HTML>


_______________________________________________
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