Re: Repeat bar lines inside \markup block?

2015-05-06 Thread Tobias Braun
Thanks a lot!

Tobias


Am 06.05.2015 um 12:58 schrieb Pierre Perol-Schneider 
pierre.schneider.pa...@gmail.com:

 Hi Tobias, Hi Harm,
 
 See: 
 http://lilypond.1069038.n5.nabble.com/Repeat-signs-bar-lines-in-markup-td140533.html#a140596
 See also: http://www.lilypondforum.de/index.php?topic=1938.msg10590#msg10590
 
 Cheers,
 Pierre
 
 2015-05-06 2:45 GMT+02:00 Thomas Morley thomasmorle...@gmail.com:
 2015-05-06 1:24 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
  Hi,
 
  Is there a way to print nice repeat bar lines in a \markup block used for 
  verses of a song printed below the main score, instead of having to resort 
  to |: or /:? I tried pasting the respective unicode signs and they 
  display fine in my text editor, but unfortunately, LilyPond turns them into 
  garbage in the rendered output.
 
  Tobias
 
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 I once started work on a markup-command called bar-line.
 Maybe you'll find it in the archives. I'm too tired to search myself.
 
 Cheers,
   Harm
 
 ___
 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: Lyric tie inside word?

2015-05-06 Thread Tobias Braun
Hi Kieren,

I see, thanks!

Tobias


Am 06.05.2015 um 02:46 schrieb Kieren MacMillan kieren_macmil...@sympatico.ca:

 Hi Tobias,
 
 How would I put that character _below_ a word (as opposed to in-between two 
 words)?
 
 Maybe like:
 
 \version 2.19.17
 \markup \combine test \translate #'(0.85 . -0.5) ‿
 
 Hope this helps!
 Kieren.
 
 
 
 Kieren MacMillan, composer
 ‣ website: www.kierenmacmillan.info
 ‣ email: i...@kierenmacmillan.info
 


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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Whoa! This works and the output is nice-looking, but what the ***? That's a ton 
of code you hacked together there! Shouldn't such a solution go into LilyPond 
itself in some way? (Maybe with a proper API where you can specify start and 
end characters inside the word, similar to \( and \).)


Am 06.05.2015 um 01:08 schrieb Thomas Morley thomasmorle...@gmail.com:

 2015-05-06 1:02 GMT+02:00 Tobias Braun lists.tob...@braun-abstatt.de:
 Never mind. It's working now, thanks a lot!
 
 Good night,
 Tobias
 
 
 Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:
 
 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.
 
 
 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the \markup 
 section.
 
 If I do it like you say below, I just get the code printed in the lyrics. 
 If I end the string before \override and start a new one after 
 köñiglichen, it works, but then I get line breaks around königlichen. 
 Adding \markup doesn't improve things either.
 
 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two 
 arguments: a pair and a markup. The pair consists of property and value, 
 given in Scheme syntax: #'(word-space . 0). The markup is produced using 
 \tied-lyric, which takes a string (a series of characters enclosed in ) 
 as its argument, again prefixed with # to make it a Scheme expression. And 
 in order to use them in \lyricmode, you have to enclose them in \markup 
 explicitly.
 
 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 How about:
 
 
 \version 2.19.18
 
 %% https://code.google.com/p/lilypond/issues/detail?id=3088
 %% extended
 
 %%FIXME: add `\undertie undertied' to regression/markup-commands.ly
 
 %% FIXME: cp from stencil.scm -- define-public and remove copy
 #(define (make-bezier-sandwich-stencil coords thick xext yext)
  (let* ((command-list `(moveto
,(car (list-ref coords 3))
,(cdr (list-ref coords 3))
curveto
,(car (list-ref coords 0))
,(cdr (list-ref coords 0))
,(car (list-ref coords 1))
,(cdr (list-ref coords 1))
,(car (list-ref coords 2))
,(cdr (list-ref coords 2))
curveto
,(car (list-ref coords 4))
,(cdr (list-ref coords 4))
,(car (list-ref coords 5))
,(cdr (list-ref coords 5))
,(car (list-ref coords 6))
,(cdr (list-ref coords 6))
closepath)))
  (ly:make-stencil
`(path ,thick `(,@' ,command-list) 'round 'round #t)
xext
yext)))
 
 %% FIXME: rewrite generic wrt axes and replace make-parenthesis-stencil
 #(define (make-bow-stencil width height thickness angularity)
 Create a bow stencil.
 @var{width} is the width of the bow markup.
 @var{thickness} is the thickness of the bow.
 @var{height} is the heigth of the bow.
 The higher the value of number @var{angularity},
 the more angular the shape of the bow.
   (let* ((line-width 0.1)
  (base-x (if ( width 0) (- width) 0))
  (base-y (if ( height 0) (- height) 0))
  (x-extent (ordered-cons 0 width))
  (y-extent (ordered-cons 0 height))
  (left-x (interval-start x-extent))
  (right-x (interval-end x-extent))
  (inner-y 0)
  (outer-y height)
  (left-end-point (cons left-x inner-y))
  (right-end-point (cons right-x inner-y))
  (outer-control-y (+ inner-y (* 4/3 outer-y)))
  (inner-control-y (+ outer-control-y
 (if ( height 0) thickness (- thickness
  ;; keeping angularity allows for refactoring and
  ;; merging with make-parenthesis-stencil
  (offset-index (- (* 0.6 angularity) 0.8))
  (left-control-x (interval-index x-extent offset-index))
  (right-control-x (interval-index x-extent (- offset-index)))
  (left-outer-control-point
 (cons left-control-x outer-control-y))
  (right-outer-control-point
 (cons right-control-x outer-control-y))
  (right-inner-control-point
 (cons right-control-x inner-control-y))
  (left-inner-control-point
 (cons left-control-x

Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Btw: I'm of course getting the bar check warnings described under Known issues 
and warnings if I put \unfoldRepeats in my MIDI context. Not very nice at all, 
especially for such a relatively simple piece of music ...


Am 06.05.2015 um 01:02 schrieb Simon Albrecht simon.albre...@mail.de:

 Indeed. I’ll make a bug report.
 
 Yours, Simon
 
 Am 06.05.2015 um 00:55 schrieb Tobias Braun:
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html
 
 Search for Timing.measureLength there.
 
 
 Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a 
 good idea after all? Shouldn't the documentation be updated accordingly 
 then?
 In which place? Please give a link.
 ~ Simon
 


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


Repeat bar lines inside \markup block?

2015-05-05 Thread Tobias Braun
Hi,

Is there a way to print nice repeat bar lines in a \markup block used for 
verses of a song printed below the main score, instead of having to resort to 
|: or /:? I tried pasting the respective unicode signs and they display 
fine in my text editor, but unfortunately, LilyPond turns them into garbage in 
the rendered output.

Tobias


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Ok, but the fix tells me to alter a global browser setting, which I may not 
want to after all. It says this is required To get automatic language 
selection. What I really want, however, is manual language selection. Isn't 
that what the language links at the bottom are for? Instead, I am getting a 
broken kind of automatic language selection at the moment. Is there no way to 
turn automatic language selection off? Or just store the user's selection in a 
cookie or something?

Also, there are no instructions for the Safari browser on OS X on that page. 
Looking around the Safari preferences window, I get the impression that there 
is no such setting in Safari at all, let alone a way to configure it per site. 
(LilyPond documentation is the only web site I ever encountered which exhibits 
this problem.)


Am 06.05.2015 um 00:24 schrieb Simon Albrecht simon.albre...@mail.de:

 Well, in Lilypond we always try to represent the musical content 
 appropriately, and contrary to what Steven suggested, the measure length 
 doesn’t change here, only the second alternative ‘misses out one beat’ or 
 starts at another measure position. So setting measurePosition is the way to 
 go here. Although it /would/ be nice if Lily could do it right without 
 explicitly telling her – but there are quite a few things we still have to 
 teach her :-)
 
 Concerning automatic language selection on the website: there is an 
 explanation how to fix this on the bottom of every page. I hope it will help.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:56 schrieb Tobias Braun:
 Yes, it does, thank you!
 
 But the docs tell me to use measureLength in some way. Is using 
 measurePosition, as you suggested, just another way of doing the same thing? 
 Or is my situation that much different from the docs so that a different 
 property has to be modified?
 
 Tobias
 
 
 Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:
 
 Tobias:
 
 Does this work?
 
 \version 2.18.2
 
 \relative c' {
 \partial 4
 \repeat volta 2 { c4 | c c c c | c c c }
 \repeat volta 2 { d4 | d d d d | }
 \alternative { { e4 e e } {
   \set Timing.measurePosition = #(ly:make-moment 1/4)
   f4 f f } } }
 
 Mark
 
 -Original Message-
 From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
 [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
 \partial 4
 \repeat volta 2 { c4 | c c c c | c c c }
 \repeat volta 2 { d4 | d d d d | }
 \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias
 
 
 ___
 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: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
How would I put that character _below_ a word (as opposed to in-between two 
words)?
 

Am 06.05.2015 um 01:16 schrieb Kieren MacMillan kieren_macmil...@sympatico.ca:

 Hi all,
 
 Can’t you just use ‿ ??
 I’ve used it in the past, and it’s worked wonderfully for me.
 
 Hope this helps,
 Kieren.
 
 
 Kieren MacMillan, composer
 ‣ website: www.kierenmacmillan.info
 ‣ email: i...@kierenmacmillan.info
 


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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Never mind. It's working now, thanks a lot!

Good night,
Tobias


Am 06.05.2015 um 00:51 schrieb Simon Albrecht simon.albre...@mail.de:

 So sorry. I should’ve tested the code before posting…
 You need to use \line { } instead of a simple string in . See attachment.
 
 
 Am 06.05.2015 um 00:41 schrieb Tobias Braun:
 I got it to work in \lyricmode now, but it still won't work in the \markup 
 section.
 
 If I do it like you say below, I just get the code printed in the lyrics. If 
 I end the string before \override and start a new one after köñiglichen, 
 it works, but then I get line breaks around königlichen. Adding \markup 
 doesn't improve things either.
 
 What exactly do \override #'(word-space . 0) and \tied-lyric do? When 
 using \override #'(word-space . 0) inside a \lyricmode expression, ~ 
 won't create a lyric tie (with a blank) anymore, but just literally print 
 ~. I have to explicitly use \tied-lyric then.
 They are markup commands. \override (the markup command) takes two arguments: 
 a pair and a markup. The pair consists of property and value, given in Scheme 
 syntax: #'(word-space . 0). The markup is produced using \tied-lyric, which 
 takes a string (a series of characters enclosed in ) as its argument, again 
 prefixed with # to make it a Scheme expression. And in order to use them in 
 \lyricmode, you have to enclose them in \markup explicitly.
 
 I hope that makes it a little clearer. Ein weites Feld…
 Good night, :-)
 Simon
 koeniglichen.ly


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html

Search for Timing.measureLength there.


Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:

 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a good 
 idea after all? Shouldn't the documentation be updated accordingly then?
 In which place? Please give a link.
 ~ Simon


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
I tried both variants. Either of them seem to produce the bar check warnings.


Am 06.05.2015 um 01:09 schrieb Simon Albrecht simon.albre...@mail.de:

 I correct myself: 
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html#normal-repeats,
  at ‘Known issues and warnings’ has a remark about \unfoldRepeats (necessary 
 for MIDI output) giving wrong results if measurePosition is set in an 
 \alternative. This is probably the reason why the example uses measureLength 
 (which gives the same output, after all).
 
 Yours, Simon
 
 Am 06.05.2015 um 01:02 schrieb Simon Albrecht:
 Indeed. I’ll make a bug report.
 
 Yours, Simon
 
 Am 06.05.2015 um 00:55 schrieb Tobias Braun:
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats.html
 
 Search for Timing.measureLength there.
 
 
 Am 06.05.2015 um 00:52 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Am 06.05.2015 um 00:46 schrieb Tobias Braun:
 So modifying measureLength, as suggested by the documentation, isn't a 
 good idea after all? Shouldn't the documentation be updated accordingly 
 then?
 In which place? Please give a link.
 ~ Simon
 
 
 ___
 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: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
I got it to work in \lyricmode now, but it still won't work in the \markup 
section.

If I do it like you say below, I just get the code printed in the lyrics. If I 
end the string before \override and start a new one after köñiglichen, it 
works, but then I get line breaks around königlichen. Adding \markup doesn't 
improve things either.

What exactly do \override #'(word-space . 0) and \tied-lyric do? When using 
\override #'(word-space . 0) inside a \lyricmode expression, ~ won't create 
a lyric tie (with a blank) anymore, but just literally print ~. I have to 
explicitly use \tied-lyric then.

Tobias


Am 06.05.2015 um 00:19 schrieb Simon Albrecht simon.albre...@mail.de:

 Just include everything except \markup instead of the word:
 
 \markup {
   \fill-line {
 \hspace #0.1
  \column {
  \vspace #0.5
   \line { \bold 2.
 \column {
   Er ging aus der Kammer sein, / dem \override #'(word-space . 0) 
 \tied-lyric #kö~niglichen Saal so rein, /
   Gott von Art und Mensch, ...
 }
   }
 
 (It might even work with nested \markup commands)
 
 For use in \lyricmode consider 
 http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-vocal-music#multiple-syllables-to-one-note.
  With german text, however, you still need to override word-space, so see 
 attachment. Alternatively, just leave the tie out…
 
 Yours, Simon
 
 Am 05.05.2015 um 23:52 schrieb Tobias Braun:
 Hello Simon,
 
 Thanks a lot! Marvelous, I'd never have been able to come up with this.
 
 I'm just not quite sure yet how to integrate it with the rest of my lyrics. 
 At the moment, it looks something like this:
 
 \markup {
   \fill-line {
 \hspace #0.1
  \column {
  \vspace #0.5
   \line { \bold 2.
 \column {
   Er ging aus der Kammer sein, / dem königlichen Saal so rein, /
   Gott von Art und Mensch, ...
 }
   }
 
 Where exactly do I put the code you posted below? It's working as a 
 standalone line in my LilyPond file, but I couldn't figure out how to 
 integrate it into the code above. (Neither did I get it to work inside a 
 \lyricmode expression for use in lyrics directly below the notes.)
 
 Tobias
 
 
 Am 05.05.2015 um 23:35 schrieb Simon Albrecht simon.albre...@mail.de:
 
 Hello Tobias,
 
 I’m not sure what you tried previously, but this should do what you want:
 
 \markup \override #'(word-space . 0) \tied-lyric #kö~niglichen
 
 See http://lilypond.org/doc/v2.18/Documentation/notation/music
 Admittedly, it’s not as elegant as the one in the EG :-) – that would 
 require a manually tweaked version – but it’s clear.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:23 schrieb Tobias Braun:
 Hi,
 
 How can I achieve a lyric tie inside a word, as seen in the second verse 
 of the attached music?
 
 Putting a '~' inside the word creates a lyric tie, but also inserts a 
 space, splitting my word into two words.
 
 Moreover, how can I achieve this in a \markup section below the actual 
 score? Down there, it is far more useful than in the lyrics directly below 
 the notes. But in the \markup section, I couldn't even get the lyric tie 
 with a space in it to work. I suppose I'd somehow have to make the \markup 
 section into a \lyricmode one? That didn't work either, unfortunately.
 
 Thanks,
 Tobias
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 
 lyr-tie-german.ly

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


Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Hi,

I have a weird problem with repeats that I just can't figure out. I've read the 
docs and tried different things for hours now, to no avail. Here's my minimal 
example:

%%

\version 2.18.2

\relative c' {
\partial 4
\repeat volta 2 { c4 | c c c c | c c c }
\repeat volta 2 { d4 | d d d d | }
\alternative { { e4 e e } { f4 f f \bar |. } }
}

%%

Can anyone tell me why I get that stray bar line after the first note in the 
second group of the \alternative expression?

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


Re: Lyric tie inside word?

2015-05-05 Thread Tobias Braun
Hello Simon,

Thanks a lot! Marvelous, I'd never have been able to come up with this.

I'm just not quite sure yet how to integrate it with the rest of my lyrics. At 
the moment, it looks something like this:

\markup {
  \fill-line {
\hspace #0.1
 \column {
\vspace #0.5
  \line { \bold 2.
\column {
  Er ging aus der Kammer sein, / dem königlichen Saal so rein, /
  Gott von Art und Mensch, ...
}
  }

Where exactly do I put the code you posted below? It's working as a standalone 
line in my LilyPond file, but I couldn't figure out how to integrate it into 
the code above. (Neither did I get it to work inside a \lyricmode expression 
for use in lyrics directly below the notes.)

Tobias


Am 05.05.2015 um 23:35 schrieb Simon Albrecht simon.albre...@mail.de:

 Hello Tobias,
 
 I’m not sure what you tried previously, but this should do what you want:
 
 \markup \override #'(word-space . 0) \tied-lyric #kö~niglichen
 
 See http://lilypond.org/doc/v2.18/Documentation/notation/music
 Admittedly, it’s not as elegant as the one in the EG :-) – that would require 
 a manually tweaked version – but it’s clear.
 
 Yours, Simon
 
 Am 05.05.2015 um 23:23 schrieb Tobias Braun:
 Hi,
 
 How can I achieve a lyric tie inside a word, as seen in the second verse of 
 the attached music?
 
 Putting a '~' inside the word creates a lyric tie, but also inserts a space, 
 splitting my word into two words.
 
 Moreover, how can I achieve this in a \markup section below the actual 
 score? Down there, it is far more useful than in the lyrics directly below 
 the notes. But in the \markup section, I couldn't even get the lyric tie 
 with a space in it to work. I suppose I'd somehow have to make the \markup 
 section into a \lyricmode one? That didn't work either, unfortunately.
 
 Thanks,
 Tobias
 
 
 
 ___
 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: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Hi Steven, thanks for the reply.

But I'm not really in 3/4 in those measures, am I? I mean, together with the 
partial measure at the very beginning, the alternative measures add up to 4/4 
again, right? Unfolding all the repeats should give a proper 4/4 piece where 
the partial measure at the beginning and the so-called 3/4 measure at the end 
add up to 4/4 again. So this is kind of a limitation of LilyPond's \repeat 
expression, I guess?

I suppose you were referring to the \set Timing.measureLength bit in the 
documentation. I've read that, but I wasn't sure if the criteria described 
there applied to my exact situation and I thus didn't understand how to 
actually apply that workaround to my minimal example.

(Btw: Is there a way to tell the documentation to stick to English without 
having to switch my whole system to English or something? I keep clicking 
English at the bottom of the page, but when navigating around, it will always 
revert to German (my system language) sooner or later. Very annoying when 
working with an English markup language that is LilyPond, posting to an English 
mailing list, and googling for solutions in English.)

Tobias


Am 05.05.2015 um 23:23 schrieb Steven Weber pant...@hotmail.com:

 Because you're in 4/4 and didn't tell Lilypond that the alternative bars
 were in 3/4.  See
 http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats for
 details on how to fix this.
 
 --Steven
 
 -Original Message-
 From: lilypond-user-bounces+panteck=hotmail@gnu.org
 [mailto:lilypond-user-bounces+panteck=hotmail@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias


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


Re: Problem with repeats: stray bar line

2015-05-05 Thread Tobias Braun
Yes, it does, thank you!

But the docs tell me to use measureLength in some way. Is using 
measurePosition, as you suggested, just another way of doing the same thing? Or 
is my situation that much different from the docs so that a different property 
has to be modified?

Tobias


Am 05.05.2015 um 23:41 schrieb Mark Stephen Mrotek carsonm...@ca.rr.com:

 Tobias:
 
 Does this work?
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { 
 \set Timing.measurePosition = #(ly:make-moment 1/4)
 f4 f f } } }
 
 Mark
 
 -Original Message-
 From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
 [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
 Tobias Braun
 Sent: Tuesday, May 05, 2015 2:07 PM
 To: lilypond-user@gnu.org Group
 Subject: Problem with repeats: stray bar line
 
 Hi,
 
 I have a weird problem with repeats that I just can't figure out. I've read
 the docs and tried different things for hours now, to no avail. Here's my
 minimal example:
 
 %%
 
 \version 2.18.2
 
 \relative c' {
   \partial 4
   \repeat volta 2 { c4 | c c c c | c c c }
   \repeat volta 2 { d4 | d d d d | }
   \alternative { { e4 e e } { f4 f f \bar |. } } }
 
 %%
 
 Can anyone tell me why I get that stray bar line after the first note in the
 second group of the \alternative expression?
 
 Thanks,
 Tobias
 


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


RSS/Atom news feed?

2014-03-28 Thread Tobias Braun
Hi,

I was wondering whether there was any such thing as an RSS/Atom news feed for 
the news items on the LilyPond homepage. I remember there used to be one way 
back on the old web site, but now I can't seem to find one.

Right now, I am using a web service that polls the LilyPond homepage, tries to 
parse the HTML for news items and generates an RSS feed from that. But it 
doesn't work very reliably.

I'd really like to keep up with LilyPond news. There has to be a better 
solution than the hack I just mentioned!

Tobias


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


Re: Staff change in piano music - a general approach?

2011-01-02 Thread Tobias Braun
Thanks to all of you for your help.

I've been experimenting with the \partcombine command, which looks like it's 
made to do exactly what I want. But unfortunately, it can only handle a maximum 
of two voices. Nesting doesn't work properly either.

Is there a chance that the \partcombine command will be improved for 2.14 to 
support more than two voices?

At this point, there seems to be no way indeed that doesn't involve lots of 
manual tweaking. However, I encountered one problem with manual tweaking: I 
seem to be unable to apply force-hshift to notes which have been moved to 
another staff via \change Staff.

Regards,
Tobias


Am 31.12.2010 um 16:25 schrieb Jan Warchoł:

 2010/12/31 jakob lund jakob.be...@gmail.com:
 
 I'm probably missing something here, but in your example it seems that
 
 \score {
   \new Staff 
   \global
   \new Voice  \soprano  \alto 
   \new Voice \tenor
   
 }
 
 Jakob, your solution above inspired me to create the following construct:
 
 
 \version 2.12.3
 
 global = {
   \time 2/2
   \key d \minor
 }
 
 soprano = \relative c'' {
 
   \repeat volta 2 {
   g'4 g d4. e8 |
   fis4 fis g d |
   g g d4. e8 |
   fis4 fis g2 |
   }
 
   g4 g g4. f8 |
   g8 a bes4 f2 |
   f4 f f4. e8 |
   f8 d g4 d4. e8 |
 
   \repeat volta 2 {
   f g f es d4. c8 |
   bes8 a bes c d4. e8 |
   f g f es d4 c8 bes |
   a g fis4 g2 |
   }
 }
 
 alto = \relative c'' {
 
   \repeat volta 2 {
   % \stemUp
   b4 c b4. c8 |
   d4 d8 c b2 |
   b4 c b4. c8 |
   d4 d b2 |
   }
 
   b4 c b4. c8 |
   d4 d d2 |
   % \stemDown
   d4 a bes2 |
   bes4 g8 a bes2 |
 
   \repeat volta 2 {
   bes4 a bes4. a8 |
   g f g a bes4. c8 |
   d4 c bes g |
   f8 e d c b2 |
   }
 }
 
 tenor = \relative c' {
 
   \repeat volta 2 {
   \change Staff = upper
   \voiceTwo
   g'4 g g2 |
   a4 a g2 |
   g4 g g2 |
   a4 a g2 |
   }
 
   g4 g g4. a8 |
   bes4 bes bes2 |
   \change Staff = lower
  \voiceOne
   f4 f d2 |
   d4 es d2 |
 
   \repeat volta 2 {
   d4 c d2 |
   es2 d4 f |
   f2 f4 e |
   a,2 g |
   }
 }
 
 bass = \relative c' {
 
   \repeat volta 2 {
   g4 c, g'2 |
   d g |
   g4 c, g'2 |
   d g, |
   }
 
   g'4 c, g'2 |
   g4 g bes2 |
   \voiceTwo
   bes,4 f' bes,2 |
   bes4 es bes2 |
 
   \repeat volta 2 {
   bes4 f' bes,2 |
   es bes |
   bes4 f' bes, c |
   d2 g, |
   }
 }
 
 
 
 rightHand = { 
   \global
   \clef treble
  \new Voice { \voiceOne  \soprano \alto  }
   \new Voice { \tenor }
 
 }
 
 leftHand = {
   \global
   \clef bass
  \bass
 }
 
 \score {
   \new PianoStaff 
   \new Staff = upper \rightHand
   \new Staff = lower \leftHand
 
 }
 
 It's not perfect (sometimes an 8th note gets an unflagged stem or a
 quarter gets a flagged one), but i think it's as elegant as we can
 get.
 I attach the result (made by LilyPond 2.13.44, but i suppose 2.12
 would handle it similarly).
 
 cheers,
 Janek
 
 PS Happy new year! :)
 mixing voices.pdf


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


Re: Staff change in piano music - a general approach?

2010-12-30 Thread Tobias Braun
Sorry about the reply all thing, I forgot that.

I wasn't aware I was sending an HTML e-mail, sorry. That must have been my 
webmail client.

What I actually want to achieve is to have it look as uncluttered as possible. 
It should be easy to read when playing it on the piano. I'd basically like to 
merge all three voices into as few stems as possible. E.g. the notes of the 
first beat in measure 1 which basically form a chord consisting of three notes 
of the same duration played at the same time should appear as stacked, not 
next to each other. There is no need to be able to distinguish the individual 
voices.

As this is kind of hard to describe, please have a look at the attached PDF. I 
guess I'd prefer the first measure to look like Variant 1, but Variant 2 
would be acceptable as well. (I achieved this sample PDF through  chord 
syntax, which is not of much use to me as I already have the individual voices 
in continuous form.)

Regards,
Tobias



untitled.pdf
Description: Adobe PDF document



Am 29.12.2010 um 19:12 schrieb Phil Holmes:

 Please always reply all to continue the discussion on the newsgroup. Please 
 don't use HTML in your messages, thanks.
 
 Using almost that score block (see below), I get the attached PDF.  This 
 looks good to me - is there a problem with it?
 
 \score {
 \new PianoStaff
 
   \new Staff = upper
   
 \global % time and key
 \clef treble
 \new Voice {
   \voiceOne \soprano
 }
 \new Voice {
   \voiceTwo \alto
 }
   
   \new Staff = lower
   
 \global \clef bass
 \new Voice {
   \voiceThree \tenor
 }
 \new Voice {
   \voiceTwo \bass
 }
   
 
 }
 
 
 ==
 Phil Holmes
 
 
 - Original Message - From: tob...@braun-abstatt.de
 To: Phil Holmes
 Sent: Wednesday, December 29, 2010 5:37 PM
 Subject: Re: Staff change in piano music â general approach?
 
 
 Thank you for your response.
 
 I have now changed my implicit { } \\ { } voices construct to
 \new Voice { \voiceOne \soprano } \new Voice { \voiceTwo \alto } \new Voice { 
 \voiceThree \tenor }
 
 \score { \new PianoStaff  \new Staff = upper  \global % time and key 
 \clef treble \new Voice { \voiceOne \soprano } \new Voice { \voiceThree \alto 
 } \new Voice { \voiceTwo \tenor }  \new Staff = lower  \global \clef 
 bass \new Voice { \voiceTwo \bass }   }
 
 
 But I can't seem to get LilyPond to use the same stems for the \voiceOne and 
 \voiceThree voices,
 even when the note durations are the same. They always appear as separate 
 voices.
 
 
 Regards,
 Tobias
 
 
 Phil Holmes m...@philholmes.net hat am 29. Dezember 2010 um 16:16 
 geschrieben:
 
 - Original Message -
 From: Tobias Braun tob...@braun-oberkochen.de
 To: lilypond-user@gnu.org
 Sent: Wednesday, December 29, 2010 2:58 PM
 Subject: Staff change in piano music â?? general approach?
 
 
  Hello,
 
  I am trying to typeset a Renaissance piece consisting of four voices
  in a way that makes it easier to play the piece on the piano, i.e. put
  the music into a PianoStaff. I have separated the individual voices and
  stored them in variables in order to be able to also make a version
  with four staff lines, one for each voice.
 
  Sorry for not providing a minimal example, but I find it really hard to
  make my point on this issue without the real music.
 
  Now for my problem: when putting the four voices into a PianoStaff,
  the beginning of the third voice creates many ledger lines, making
  the music hard to read. What I'd like to do is move the first six bars
  of the third voice from the second staff to the first staff. But my
  attempt to do so, with the help of the manual, has caused quite a
  mess, as you can see when uncommenting the commented lines in the
  example given below.
 
  What would be the best general approach for moving part of the third
  voice to the first staff? Apparently LilyPond doesn't want to combine  the
  voices, just printing one on top of the other instead.
 
 Instead of using \stemUp and \stemDown, have a look at using voices to
 control the placement of notes.  See
 
 http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Simultaneous-notes#Simultaneous-notes
 
 for information on this.
 
  A general question, as I've never really used a mailing list before: I
  sent
  this message via the post.gmane.org form. How do you normally handle
  mailing lists? Am I supposed to subscribe to the list rather than use  the
  gmane form? Should I use a separate e-mail address for the list, in
  order to keep these mails out of my main inbox? Sorry for my lack of
  knowledge regarding mailing lists, but so far, I have only been using
  regular web forums.
 
 It's up to you.  If you're going to use the list frequently, you'll probably
 find it easier to subscribe.  You may want to use an email address that's
 disposable, since you'll probably get more spam because of the email address
 being more widely visible.
 
 
 --
 Phil Holmes
 
 PianoStaff.pdf

Re: Staff change in piano music - a general approach?

2010-12-30 Thread Tobias Braun
Yes, you perfectly understood me. But using chords is totally impractical for 
me as I already have the individual voices as LilyPond code.

I tried as you described below and I'm getting a little closer. However, there 
are still some problems, one of which you can see in the attached example: the 
final chord consisting of two eighth notes actually looks like a sixteenth note 
chord.

\override NoteColumn #'ignore-collision = ##t
is just to suppress the collision warnings, right?

Regards,
Tobias


% example

\version 2.12.3

global = {
\clef treble
\time 2/2
\key g \dorian
}

soprano = \relative c''' {
\voiceOne
g4 g d4. e8 |
}

alto = \relative c'' {
\voiceOne
b4 c b4. c8 |
}

tenor = \relative c'' {
\voiceTwo
g4 g g2 |
}

\score {
\new Staff 
\global
\override NoteColumn #'ignore-collision = ##t
\new Voice { \soprano }
\new Voice { \alto }
\new Voice { \tenor }

}



untitled.pdf
Description: Adobe PDF document


Am 30.12.2010 um 11:21 schrieb Phil Holmes:

 Just checking - you can obviously do what you want from a presentation 
 perspective, since you've provided an example that looks like it came from 
 LilyPond.  I presume you did this using chords, but you want to avoid using 
 chords in your application?
 
 The way I would do this would be to use:
 
 \override NoteColumn #'ignore-collision = ##t
 
 and then set the alto and soprano parts in voiceOne, and the tenor part in 
 voiceTwo.  You do not need to set these for the duration of the piece, so 
 when you cross the tenor part to the other stave, you can put the command 
 \voiceTwo in the alto part and it will now be set into the second voice. You 
 can also set \voiceOne for the tenor part.  You may also want to do:
 
 \override NoteColumn #'ignore-collision = ##f
 
 at the same point.
 
 Let us know how you get on.
 
 --
 Phil Holmes
 
 
 - Original Message - From: Tobias Braun tob...@braun-oberkochen.de
 To: Phil Holmes m...@philholmes.net
 Cc: tob...@braun-abstatt.de; LilyPond User Group lilypond-user@gnu.org
 Sent: Thursday, December 30, 2010 1:50 AM
 Subject: Re: Staff change in piano music - a general approach?
 
 
 Sorry about the reply all thing, I forgot that.
 
 I wasn't aware I was sending an HTML e-mail, sorry. That must have been my 
 webmail client.
 
 What I actually want to achieve is to have it look as uncluttered as 
 possible. It should be easy to read when playing it on the piano. I'd 
 basically like to merge all three voices into as few stems as possible. E.g. 
 the notes of the first beat in measure 1 which basically form a chord 
 consisting of three notes of the same duration played at the same time should 
 appear as stacked, not next to each other. There is no need to be able to 
 distinguish the individual voices.
 
 As this is kind of hard to describe, please have a look at the attached PDF. 
 I guess I'd prefer the first measure to look like Variant 1, but Variant 
 2 would be acceptable as well. (I achieved this sample PDF through  chord 
 syntax, which is not of much use to me as I already have the individual 
 voices in continuous form.)
 
 Regards,
 Tobias 

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


Staff change in piano music � general approach?

2010-12-29 Thread Tobias Braun
Hello,

I am trying to typeset a Renaissance piece consisting of four voices
in a way that makes it easier to play the piece on the piano, i.e. put
the music into a PianoStaff. I have separated the individual voices and
stored them in variables in order to be able to also make a version
with four staff lines, one for each voice.

Sorry for not providing a minimal example, but I find it really hard to
make my point on this issue without the real music.

Now for my problem: when putting the four voices into a PianoStaff,
the beginning of the third voice creates many ledger lines, making
the music hard to read. What I'd like to do is move the first six bars
of the third voice from the second staff to the first staff. But my
attempt to do so, with the help of the manual, has caused quite a
mess, as you can see when uncommenting the commented lines in the 
example given below.

What would be the best general approach for moving part of the third
voice to the first staff? Apparently LilyPond doesn't want to combine the
voices, just printing one on top of the other instead.

A general question, as I've never really used a mailing list before: I sent
this message via the post.gmane.org form. How do you normally handle
mailing lists? Am I supposed to subscribe to the list rather than use the
gmane form? Should I use a separate e-mail address for the list, in
order to keep these mails out of my main inbox? Sorry for my lack of
knowledge regarding mailing lists, but so far, I have only been using
regular web forums.

Regards,
Tobias


% example file

\version 2.12.3

global = {
\time 2/2
\key d \minor
}

soprano = \relative c'' {
\clef treble

\repeat volta 2 {
g'4 g d4. e8 |
fis4 fis g d |
g g d4. e8 |
fis4 fis g2 |
}

g4 g g4. f8 |
g8 a bes4 f2 |
f4 f f4. e8 |
f8 d g4 d4. e8 |

\repeat volta 2 {
f g f es d4. c8 |
bes8 a bes c d4. e8 |
f g f es d4 c8 bes |
a g fis4 g2 |
}
}

alto = \relative c'' {
\clef treble

\repeat volta 2 {
% \stemUp
b4 c b4. c8 |
d4 d8 c b2 |
b4 c b4. c8 |
d4 d b2 |
}

b4 c b4. c8 |
d4 d d2 |
% \stemDown
d4 a bes2 |
bes4 g8 a bes2 |

\repeat volta 2 {
bes4 a bes4. a8 |
g f g a bes4. c8 |
d4 c bes g |
f8 e d c b2 |
}
}

tenor = \relative c' {
\clef treble_8

\repeat volta 2 {
% \change Staff = upper
% \stemDown
g'4 g g2 |
a4 a g2 |
g4 g g2 |
a4 a g2 |
}

g4 g g4. a8 |
bes4 bes bes2 |
% \change Staff = lower
% \stemUp
f4 f d2 |
d4 es d2 |

\repeat volta 2 {
d4 c d2 |
es2 d4 f |
f2 f4 e |
a,2 g |
}
}

bass = \relative c' {
\clef bass

\repeat volta 2 {
g4 c, g'2 |
d g |
g4 c, g'2 |
d g, |
}

g'4 c, g'2 |
g4 g bes2 |
bes,4 f' bes,2 |
bes4 es bes2 |

\repeat volta 2 {
bes4 f' bes,2 |
es bes |
bes4 f' bes, c |
d2 g, |
}
}

rightHand = {
\global
\clef treble
  \soprano \\ \alto   
}

leftHand = {
\global
\clef bass
  \tenor \\ \bass 
}

\score {
\new PianoStaff 
\new Staff = upper \rightHand
\new Staff = lower \leftHand

}



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