Stem disappearing

2024-05-21 Thread Rafael González
I am typesetting  a piece and the stem in the first e quarter note
disappears when I add \slurUp upper notes. Is this a bug? Thank you. Rafael.

%%%
with the slur down , see attachment.
\version "2.24.2"
\new PianoStaff

<<

\new Staff <<
\time 4/4
\key a \major

voice one
\new Voice \voiceOne
\relative c'

{
e4-1\mf  ( a8.-3 b16 gis4) r8 \slurUp a-3
\break

}%end voice one


%voice two
\new Voice \voiceTwo
\relative c' {
\stemDown e2 e




}%end voice two
>>%end treble staff





>>%end piano staff







adding  \slurUp the stem in the e initial quarter note disappears. see
attachment stem gone.

\version "2.24.2"
\new PianoStaff

<<

\new Staff <<
\time 4/4
\key a \major

voice one
\new Voice \voiceOne
\relative c'

{
  \slurUp
e4-1\mf  ( a8.-3 b16 gis4) r8 \slurUp a-3
\break

}%end voice one


%voice two
\new Voice \voiceTwo
\relative c' {
\stemDown e2 e




}%end voice two
>>%end treble staff





>>%end piano staff


Re: Stem disappearing

2024-05-21 Thread Werner LEMBERG

> I am typesetting a piece and the stem in the first e quarter note
> disappears when I add \slurUp upper notes.  Is this a bug?

This is the default behaviour of LilyPond: unify stems.  What you need
to do is to tell LilyPond not to use `\voiceOne` (up) and `\voiceTwo`
(down) but rather `\voiceTwo` (down) and `\voiceFour` (down).


Werner


```
\version "2.24.2"

\new PianoStaff <<
  \new Staff <<
\time 4/4
\key a \major

 \new Voice \relative c' {
   \voiceFour
   e4-1\mf( a8.-3 b16 gis4) r8 \slurUp a-3
 }

 \new Voice \relative c' {
   \voiceTwo
   e2 e
 }
  >>
>>
```



Re: Stem disappearing

2024-05-21 Thread Pierre Perol-Schneider
Hi Raphael,
Your voice number commands are missplaced. You'd rather write:

\version "2.24.2"

\new PianoStaff <<
  \new Staff <<
\time 4/4
\key a \major
voice one
\new Voice \relative c' {
  \voiceOne
  %\slurUp % <= not needed
  e4-1\mf  ( a8.-3 b16 gis4) r8 a-3 \break
}%end voice one

voice two
\new Voice \relative c' {
  \voiceTwo
  %\stemDown % <= not needed
  e2 e
}%end voice two
  >>%end treble staff
>>%end piano staff

HTH, cheers,
Pierre

Le mar. 21 mai 2024 à 19:57, Rafael González  a
écrit :

> I am typesetting  a piece and the stem in the first e quarter note
> disappears when I add \slurUp upper notes. Is this a bug? Thank you. Rafael.
>
> %%%
> with the slur down , see attachment.
> \version "2.24.2"
> \new PianoStaff
>
> <<
>
> \new Staff <<
> \time 4/4
> \key a \major
>
> voice one
> \new Voice \voiceOne
> \relative c'
>
> {
> e4-1\mf  ( a8.-3 b16 gis4) r8 \slurUp a-3
> \break
>
> }%end voice one
>
>
> %voice two
> \new Voice \voiceTwo
> \relative c' {
> \stemDown e2 e
>
>
>
>
> }%end voice two
> >>%end treble staff
>
>
>
>
>
> >>%end piano staff
>
>
>
>
>
>
> 
> adding  \slurUp the stem in the e initial quarter note disappears. see
> attachment stem gone.
>
> \version "2.24.2"
> \new PianoStaff
>
> <<
>
> \new Staff <<
> \time 4/4
> \key a \major
>
> voice one
> \new Voice \voiceOne
> \relative c'
>
> {
>   \slurUp
> e4-1\mf  ( a8.-3 b16 gis4) r8 \slurUp a-3
> \break
>
> }%end voice one
>
>
> %voice two
> \new Voice \voiceTwo
> \relative c' {
> \stemDown e2 e
>
>
>
>
> }%end voice two
> >>%end treble staff
>
>
>
>
>
> >>%end piano staff
>


Re: Stem disappearing

2024-05-21 Thread Werner LEMBERG

>> I am typesetting a piece and the stem in the first e quarter note
>> disappears when I add \slurUp upper notes.  Is this a bug?
> 
> This is the default behaviour of LilyPond: unify stems.  What you need
> to do is to tell LilyPond not to use `\voiceOne` (up) and `\voiceTwo`
> (down) but rather `\voiceTwo` (down) and `\voiceFour` (down).

I think I've misunderstood what you want to do.  See code below: You
should use a `\relative` block to enclose everything and `\voiceXXX`
inside to select the voice you need.


Werner


```
\version "2.24.2"

\new PianoStaff <<
  \new Staff <<
\time 4/4
\key a \major

 \new Voice \relative c' {
   \voiceOne
   e4-1\mf( a8.-3 b16 gis4) r8 \slurUp a-3
 }

 \new Voice \relative c' {
   \voiceTwo
   e2 e
 }
  >>
>>
```


Re: stem disappearing/linebreak not working

2015-02-14 Thread Kevin Barry
Hi Charlotte,

You are missing a square bracket to end a beam in the sixth bar of your
example. Instead of

d'16 |  1 |

you should have

d'16] |  1 |

I don't know how you're generating that code (all of the stem up and stem
down stuff is unnecessary), but if you read the output from LilyPond it
usually points you in the right direction. For example, I loaded your code
with Frescobaldi and when l ran LilyPond it highlighted where the problem
was in the code.

hth,
Kevin


On Sat, Feb 14, 2015 at 8:21 PM, Charlotte Godley <
charlotte.god...@hotmail.co.uk> wrote:

> Hi there,
>
> Relative newbie to lilypond. Have a problem in that I’m generating some
> lilypond files from program objects, and for some reason lilypond doesn’t
> appear to be line breaking a couple of my larger test cases, like this one
> - http://i57.tinypic.com/x6gab6.png
> I’ve tried this example removing the bars before bar 6 and it broke into
> systems fine, I’ve also tried a few of the hacks and fixes people have put
> on the internet for forcing lilypond to page break (the objects have
> awareness of where they should line and page break), but none of them seem
> to affect bars 6-26.
>
> Additionally, for some reason the stems seem to be disappearing on a few
> of the notes in the treble clef? Again, this problem went away when I
> manually removed bars 1-6.
>
> Any suggestion on how to fix this? Compressed lilypond code attached.
> Cheers,
> Charlotte
>
>
>
> ___
> 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: stem disappearing/linebreak not working

2015-02-14 Thread Pierre Perol-Schneider
Hi Charlotte,

As Kevin mentioned, there are some typos in your code and many too many
commands.
Please find herewith the way I'd code your score (which doesn't mean that
it's the best way) ; hope you'll find some inspiration in order to avoid
typos and simplified your coding.

Cheers,
Pierre

2015-02-14 22:14 GMT+01:00 Kevin Barry :

> Hi Charlotte,
>
> You are missing a square bracket to end a beam in the sixth bar of your
> example. Instead of
>
> d'16 |  1 |
>
> you should have
>
> d'16] |  1 |
>
> I don't know how you're generating that code (all of the stem up and stem
> down stuff is unnecessary), but if you read the output from LilyPond it
> usually points you in the right direction. For example, I loaded your code
> with Frescobaldi and when l ran LilyPond it highlighted where the problem
> was in the code.
>
> hth,
> Kevin
>
>
> On Sat, Feb 14, 2015 at 8:21 PM, Charlotte Godley <
> charlotte.god...@hotmail.co.uk> wrote:
>
>> Hi there,
>>
>> Relative newbie to lilypond. Have a problem in that I’m generating some
>> lilypond files from program objects, and for some reason lilypond doesn’t
>> appear to be line breaking a couple of my larger test cases, like this one
>> - http://i57.tinypic.com/x6gab6.png
>> I’ve tried this example removing the bars before bar 6 and it broke into
>> systems fine, I’ve also tried a few of the hacks and fixes people have put
>> on the internet for forcing lilypond to page break (the objects have
>> awareness of where they should line and page break), but none of them seem
>> to affect bars 6-26.
>>
>> Additionally, for some reason the stems seem to be disappearing on a few
>> of the notes in the treble clef? Again, this problem went away when I
>> manually removed bars 1-6.
>>
>> Any suggestion on how to fix this? Compressed lilypond code attached.
>> Cheers,
>> Charlotte
>>
>>
>>
>> ___
>> 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
>
>
\version "2.18.2"

\header {
  tagline = ##f % <= remove "Music engraving by LilyPond 2.18.2—www.lilypond.org"
}

\markuplist { % <= see: http://lilypond.org/doc/v2.18/Documentation/notation/text-markup-list-commands.html
  \vspace #0.5 % <= put some space here
  \abs-fontsize #24.0 "Sweet Lady"
  \abs-fontsize #14.0 "Solo Piano"
  \vspace #0.3 % <= put some space here
  \abs-fontsize #12.0 "arr. Karim Kamar"
  \vspace #1 % <= put some space here
  %% Note that you can get the same in the \header { }, see: http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers.html
}

sweetLadyRH = \transpose c c' { % <= just here to reach the octave
  \clef G 
  \key c \major  
  \time 4/4
  | % mes.1
b8 c' e' a2~ a8
  | % mes.2
2~ q4~ q8 c'8\noBeam
  | % mes.3
b4 c'8 g2~ g8~
  | % mes.4
g2~ g8  b b~
  | % mes.5
b8 c' b g2~ g8~
  | % mes.6
g2~ g8[ ~ q16 d8~ d16]
  | % mes.7
1
  | % mes.8
4   ~
  | % mes.9
q4c'~
  | % mes.10
%\autoBeamOff % <= possibly
c'4 8  4 8 ~
  | % mes.11
q4   ~ 
  | % mes.12
q4   ~
  | % mes.13
q4   ~ 
  | % mes.14
q4 8  4 8 ~
  | % mes.15
q4   
  | % mes.16
4   
  | % mes.17
4 c'8 g2~ g8~
  | % mes.18
g4 8  4 8 ~
  | % mes.19
q4   ~
  | % mes.20
q4   
  | % mes.21
4 c'8 g2~ g8~
  | % mes.22
g4 8  4 8 ~
  | % mes.23
q4   
  | % mes.24
4   ~
  | % mes.25
q4 b8 a b a g4~ 
  | % mes.26
g4 c8 c e c 
s4 % <= here to complete time sig.
  % end
  \bar "|."
}

sweetLadyLH = {
  \clef F
  \key c \major  
  \time 4/4
  | % mes.1
a8 e' a' g'2~ g'8~
  | % mes.2
g'1 
  | % mes.3
f8 c' f' f'2~ f'8
  | % mes.4
c'2 
  | % mes.5
a,8 e a b4~ b8 c'4
  | % mes.6
e'2 
  | % mes.7
1
  | % mes.8
4   
  | % mes.9
a,8 e a b c' b e g,
  | % mes.10
f,8 c a f c' f' g' c'
  | % mes.11
d,8 a, f d a d' e' d
  | % mes.12
\stemDown e,8 e g b \stemNeutral e' b g b 
  | % mes.13
a,8 e c' a e' a' b' e'
  | % mes.14
f,8 c a f c' f' g' c'
  | % mes.15
d,8 a, f d a d' e' d
  | % mes.16
e,8 e d, d c, c b, b
  | % mes.17
a,8 e a c' e' a' g' g,
  | % mes.18
f,8 c a f c' f' g' c'
  | % mes.19
d,8 a, f d a d' e' d
  | % mes.20
\stemDown e,8 e g b e' b g b
  | % mes.21
a,8 e a b \stemUp e c' a, g,
  | % mes.22
\stemNeutral f,8 c a f c' f' g' c'
  | % mes.23
d,8 a, f d a d' e' d
  | % mes.24
e,8 e d, d c, c b,, b,
  | % mes.25
a,8 e a e b e a, e 
  | % mes.26
f,8 c f c g c a  f,
  %end
  \bar "|."
}

\score {
  \new PianoStaff % <= my choice
  %\new StaffGroup % <= your choice
\with { instrumentName = #"Piano " } 
<<
  \new Staff \sweetLadyRH
  \new Staff \sweetLadyLH
>>
  % pdf output:
  \layout {}
  % midi output:
  \midi {
\tem

Re: stem disappearing/linebreak not working

2015-02-14 Thread Charlotte Godley
Hi Pierre,

Thanks a lot for your improvements - I’m aware I don’t need all the 
stemUp/stemDowns, I’ll be tidying up how those are handled at some stage in dev 
- mostly the lilypond code I’m creating isn’t seen by anyone but me, but for 
debug purposes I’ll try and get most of your improvements put in so it’s easier 
to read/the files aren’t quite as big.

Cheers,
Charlotte
> On 15 Feb 2015, at 00:16, Pierre Perol-Schneider 
>  wrote:
> 
> Hi Charlotte,
> 
> As Kevin mentioned, there are some typos in your code and many too many 
> commands.
> Please find herewith the way I'd code your score (which doesn't mean that 
> it's the best way) ; hope you'll find some inspiration in order to avoid 
> typos and simplified your coding.
> 
> Cheers,
> Pierre
> 
> 2015-02-14 22:14 GMT+01:00 Kevin Barry  >:
> Hi Charlotte,
> 
> You are missing a square bracket to end a beam in the sixth bar of your 
> example. Instead of
> 
> d'16 |  1 |
> 
> you should have
> 
> d'16] |  1 |
> 
> I don't know how you're generating that code (all of the stem up and stem 
> down stuff is unnecessary), but if you read the output from LilyPond it 
> usually points you in the right direction. For example, I loaded your code 
> with Frescobaldi and when l ran LilyPond it highlighted where the problem was 
> in the code.
> 
> hth,
> Kevin
> 
> 
> On Sat, Feb 14, 2015 at 8:21 PM, Charlotte Godley 
> mailto:charlotte.god...@hotmail.co.uk>> 
> wrote:
> Hi there,
> 
> Relative newbie to lilypond. Have a problem in that I’m generating some 
> lilypond files from program objects, and for some reason lilypond doesn’t 
> appear to be line breaking a couple of my larger test cases, like this one - 
> http://i57.tinypic.com/x6gab6.png 
> I’ve tried this example removing the bars before bar 6 and it broke into 
> systems fine, I’ve also tried a few of the hacks and fixes people have put on 
> the internet for forcing lilypond to page break (the objects have awareness 
> of where they should line and page break), but none of them seem to affect 
> bars 6-26.
> 
> Additionally, for some reason the stems seem to be disappearing on a few of 
> the notes in the treble clef? Again, this problem went away when I manually 
> removed bars 1-6.
> 
> Any suggestion on how to fix this? Compressed lilypond code attached.
> Cheers,
> Charlotte
> 
> 
> 
> ___
> 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 
> 
> 
> 
> 

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