one-line percussion staff: barlines end incorrectly

2004-12-01 Thread Antti Kaihola
One-line drum staves work better now, but there's still something wrong
with the barlines and especially repeats.

I'd like the barlines to extend above the single staff line. Imagine
that it's really a 5-line staff with the top and bottom two lines
hidden. Or is it already possible to hide staff lines without it
affecting anything else?

Here's my test case:

\context StaffGroup 
\new DrumStaff \with { \override StaffSymbol #'line-count = #1 }
\drummode { mar2 mar | mar4 mar mar mar | \repeat volta 2 { mar2 mar | } }
\new Staff \relative { c4 d e f | g a b c | \repeat volta 2 { b a g f } }





___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


one-line percussion staff: bar rest on and not under!

2004-12-01 Thread Antti Kaihola
Here's my single staff line example again. There's an R1 there, and the
bar rest symbol floats above the staff line instead of hanging from it
as it should.

\context StaffGroup 
\new DrumStaff \with { \override StaffSymbol #'line-count = #1 }
\drummode { mar2 mar | R1 | \repeat volta 2 { mar2 mar | } }
\new Staff \relative { c4 d e f | g a b c | \repeat volta 2 { b a g f } }





___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


one-line percussion staff, barlines, bar rests and dynamics

2004-11-15 Thread Antti Kaihola
I just tried percussion notation for the first time (with today's CVS)
and noticed a couple of quirks.


No barlines:

I need a percussion staff above a normal five-line staff (piano left
hand). If I make the percussion staff a one-line staff, it doesn't have
barlines anymore. It doesn't matter if I use a StaffGroup or not, I
always get barlines for the lower staff only.

Here's my score layout:

\context StaffGroup 
\new DrumStaff \with { \override StaffSymbol #'line-count = #1 } 
 \maracas
   \dynamicsmaracas 
\new Staff
 \piano
   \dynamicspiano 



Ugly bar rests:

On the percussion staff, I have bars like this:
\time 6/8
R2.\fermata

The bar rest floats above the staff line, when it should be hanging
downwards from it.


Dynamics too close:

DynamicText and Hairpin objects are drawn on top of my music on the
on-line percussion staff unless I specify extra-offset for them.




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: one-line percussion staff, barlines, bar rests and dynamics

2004-11-15 Thread Antti Kaihola
on 2004-11-15 at 19:20 +0100, Mats Bengtsson wrote:

 Why not use the RhythmicStaff context if you only want a one-line
 staff? See
 http://lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Showing-melody-rhythms.html#Showing-melody-rhythms
 This will give you bar lines.

Yes, thanks, the barlines seems to work better, and this solves my
problem; I just need to explicitly do a
  \consists Clef_engraver
as well as
  \override NoteHead #'style = #'cross
  \clef percussion
to get the percussion clef and cross note heads, too.

Isn't DrumStaff really the correct way to do this, since the
composer's intention is to have a maracas in the pianist's right hand?




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


one-line percussion staff: no barlines

2004-11-15 Thread Antti Kaihola
on 2004-11-15 at 19:02 +0100, Erik Sandberg wrote:
 Can you please send complete (=compilable) scores which reproduce your 
 problems?


Here's a score with the no-barlines problem:

\context StaffGroup 
\new DrumStaff \with { \override StaffSymbol #'line-count = #1 }
\drummode { mar2 mar | mar mar | }
\new Staff \relative { c4 d e f | g a b c | }



Works fine with two lines:

\context StaffGroup 
\new DrumStaff \with { \override StaffSymbol #'line-count = #2 }
\drummode { mar2 mar | mar mar | }
\new Staff \relative { c4 d e f | g a b c | }



My command line is as follows:
# lilypond -f ps one-line-staff-no-barlines.ly


one-line-staff-no-barlines.pdf
Description: Adobe PDF document
___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Bug? Breaking pedals

2004-09-21 Thread Antti Kaihola
For some reason there a gap in the pedal bracket for bars 12-21 in the
score below although it should be continuous from the beginning to end.
If I replace the music with a single repeating note, the pedal is ok
too. Strange.

\score {

\relative des, {
\clef bass
\override Staff.DynamicText #'extra-offset = #'(-5 . 0)
des as'1\f | des as'  | des as' | des as'~ |
des as'~   | des as'~ | des as'\fermata |
\clef treble
c'' g'2- c g'- | c g'- c g'- |
c g'- d a'4 es b'4 | e b'1-~ |
e   b' | 
\time 9/8 s1 s8  |
\time 4/4 s1 |
s1*7 |
\clef bass b,8-.-3 b-.b-. b-. b-. b-. b-. a-. |
\clef bass \dynamicUp
des, as'1-\f | des as'-  | des as'- |
des as'4- c g'2.-~ |
cg '4 \stemUp
ges''8-2_\markup { \italic vapaasti } [( as b]) 
\stemDown
a-2[(  g   f]) \stemUp | 
ges[( as]) \stemDown
a[(g   ]) \stemUp
ges[( as]) \stemDown
a[( g]) \stemUp | 
ges[( as])  g-1[(  as?-3] \stemUp
g  [  as   g   as]) | s1 | }

\\

{ 
\set Staff.pedalSustainStyle = #'mixed
s1*3\sustainDown | 
s1*4\sustainUp\sustainDown |
s1*3\sustainUp\sustainDown | 
s1*2\sustainUp\sustainDown | s8*9 | s1 |
s1*8\sustainUp\sustainDown | 
s1*3\sustainUp\sustainDown | 
s4 s2.\sustainUp\sustainDown |
s1*4 | 
}

}



___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


accidental styles piano and piano-cautionary gone berserk

2004-09-17 Thread Antti Kaihola
In 2.3.17, I suddenly get flats and sharps on every single flattened or
sharpened note, whereas in 2.2.0 the cautionaries occurred only where
the same note with different accidentals had appeared on another staff.

\relative es' { 
#(set-accidental-style 'piano)
es8 ges as bes as ges es ges | as bes as ges es ges as bes |
% accidentals appear on every note!

#(set-accidental-style 'piano-cautionary)
as ges es ges as bes as ges | es ges as bes as ges es ges |
% accidentals or cautionaries with parentheses on every note!
}




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Landscape with set-paper-size (was: Landscape cancels linewidth)

2004-09-16 Thread Antti Kaihola
on 2004-09-16 at 01:00 +0200, Han-Wen Nienhuys wrote:
 I think it should be
 
 #(set-default-paper-size a4 'landscape)
 \bookpaper {
  linewidth = ..
 }

That works. Thanks!

Actually that's quite clearly what it says in the documentation.[1]

It says also: If the symbol landscape is supplied as argument to set-
default-paper-size, the pages will be rotated 90 degrees, and line
widths will be set longer correspondingly.

Does this mean that 'landscape does NOT work with set-paper-size but
only with set-default-paper-size? In other words, is it not possible to
achieve the same by using 
  
  #(set-paper-size a4 'landscape)

in the \paper section? I tried it and tried placing the section both
inside and outside the \score section, but I always got a portrait page.
If so, maybe that could be stressed in the 7.5.10 Paper size part of
the documentation[1]?

[1] 
http://www.lilypond.org/doc/v2.3/Documentation/user/out-www/lilypond/Paper-size.html



___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Landscape cancels linewidth (was: Titles don't follow leftmargin and linewidth)

2004-09-15 Thread Antti Kaihola
On 2004-09-13 at 14:25 -0300, Pedro Kroger wrote:

 In that case linewidth only affects the music, not the titles. You
 should put linewidth inside \bookpaper. I also advise you tho put
 bookpaper before any paper command.

Thanks! Your corrected example below works ok for portrait paper.
However, I run into problems again if I want to get landscape pages:
With

  \bookpaper {
#(set-default-paper-size a4 'landscape)
leftmargin = 50 \mm
linewidth = 100 \mm 
  }

, I still get a portrait page. By moving set-default-paper-size to a new
\paper section:

  \paper { 
#(set-default-paper-size a4 'landscape) 
  }

, I get a landscape page, but the music won't obey the linewidth.
If I do

  \paper { 
#(set-default-paper-size a4 'landscape) 
linewidth = 100 \mm
  }

the music is now 100 mm narrow, but the titles are still wide.

To me it looks like using set-default-paper-size somehow forgets about
\bookpaper settings.


Pedro wrote:
 This should give the output you want:
 
 
 \header {
 title = Title goes too much to the right
 composer = Composer goes too much to the right
 }
 
 \bookpaper {
 leftmargin = 50 \mm
 linewidth = 100 \mm 
 }
 
 \score {
 \new Staff \relative c' { 
 g f e g | f e d f | e d c e |
 d c b g | a c b d | c1 \bar |. }
 }




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Slurs and staccato dots

2004-09-15 Thread Antti Kaihola
It seems that there's still room for improvement in the slur algorithm
when spacing gets tight and short slurs have to travel a large interval
and end near a staccato dot. In the example below, thirds and fourths
look nice, but on bigger jumps the end of the slur goes beyond the
staccato dot and too high.

This is LilyPond 2.3.17 on Linux.


\include suomi.ly

\score {
\relative c' {
d 4 ( f -.) f2|
c 4 ( f -.) f2| 
h,4 ( f'-.) a,( f'-.) |
c 4 ( g'-.) g-. g -.  |
a,  ( g'-.) g-. g-.   | 
h,  ( g'-.) f-. d -.  |
e8  ( f g f) e2   |
e8  ( f g f) e2   |
}
}


PDF:
http://www.kaihola.fi/~akaihola/lilypond/slurs_and_staccatos.pdf




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Titles don't follow leftmargin and linewidth

2004-09-13 Thread Antti Kaihola
I want to print a narrow score centered on the paper. When I specify
both leftmargin and linewidth, I get the music to align as I'd like to,
but the titles don't seem to follow the new right margin which is
implied by my settings.

Also, for some reason LilyPond won't break staves in the example below,
and the result is terribly dense.

I found one thread[1] on lilypond-devel where margins and page layout
were discussed before.

This happens in 2.3.15 on Linux.

Here's an example score:



\header {
title = Title goes too much to the right
composer = Composer goes too much to the right
}

\score {
\new Staff \relative c' { 
g f e g | f e d f | e d c e |
d c b g | a c b d | c1 \bar |. }
\paper { linewidth = 100 \mm }
}

\bookpaper { leftmargin = 50 \mm }



[1] http://lists.gnu.org/archive/html/lilypond-devel/2004-07/msg00112.html



___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond