Re: Full-measure rest in wrong place after overriding

2013-05-28 Thread Ralph Palmer
On Wed, May 22, 2013 at 3:18 PM, Marek Klein  wrote:

> Forwarding to OP:
>
> -- Forwarded message --
> From: David Kastrup 
> Date: 2013/5/20
> Subject: Re: Full-measure rest in wrong place after overriding
> To: bug-lilypond@gnu.org
>
>
> Arttu Punkkinen  writes:
>
> >> I'm not top posting.
> >
> > %The full-measure rest in a wrong place?
> > \version "2.17.18"
> > {
> >  \override Voice.MultiMeasureRest #'staff-position = #0
> >  R1
> > }
>
> What's your expectation instead?
>
> --
> David Kastrup
>

This appears to work properly in 2.17.19. I tried substituting #5 for #0,
and saw an appropriate change. This does not appear to be a bug.

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


Re: Articulate of short \prall

2013-05-28 Thread Ralph Palmer
On Fri, May 24, 2013 at 6:45 PM, Hans Aberg  wrote:

> The "articulate.ly" file (tried with LilyPond 2.16.0) cannot handle
> \prall applied to a 16th note, as in the example below, which is used in
> Balkan music. In the example below, the first 4th note indicates this use,
> and the second the expansion I would prefer: just ignore moving back to the
> ornament main note. Currently, it squeezes an 8th note in, with the error
> "programming error: Going back in MIDI time".
>
> 
>
> \include "articulate.ly"
>
> music = <<
>   \new Staff {
>   \tempo 4 = 120
>   \time 2/4
> \relative c' {
>   d16 c\prall b a  d16 c32 d b16 a |
> }
>   }
> >>
>
> \score {
>   \music
> \layout {}
> }
>
> \score {
>   \unfoldRepeats \articulate \music
> \midi {}
> }
>
> 
>

I do not like to do this, but I'm going to have to ask someone else on the
bug list to evaluate this. I cannot distinguish what's going on in the midi
file to tell whether midi is behaving the way Hans Aberg says, nor do I
know exactly how articulate.ly is supposed to behave. It does appear to me
that \prall, if it's behaving the way Hans Aberg says it is, is behaving
the way I would expect an upper pralltriller, or upper mordent, to behave.
Is Hans Aberg requesting a new feature?

Would someone else on the bug list please take over this report?

Thank you,

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


Re: vowel aligned lyrics - want to improve it

2013-05-28 Thread Wolf Alight
Hello

Here are some improvements that I did awhile ago. Maybe it's useful.

Best regards
Torulf

\version "2.14.1"

%
% Definitions for vowel alignment
% This code snippet have been sponsored by the Vadstena Sisters in Sweden
%

#(define vowel-set (list->char-set (string->list "AEIOUYÅÄÖaeiouyåäö")))


#(define (width grob text-string)
(let* ((layout (ly:grob-layout grob))
   (props (ly:grob-alist-chain grob (ly:output-def-lookup layout
'text-font-defaults
  (cdr (ly:stencil-extent (ly:text-interface::interpret-markup layout
props (markup text-string)) X

#(define (center-on-vowel grob)
 (let* ((syllable (ly:grob-property-data grob 'text))
  (letter-count (string-length syllable))
(vowel-count (string-count syllable vowel-set))
(note-width (interval-length (ly:grob-property (ly:grob-parent grob X)
'X-extent
   (if (or (= letter-count 1) (= letter-count 0) (= vowel-count
0))
  (let* ((syllable-width (width grob syllable)))
(/ (- note-width syllable-width) 2))
 (let* ((vowel-position (string-index syllable vowel-set))
 (prevowel (substring syllable 0 vowel-position))
 (vowel (if (= (char->integer (string-ref syllable vowel-position))
195) ; swedish letters take up two characters!
(substring syllable vowel-position (+ vowel-position 2))
(substring syllable vowel-position (+ vowel-position
1
 (prevowel-width (width grob prevowel))
 (vowel-width (width grob vowel)))
   (- (/ (- note-width vowel-width) 2) prevowel-width)



%
% Example
%

chant = {

  \relative c'' {

g4 a4( c4) c4 c4( b4) a4 b4 c4 d2

  }
}

words = \lyricmode {

I di -- na hän -- der, Her -- re Gud,
}


\score {
  \new Staff

  <<
\new Voice = "melody" \chant
\new Lyrics \lyricsto "melody" \words
  >>

  \layout {
\context { \Lyrics
  \override LyricText #'X-offset = #center-on-vowel
}
  }
}



2013/4/4 Janek Warchoł 

> Hi all,
>
> On Thu, Apr 4, 2013 at 1:20 AM, Kieren MacMillan
>  wrote:
> > Ultimately, it would be great to have two settings:
> > 1. glyphs which "don't count" for width calculations
> > (e.g., the LyricText "amazing—" should be centred
> > as if it were just "amazing")
>
> http://code.google.com/p/lilypond/issues/detail?id=2451
>
> > 2. glyphs which "don't count" for left-edge determination
> > (e.g., all consonants, if you want vowel-aligned lyrics).
>
> http://code.google.com/p/lilypond/issues/detail?id=2452
>
> I know that i'm horribly late with those, but the work has been
> restarted already.  I have mostly working code for these two issues;
> now i only need to finish
> http://code.google.com/p/lilypond/issues/detail?id=3239 - as the code
> for the above issues touches alignment interface, it makes sense to
> first cleanup the current messy state of alignment, and then add new
> features.
> I'm sorry that this is taking so long :(
>
> best,
> Janek
>
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Articulate of short \prall

2013-05-28 Thread Hans Aberg
On 28 May 2013, at 16:36, Ralph Palmer  wrote:

> I do not like to do this, but I'm going to have to ask someone else on the 
> bug list to evaluate this. I cannot distinguish what's going on in the midi 
> file to tell whether midi is behaving the way Hans Aberg says, nor do I know 
> exactly how articulate.ly is supposed to behave. It does appear to me that 
> \prall, if it's behaving the way Hans Aberg says it is, is behaving the way I 
> would expect an upper pralltriller, or upper mordent, to behave. Is Hans 
> Aberg requesting a new feature?

Likewise, I do not know what articulate.ly is supposed to do. If one applies 
\prall to a 1/8th or longer note, on the first 1/16th, it is starting on the 
main note for a 1/32nd, followed by another 1/32th note with the upper 
auxiliary, followed by the main note until the end.

But what happens if the whole duration is a 1/16th? Then, in Balkan music at 
least, one simply skips moving back to the main note.

But it seems that articulate.ly tries to squeeze in a 1/8th note and then 
"going back in time" to adjust for the additional 1/16th note.

Hans



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


Wrong placed note-heads while modifiying 'staff-space

2013-05-28 Thread Thomas Morley
Reported in the german forum
http://www.lilypondforum.de/index.php?topic=1443.0

Adjusting 'staff-space sometimes results in wrongly placed note-heads.

Minimal example:

\version "2.17.17"

{
  \override Score.StaffSymbol #'staff-space = #(magstep -3)
  
}

Some observations:

{
% Minimale adjustment works:
  \override Score.StaffSymbol #'staff-space = #(magstep -3.1)
  
}

{
% Calculated but too exact (?) value of (magstep -3) doesn't work
  \override Score.StaffSymbol #'staff-space =
#0.70710678118654752440084436210485
  
}

{
% Calculated _and_ rounded value of (magstep -3) works
  \override Score.StaffSymbol #'staff-space = #0.707106781186548
  
}

Other problematic values: -16, -15, -14, -9, -3, 3, 4, 9, 14, 15

Cheers,
  Harm
<>___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond