Re: Unwanted barline. How to get rid of it?

2015-12-26 Thread Michael Gerdau
Merry christmas dear all Lilyponder!

Sry for my late reaction on this one - I finally got to work through
all these mails and tried the example code provided by Malte:

> This depends on whether you really have an upbeat (f.e. Scherzo ends
> with full measure, Trio starts with upbeat) or an "incomplete" measure
> (f.e. if you have bars of different length whithout explicitely changing
> the time signature; see last of Rachmaninov's Etudes-Tableaux). Have a
> look at the output of the following code. Three different solutions show
> three different types of behaviour (look at bar lines and bar numbers).
> 
> \version "2.18.2"
> 
> {
>   \override Score.BarNumber.break-visibility = #'#(#t #t #t)
> 
>   b4 b b b
>   b b b \set Timing.measurePosition = #(ly:make-moment 4/4)
>   \mark "missing barline"
>   b b b b
>   \break
> 
>   b b b b
>   \set Timing.measureLength = #(ly:make-moment 3/4) b b b \unset
> Timing.measureLength
>   \mark "everything ok (if it's an 'incomplete' measure)"
>   b b b b
>   \break
> 
>   b b b b
>   \partial 4*3
>   b b b
>   \mark "m. 8 counts twice (ok if it's really an upbeat)"
>   b b b b
> }

Interesting enough on my 2.19.33 installation there is no double count
of measure 8, as the mark in line 3 suggests (the partial bar is counted
like any other bar).

Has there been a change in behaviour somewhere along the way or ist
this a (newly introduced) bug in the current devel version ?

Kind regards,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Chris Yate
Your 3rd full bar has only 5 quavers. It should be a partial, if that's
what you want.

On 23 December 2015 at 11:47, Robert Blackstone  wrote:

> Dear all,
>
> In one of the pieces that I'm presently typesetting there appears, near
> the end, after a repeat, a barline that should not be there. (See the MWE
> below)
>
> How can I either get rid of it or else hide it?
>  _
> \version "2.18.2"
>
>
> {\relative c {
>\clef bass
>\key c \major
>\time 6/8
>
> \repeat volta 2 {\partial 8
> c'8
>  c4. c |
>  c c |
>  c r4|
>  }
>
>  c4.~  c \bar "|."
>  }
> }
> __
> Thanks in advance for any advice,
>
> Best regards,
> Robert Blackstone
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Chris Yate
On 23 December 2015 at 12:03, Chris Yate  wrote:

> Your 3rd full bar has only 5 quavers. It should be a partial, if that's
> what you want.
>


Erm. I may be wrong...
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Robert Blackstone
Hello, 

Did I notice warning: barcheck failed at: 5/8
c r4
  | ?
Yes, I did. 
Should the r4 be r4. ? 
No, I don't think so, for if there is, in this repeated section, a partial 8 at 
the beginning it is logical that the last bar of that section has one eighth 
note or rest less.
More importantly, this is what the original has, and for many reasons I want to 
stick to that.  
Maybe it's "illegal" but shouldn't be there some trick to hide my sins? 
LilyPond seems full of the most beautiful tricks.

Thanks anyway
.
Best regards,
Robert

On 23 Dec 2015, at 12:56 , Phil Holmes  wrote:

> - Original Message - From: "Robert Blackstone" 
> 
> To: 
> Sent: Wednesday, December 23, 2015 11:47 AM
> Subject: Unwanted barline. How to get rid of it?
> 
> 
>> Dear all,
>> 
>> In one of the pieces that I'm presently typesetting there appears, near the 
>> end, after a repeat, a barline that should not be there. (See the MWE below)
>> 
>> How can I either get rid of it or else hide it?
>> _
>> \version "2.18.2"
>> 
>> 
>> {\relative c {
>>  \clef bass
>>  \key c \major
>>  \time 6/8
>> 
>> \repeat volta 2 {\partial 8
>> c'8
>> c4. c |
>> c c |
>> c r4|
>> }
>> 
>> c4.~  c \bar "|."
>> }
>> }
>> __
>> Thanks in advance for any advice,
>> 
>> Best regards,
>> Robert Blackstone
> 
> Did you notice:
> 
> Blackstone.ly:13:9: warning: barcheck failed at: 5/8
> c r4
>   |
> 
> in the output log?  Should your r4 be r4. ?
> 
> --
> Phil Holmes 


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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread lilypond

Am 2015-12-23 13:59, schrieb Chris Yate:

I think using a partial bar is more intuitive than "/set
Timing.measurePosition = #(ly:make-moment 6/8)". But there may be
situations where the latter is necessary.



This depends on whether you really have an upbeat (f.e. Scherzo ends 
with full measure, Trio starts with upbeat) or an "incomplete" measure 
(f.e. if you have bars of different length whithout explicitely changing 
the time signature; see last of Rachmaninov's Etudes-Tableaux). Have a 
look at the output of the following code. Three different solutions show 
three different types of behaviour (look at bar lines and bar numbers).


\version "2.18.2"

{
\override Score.BarNumber.break-visibility = #'#(#t #t #t)

b4 b b b
b b b \set Timing.measurePosition = #(ly:make-moment 4/4)
\mark "missing barline"
b b b b
\break

b b b b
	\set Timing.measureLength = #(ly:make-moment 3/4) b b b \unset 
Timing.measureLength

\mark "everything ok (if it's an 'incomplete' measure)"
b b b b
\break

b b b b
\partial 4*3
b b b
\mark "m. 8 counts twice (ok if it's really an upbeat)"
b b b b
}

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Wols Lists
On 23/12/15 12:21, Robert Blackstone wrote:
> Yes, it should be a partial. 
> But I do not know how to code that, 5 instead of 6 eighth notes, at the
> end of a section.

I've not tried it, but would an s8 work? If you just need to pad the bar
out, that seems obvious to me.

I was just thinking that this is a different approach to what everyone
else has suggested so it might be a great curveball, or it might be
completely off key (sic) :-)

Cheers,
Wol

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Robert Blackstone
Yes, it should be a partial. 
But I do not know how to code that, 5 instead of 6 eighth notes, at the end of 
a section.

Regards,
Robert



On 23 Dec 2015, at 13:03 , Chris Yate  wrote:

> Your 3rd full bar has only 5 quavers. It should be a partial, if that's what 
> you want.
> 
> On 23 December 2015 at 11:47, Robert Blackstone  
> wrote:
> Dear all,
> 
> In one of the pieces that I'm presently typesetting there appears, near the 
> end, after a repeat, a barline that should not be there. (See the MWE below)
> 
> How can I either get rid of it or else hide it?
>  _
> \version "2.18.2"
> 
> 
> {\relative c {
>\clef bass
>\key c \major
>\time 6/8
> 
> \repeat volta 2 {\partial 8
> c'8
>  c4. c |
>  c c |
>  c r4|
>  }
> 
>  c4.~  c \bar "|."
>  }
> }
> __
> Thanks in advance for any advice,
> 
> Best regards,
> Robert Blackstone
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Thomas Morley
2015-12-23 13:18 GMT+01:00 Robert Blackstone :
> Hello,
>
> Did I notice warning: barcheck failed at: 5/8
> c r4
>   | ?
> Yes, I did.
> Should the r4 be r4. ?
> No, I don't think so, for if there is, in this repeated section, a partial 8 
> at the beginning it is logical that the last bar of that section has one 
> eighth note or rest less.

No. If you spell out the repeat you'll see it directly:

\relative c {
  \time 6/8
  \partial 8 c'8 c4. c | c c | c r4 c8 | c4. c | c c | c r4 | %% <- missing 8
  c4.~  c \bar "|."
}

> More importantly, this is what the original has, and for many reasons I want 
> to stick to that.
> Maybe it's "illegal" but shouldn't be there some trick to hide my sins? 
> LilyPond seems full of the most beautiful tricks.
>


Easiest fix might be:

\relative c {
  \clef bass
  \time 6/8
  \repeat volta 2 { \partial 8 c'8 c4. c | c c | c r4 }
  \set Timing.measurePosition = #(ly:make-moment 6/8)
  c4.~  c \bar "|."
}

HTH,
  Harm

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Noeck
Hi Robert,

do you mean something like this?

{
  \relative c {
\clef bass
\key c \major
\time 6/8
\partial 8
\repeat volta 2 {
  c'8
  c4. c |
  c c |
  c r4
}
r8 | c4.~  c \bar "|."
  }
}

Cheers,
Joram

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Robert Blackstone

On 23 Dec 2015, at 13:23 , Thomas Morley  wrote:

>> 
> 
> No. If you spell out the repeat you'll see it directly:
> 
> \relative c {
>  \time 6/8
>  \partial 8 c'8 c4. c | c c | c r4 c8 | c4. c | c c | c r4 | %% <- missing 8
>  c4.~  c \bar "|."
> }
> 
>> More importantly, this is what the original has, and for many reasons I want 
>> to stick to that.
>> Maybe it's "illegal" but shouldn't be there some trick to hide my sins? 
>> LilyPond seems full of the most beautiful tricks.
>> 
> 
> 
> Easiest fix might be:
> 
> \relative c {
>  \clef bass
>  \time 6/8
>  \repeat volta 2 { \partial 8 c'8 c4. c | c c | c r4 }
>  \set Timing.measurePosition = #(ly:make-moment 6/8)
>  c4.~  c \bar "|."
> }
> 
> HTH,
>  Harm


Thank you very much. 
This is exactly what I need.

Best regards,
Robert


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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Chris Yate
Just checked. As I said -- you may want another partial bar

   \relative c {
   \clef bass
   \key c \major
   \time 6/8

\repeat volta 2 {\partial 8
c'8
 c4. c |
 c c |
* \partial 8*5*
 c r4|
 }

 c4.~  c \bar "|."
 }



On 23 December 2015 at 12:23, Noeck  wrote:

> Hi Robert,
>
> do you mean something like this?
>
> {
>   \relative c {
> \clef bass
> \key c \major
> \time 6/8
> \partial 8
> \repeat volta 2 {
>   c'8
>   c4. c |
>   c c |
>   c r4
> }
> r8 | c4.~  c \bar "|."
>   }
> }
>
> Cheers,
> Joram
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Robert Blackstone

On 23 Dec 2015, at 13:44 , Chris Yate  wrote:

> Just checked. As I said -- you may want another partial bar
> 
>\relative c {
>\clef bass
>\key c \major
>\time 6/8
> 
> \repeat volta 2 {\partial 8
> c'8
>  c4. c |
>  c c |
>  \partial 8*5
>  c r4|
>  }
> 
>  c4.~  c \bar "|."
>  

Thank you Chris. This does it.
I did not know how to code this.

Best regards,

Robert 

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


Re: Unwanted barline. How to get rid of it?

2015-12-23 Thread Chris Yate
On 23 December 2015 at 12:55, Robert Blackstone  wrote:

>
> On 23 Dec 2015, at 13:44 , Chris Yate  wrote:
>
> Just checked. As I said -- you may want another partial bar
>
>\relative c {
>\clef bass
>\key c \major
>\time 6/8
>
> \repeat volta 2 {\partial 8
> c'8
>  c4. c |
>  c c |
> * \partial 8*5*
>  c r4|
>  }
>
>  c4.~  c \bar "|."
>
>
>
> Thank you Chris. This does it.
> I did not know how to code this.
>
> Best regards,
>
> Robert
>

Yes, that syntax is not obvious from the documentation. I have used this on
typesetting some Beethoven variations which have anacrusis bars; I needed
"\partial 16*10" in one place.

I think using a partial bar is more intuitive than "/set
Timing.measurePosition = #(ly:make-moment 6/8)". But there may be
situations where the latter is necessary.

HTH. Thanks,

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