Re: Problem with \break command

2015-04-09 Thread Simon Albrecht

Am 09.04.2015 um 17:30 schrieb Peter Toye:

Re: Problem with \break command Simon,

Thanks - it gets somewhere.

The
\set Timing.defaultBarType = 
command with which Abraham came up gets rid of the gaps.

Yours, Simon
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with \break command

2015-04-09 Thread Peter Toye
Simon,

Thanks - it gets somewhere. 

The reason for the extra braces was that it's a cut-down tiny version of a 
more complex score with polyphony.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Thursday, April 9, 2015, 4:15:26 PM, you wrote:


Hello,

the problem seems to be that the Bar_engraver takes part in triggering the clef 
on the new line, so without it no clef is printed. I tried to come up with a 
workaround, omitting the bar lines, but it has a major drawback: it still 
leaves some space for the omitted bar lines, which I can’t explain nor 
circumvent: all the overrides I tried had no effect. Anybody else?
Some other remarks:
It might make sense to make the context modifications (\remove) in a \layout 
environment also, such as to get more legible code. For the same reason, always 
store your music in variables, as explained in the Learning Manual. And: the {} 
around each music line aren’t necessary.

HTH, Simon

Am 09.04.2015 um 16:49 schrieb Peter Toye:
\version 2.18.2

\language english

\layout {
 ragged-right  = ##t
}

\score {

 \new Staff \with {
   \remove Bar_number_engraver
   \remove Time_signature_engraver
   \remove Bar_engraver

 }
 
 \new Voice \with {
   \remove Stem_engraver
 }
 
 \relative c {
   \key c \major
   \clef bass
   
   { g4_5 a_4 b_3 c_2 d_1  }
   \break

   {  g,4 a g a b a b a }
   \break
   
   {g4 af g af bf a bf a } 

 }

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


Re: Problem with \break command

2015-04-09 Thread Simon Albrecht

Hello,

the problem seems to be that the Bar_engraver takes part in triggering 
the clef on the new line, so without it no clef is printed. I tried to 
come up with a workaround, omitting the bar lines, but it has a major 
drawback: it still leaves some space for the omitted bar lines, which I 
can’t explain nor circumvent: all the overrides I tried had no effect. 
Anybody else?

Some other remarks:
It might make sense to make the context modifications (\remove) in a 
\layout environment also, such as to get more legible code. For the same 
reason, always store your music in variables, as explained in the 
Learning Manual. And: the {} around each music line aren’t necessary.


HTH, Simon

Am 09.04.2015 um 16:49 schrieb Peter Toye:

\version 2.18.2

\language english

\layout {
 ragged-right  = ##t
}

\score {

 \new Staff \with {
   \remove Bar_number_engraver
   \remove Time_signature_engraver
   \remove Bar_engraver

 }

 \new Voice \with {
   \remove Stem_engraver
 }

 \relative c {
   \key c \major
   \clef bass

   { g4_5 a_4 b_3 c_2 d_1  }
   \break

   {  g,4 a g a b a b a }
   \break

   {g4 af g af bf a bf a }

 }

}


\version 2.18.2

\language english

\layout {
  ragged-right  = ##t
}

break = { \break \bar  }

mus = \relative c {
  \key c \major
  \clef bass

  g4_5 a_4 b_3 c_2 d_1
  \break

  g,4 a g a b a b a
  \break

  g4 af g af bf a bf a
}

\score {
  \mus
  \layout {
\context {
  \Staff
  \remove Bar_number_engraver
  \remove Time_signature_engraver
  %\remove Bar_engraver
  \omit BarLine
  %\override BarLine.space-alist.next-note = 0
  %\override BarLine.gap = 0
  %\override BarLine.extra-spacing-height = #'(-inf.0 . +inf.0)
  %\override BarLine.break-align-anchor = 0
}
\context {
  \Voice
  \remove Stem_engraver
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with \break command

2015-04-09 Thread tisimst
Peter,

Here's what I've done that works nicely, but requires a slight manual
intervention (changes/additions in *BOLD*):

1. DON'T remove Bar_engraver because Clefs can only be printed after a bar
line (even an invisible one, like with \bar )
2. Set Timing.defaultBarType =  which correctly keeps the hidden barline
from taking up space, but still allows clefs to be printed at the beginning
of each system
3. Manually put \bar  before each \break or \pageBreak since you are
ALWAYS mid-measure without barlines. I usually put this in my own variable
like myBreak = { \bar  \break } to keep typing to a minimum.

%-- SNIP --

\version 2.18.2
\language english

\layout {
 ragged-right  = ##t
}

*myBreak = { \bar  \break }*
*myPageBreak = { \bar  \pageBreak }*

\score {
 \new Staff \with {
   \remove Bar_number_engraver
   \remove Time_signature_engraver
   *%\remove Bar_engraver*
 } \new Voice \with {
 \remove Stem_engraver
   } \relative c {
   *\set Timing.defaultBarType = *
   \key c \major
   \clef bass
   { g4_5 a_4 b_3 c_2 d_1  }
   *\myBreak*
   {  g,4 a g a b a b a }
   *\myBreak*
   {g4 af g af bf a bf a }
 }
}

%-- SNIP --

HTH,
Abraham

On Thu, Apr 9, 2015 at 8:50 AM, Peter Toye [via Lilypond] 
ml-node+s1069038n174273...@n5.nabble.com wrote:

 I'm trying to typeset some finger patterns for exercises and don't want
 bar numbers or barlines. This works fine for the first line, but after a
 \break command to force a new line for the next pattern the clef isn't
 shown.

 Obviously I'm doing something wrong, but as a relative Lilypond newbie who
 hasn't used it for a year, I can't work out what. Can some kind soul please
 help?

 \version 2.18.2

 \language english

 \layout {
  ragged-right  = ##t
 }

 \score {

  \new Staff \with {
\remove Bar_number_engraver
\remove Time_signature_engraver
\remove Bar_engraver

  }

  \new Voice \with {
\remove Stem_engraver
  }

  \relative c {
\key c \major
\clef bass

{ g4_5 a_4 b_3 c_2 d_1  }
\break

{  g,4 a g a b a b a }
\break

{g4 af g af bf a bf a }

  }

 }

 Regards,

 Peter
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=174273i=0
 www.ptoye.com
 ___
 lilypond-user mailing list
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=174273i=1
 https://lists.gnu.org/mailman/listinfo/lilypond-user


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lilypond.1069038.n5.nabble.com/Problem-with-break-command-tp174273.html
  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
 To unsubscribe from Lilypond, click here
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=
 .
 NAML
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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/Problem-with-break-command-tp174273p174277.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Problem with \break command

2015-04-09 Thread Peter Toye
I'm trying to typeset some finger patterns for exercises and don't want bar 
numbers or barlines. This works fine for the first line, but after a \break 
command to force a new line for the next pattern the clef isn't shown.

Obviously I'm doing something wrong, but as a relative Lilypond newbie who 
hasn't used it for a year, I can't work out what. Can some kind soul please 
help?

\version 2.18.2

\language english

\layout {
  ragged-right  = ##t
}

\score {

  \new Staff \with {
\remove Bar_number_engraver
\remove Time_signature_engraver
\remove Bar_engraver
 
  }
  
  \new Voice \with {
\remove Stem_engraver
  }
  
  \relative c {
\key c \major
\clef bass

{ g4_5 a_4 b_3 c_2 d_1  }
\break

{  g,4 a g a b a b a }  
\break

{g4 af g af bf a bf a } 

  }

}

Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user