Re: font size override and grace notes

2012-10-19 Thread David Kastrup
Matt Cary carym...@gmail.com writes:

 
  I'm still not clear why this is happening in the first place. Why
  should the revert affect an override that occurs in the following
  expression?
 
 It is not following.  Grace notes go back in time.
 

 Ah, thank you. I didn't know that. I see why it's a tricky situation. I guess 
 that means my current workaround isn't so bad after all:

 g8 \strumE d,8 \strumE |
 % Something weird with the strum to the grace note.
 \once \override NoteHead #'font-size = #-2 \slashedGrace a'16( b8)

Ugh.  At any rate, for this kind of situation using a separate voice
seems preferable.  You can, if I remember correctly, change the
associated voice in the middle of Lyrics.  This kind of thing is why I
actually prefer to just manually specify the note durations in lyrics
rather than using \lyricsto.  Hardly more work and quite more robust
with regard to juggling around with voices and context.

-- 
David Kastrup


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


Re: font size override and grace notes

2012-10-19 Thread David Kastrup
David Kastrup d...@gnu.org writes:

 Matt Cary carym...@gmail.com writes:

 
  I'm still not clear why this is happening in the first place. Why
  should the revert affect an override that occurs in the following
  expression?
 
 It is not following.  Grace notes go back in time.
 

 Ah, thank you. I didn't know that. I see why it's a tricky
 situation. I guess
 that means my current workaround isn't so bad after all:

 g8 \strumE d,8 \strumE |
 % Something weird with the strum to the grace note.
 \once \override NoteHead #'font-size = #-2 \slashedGrace a'16( b8)

 Ugh.  At any rate, for this kind of situation using a separate voice
 seems preferable.  You can, if I remember correctly, change the
 associated voice in the middle of Lyrics.  This kind of thing is why I
 actually prefer to just manually specify the note durations in lyrics
 rather than using \lyricsto.  Hardly more work and quite more robust
 with regard to juggling around with voices and context.

Though there is something to be said for only ever having to enter the
text for Latin mass once.  I doubt, however, that one can express all
details of melismata and word repetition in the note part only.

-- 
David Kastrup


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


Re: font size override and grace notes

2012-10-19 Thread Mats Bengtsson


On 10/19/2012 09:20 AM, David Kastrup d...@gnu.org wrote:

At any rate, for this kind of situation using a separate voice
seems preferable.  You can, if I remember correctly, change the
associated voice in the middle of Lyrics.  This kind of thing is why I
actually prefer to just manually specify the note durations in lyrics
rather than using \lyricsto.  Hardly more work and quite more robust
with regard to juggling around with voices and context.
Unfortunately, you don't get the correct horizontal alignment of 
syllables to notes, nor can you get extender lines (see the notation 
reference 2.1.1 Manual syllable durations), unless you set 
associatedVoice, so it's not a good solution.


I cannot really see any fundamental reason why we have this limitation. 
It seems to me that we should be able to align to the note column just 
as well as to a note in a single voice, see also 
http://code.google.com/p/lilypond/issues/detail?id=707.


   /Mats

--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.ee.kth.se/~mabe
=


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


Re: font size override and grace notes

2012-10-18 Thread Eluze
Matt Cary wrote
 The following doesn't do what I'd expect. The grace note has the large 
 font size; I'd expect it to be its regular size (ie, small). Let me know
 if you
 need any more information or context.
 
 \relative c' {
  \override NoteHead #'font-size = #1
  g
  \revert NoteHead #'font-size
  \slashedGrace a16( b8)
 }

I'd say with \revert you revert the override of the grace note before it has
been used.

better use \once to override the size of the g, or revert the note heads
size after the slashed grace is done:

\override NoteHead #'font-size = #4g
\slashedGrace  a16( 
\revert NoteHead #'font-size  b8)

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/font-size-override-and-grace-notes-tp135003p135008.html
Sent from the Bugs mailing list archive at Nabble.com.

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


Re: font size override and grace notes

2012-10-18 Thread David Kastrup
Eluze elu...@gmail.com writes:

 Matt Cary wrote
 The following doesn't do what I'd expect. The grace note has the large 
 font size; I'd expect it to be its regular size (ie, small). Let me know
 if you
 need any more information or context.
 
 \relative c' {
  \override NoteHead #'font-size = #1
  g
  \revert NoteHead #'font-size
  \slashedGrace a16( b8)
 }

 I'd say with \revert you revert the override of the grace note before it has
 been used.

 better use \once to override the size of the g, or revert the note heads
 size after the slashed grace is done:

 \override NoteHead #'font-size = #4g
 \slashedGrace  a16( 
 \revert NoteHead #'font-size  b8)

In this particular case, it would likely be safer to use a \tweak.
tweaks are not timing-related and thus are impervious to the quirks of
grace note timing.

-- 
David Kastrup


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


Re: font size override and grace notes

2012-10-18 Thread Matt Cary

  better use \once to override the size of the g, or revert the note heads
  size after the slashed grace is done:
 
  \override NoteHead #'font-size = #4g
  \slashedGrace  a16( 
  \revert NoteHead #'font-size  b8)
 
 In this particular case, it would likely be safer to use a \tweak.
 tweaks are not timing-related and thus are impervious to the quirks of
 grace note timing.
 

Thanks for the advice. I guess I'm surprised the revert doesn't happen 
immediately. This arose in a more complicated context where I don't think 
doing tweaks is relevant; the initial override is from a function where I'm 
notating a strum.

strumFn = 
#(define-music-function
  (parser location strums)
  (ly:music?)
   #{
  \set squashedPosition = #-2
  \override NoteHead #'style = #'slash
  \override NoteHead #'font-size = #1
  \override Beam #'positions = #'(4 . 4)
  \override Stem #'length = #8
  \override Accidental #'stencil = ##f
  \override AccidentalCautionary #'stencil = ##f

  \stemUp
  #strums
  \stemNeutral

  \unset squashedPosition
  \revert NoteHead #'style
  \revert NoteHead #'font-size
  \revert Beam #'positions
  \revert Stem #'length
  \revert Accidental #'stencil
  \revert AccidentalCautionary #'stencil

   #})

\new Voice = melody \with {
\consists Pitch_squash_engraver 
} {
 \strumFn { c8[ c] } \acciaccatura a'16 b'8
}

\version 2.16.0


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


Re: font size override and grace notes

2012-10-18 Thread David Kastrup
Matt Cary carym...@gmail.com writes:

  better use \once to override the size of the g, or revert the note heads
  size after the slashed grace is done:
 
  \override NoteHead #'font-size = #4g
  \slashedGrace  a16( 
  \revert NoteHead #'font-size  b8)
 
 In this particular case, it would likely be safer to use a \tweak.
 tweaks are not timing-related and thus are impervious to the quirks of
 grace note timing.
 

 Thanks for the advice. I guess I'm surprised the revert doesn't happen 
 immediately. This arose in a more complicated context where I don't think 
 doing tweaks is relevant; the initial override is from a function where I'm 
 notating a strum.

 strumFn = 
 #(define-music-function
   (parser location strums)
   (ly:music?)
#{
   \set squashedPosition = #-2
   \override NoteHead #'style = #'slash
   \override NoteHead #'font-size = #1
   \override Beam #'positions = #'(4 . 4)
   \override Stem #'length = #8
   \override Accidental #'stencil = ##f
   \override AccidentalCautionary #'stencil = ##f

   \stemUp
   #strums
   \stemNeutral

   \unset squashedPosition
   \revert NoteHead #'style
   \revert NoteHead #'font-size
   \revert Beam #'positions
   \revert Stem #'length
   \revert Accidental #'stencil
   \revert AccidentalCautionary #'stencil

#})

 \new Voice = melody \with {
 \consists Pitch_squash_engraver 
 } {
  \strumFn { c8[ c] } \acciaccatura a'16 b'8
 }

 \version 2.16.0

What about
strumFn = 
#(define-music-function
  (parser location strums)
  (ly:music?)
   #{
  \new Voice \with {
  \consists Pitch_squash_engraver 
  squashedPosition = #-2
  \override NoteHead #'style = #'slash
  \override NoteHead #'font-size = #1
  \override Beam #'positions = #'(4 . 4)
  \override Stem #'length = #8
  \override Accidental #'stencil = ##f
  \override AccidentalCautionary #'stencil = ##f
  \stemUp
 }
 { #strums
 }
   #})

\new Voice = melody
{
 \strumFn { c8[ c] } \acciaccatura a'16 b'8
}


-- 
David Kastrup


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


Re: font size override and grace notes

2012-10-18 Thread Matt Cary
David Kastrup dak at gnu.org writes:
 
 What about
 strumFn = 
 #(define-music-function
   (parser location strums)
   (ly:music?)
#{
   \new Voice \with {
   \consists Pitch_squash_engraver 
   squashedPosition = #-2
   \override NoteHead #'style = #'slash
   \override NoteHead #'font-size = #1
   \override Beam #'positions = #'(4 . 4)
   \override Stem #'length = #8
   \override Accidental #'stencil = ##f
   \override AccidentalCautionary #'stencil = ##f
   \stemUp
  }
  { #strums
  }
#})
 
 \new Voice = melody
 {
  \strumFn { c8[ c] } \acciaccatura a'16 b'8
 }
 

Adding an extra voice makes it hard to put in lyrics that are sung to both 
the strumming as well as the plucked notes:


\new Voice = melody
{
 \strumFn { c8[ c] } \acciaccatura a'16 b'8
}

\new Lyrics \lyricsto melody { when I sing }


I'm still not clear why this is happening in the first place. Why should the 
revert affect an override that occurs in the following expression?


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


Re: font size override and grace notes

2012-10-18 Thread David Kastrup
Matt Cary carym...@gmail.com writes:

 I'm still not clear why this is happening in the first place. Why
 should the revert affect an override that occurs in the following
 expression?

It is not following.  Grace notes go back in time.

URL:http://code.google.com/p/lilypond/issues/detail?id=34

-- 
David Kastrup


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


Re: font size override and grace notes

2012-10-18 Thread Matt Cary
 
  I'm still not clear why this is happening in the first place. Why
  should the revert affect an override that occurs in the following
  expression?
 
 It is not following.  Grace notes go back in time.
 

Ah, thank you. I didn't know that. I see why it's a tricky situation. I guess 
that means my current workaround isn't so bad after all:

g8 \strumE d,8 \strumE |
% Something weird with the strum to the grace note.
\once \override NoteHead #'font-size = #-2 \slashedGrace a'16( b8)




 URL:http://code.google.com/p/lilypond/issues/detail?id=34
 





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


font size override and grace notes

2012-10-17 Thread Matt Cary
 I'm not top posting.

Sorry if this is a dup. I did a quick web search, and code.google.com 
search, and didn't see anything close.

The following doesn't do what I'd expect. The grace note has the large 
font size; I'd expect it to be its regular size (ie, small). Let me know if you
need any more information or context.

\relative c' {
 \override NoteHead #'font-size = #1
 g
 \revert NoteHead #'font-size
 \slashedGrace a16( b8)
}

\version 2.16.0



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