Re: Reduce width of single measure

2012-01-21 Thread Thomas Morley
Hi David,

2012/1/20 David Nalesnik david.nales...@gmail.com:
 Hi again--

 On Thu, Jan 19, 2012 at 7:22 PM, David Nalesnik david.nales...@gmail.com
 wrote:

 Hi Harm!

 I'm sure this could be modified to target the note that governs stem
 direction.


 I'm not sure if my reasoning is correct (or if this all is particularly
 useful), but the function in the attached file attempts to align the text
 item (also a dynamic text in another example) the same way regardless of the
 order in which you enter the notes. (Uncomment the \override to see what the
 function does.)   Unfortunately, it won't work with 2.12 since it uses
 ly:grob-array-list.

 -David

I played around with your function. And now I wonder why your function
is not the default behaviour.

Thanks,
  Harm

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


Re: Reduce width of single measure

2012-01-21 Thread Xavier Scheuer
On 21 January 2012 23:28, Thomas Morley thomasmorle...@googlemail.com wrote:

 I played around with your function. And now I wonder why your function
 is not the default behaviour.

I can understand that (although I am not sure about what should be the
standard notation).  If you think it should be the default behaviour,
please make a request in that sense to bug-lilypond.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: Reduce width of single measure

2012-01-20 Thread Frank Steinmetzger
On Fri, Jan 20, 2012 at 01:34:21AM +0100, Thomas Morley wrote:

G, I wrote a reply yesterday, but _atain_ only replied to one person
instead of the list.

  Hi Frank,
 
  2012/1/17 Frank Steinmetzger war...@gmx.de:
 
   Is there an automatic way to resolve this, i.e. that all ness
   syllables are
   properly aligned again?
 
 
  It appears the text will be aligned to the head of the first note between 
 , so specify the upper of the two first: so, rather than c des, des c

Yes, the solution was so simple. It worked like a charm, thanks.
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

Everyone wants your best. Don’t let them take it from you.


pgpGQOiu6UVYQ.pgp
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reduce width of single measure

2012-01-19 Thread Thomas Morley
Hi Frank,

2012/1/17 Frank Steinmetzger war...@gmx.de:
 Hello gurus

 I already wrote a whole paragraph to describe my problem, but an image is far
 simpler.  Please see the attached screenshot to get an idea of my problem.  
 The
 ness syllables are not aligned to one another, because alto and bass are
 aligned to a single note, whereas soprano and tenor have a Second interval,
 which causes the stem to shift horizontally.

 Is there an automatic way to resolve this, i.e. that all ness syllables are
 properly aligned again?  The only solution I can think of is to use \set
 associatedVoice, so that (in this example) soprano and tenor use the bass'
 notes as rhythm base.

 I'm (still) using 2.12.3 here. Thanks in advance for your insight.

you could try:

%\version 2.14.2
\version 2.12.3

#(define (lyr-x-offset grob)
(let* ((sys (ly:grob-system grob))
   (note-heads (ly:grob-parent grob X)) 
   (note-column (ly:grob-parent note-heads X))
   (note-column-length (interval-length (ly:grob-extent note-column sys X)))
   (note-heads-length (interval-length (ly:grob-extent note-heads sys X
(ly:grob-translate-axis!
  grob
  (if ( note-column-length (* note-heads-length 1.5))
note-heads-length
0)
  X)))

\paper { ragged-right = ##f }

global = { \key bes\minor \time 4/4 }

one = \new Voice = one \relative c'' {
c des4 c des2 c des4
}

two = \new Voice = two \relative c' {
f4 f2 aes4
}

three = \new Voice = three \relative c'' {
des ees4 des ees2 des ees4
}

four = \new Voice = four \relative c' {
\clef bass
bes4 bes2 bes4
}

text = \lyricmode {
\override LyricText #'after-line-breaking = #lyr-x-offset
wet -- ness to
}

\new StaffGroup 
\new Staff { \global \one }
\new Lyrics \lyricsto one \text
\new Staff { \global \two }
\new Lyrics \lyricsto two \text
\new Staff { \global \three }
\new Lyrics \lyricsto three \text
\new Staff { \global \four }
\new Lyrics \lyricsto four \text


But it is tested with the short example only.

HTH,
  Harm

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


Re: Reduce width of single measure

2012-01-19 Thread David Nalesnik
Hi Frank,

On Thu, Jan 19, 2012 at 3:48 PM, Thomas Morley 
thomasmorle...@googlemail.com wrote:

 Hi Frank,

 2012/1/17 Frank Steinmetzger war...@gmx.de:

  Is there an automatic way to resolve this, i.e. that all ness
 syllables are
  properly aligned again?


It appears the text will be aligned to the head of the first note between 
, so specify the upper of the two first: so, rather than c des, des c

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


Re: Reduce width of single measure

2012-01-19 Thread Thomas Morley
Hi David,

2012/1/19 David Nalesnik david.nales...@gmail.com:
 Hi Frank,

 On Thu, Jan 19, 2012 at 3:48 PM, Thomas Morley
 thomasmorle...@googlemail.com wrote:

 Hi Frank,

 2012/1/17 Frank Steinmetzger war...@gmx.de:

  Is there an automatic way to resolve this, i.e. that all ness
  syllables are
  properly aligned again?


 It appears the text will be aligned to the head of the first note between 
, so specify the upper of the two first: so, rather than c des, des c

 -David


of course!!

Thanks,
  Harm

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


Re: Reduce width of single measure

2012-01-19 Thread David Nalesnik
Hi Harm!

On Thu, Jan 19, 2012 at 6:34 PM, Thomas Morley 
thomasmorle...@googlemail.com wrote:

 Hi David,

 2012/1/19 David Nalesnik david.nales...@gmail.com:
  Hi Frank,
 
  On Thu, Jan 19, 2012 at 3:48 PM, Thomas Morley
  thomasmorle...@googlemail.com wrote:
 
  Hi Frank,
 
  2012/1/17 Frank Steinmetzger war...@gmx.de:
 
   Is there an automatic way to resolve this, i.e. that all ness
   syllables are
   properly aligned again?
 
 
  It appears the text will be aligned to the head of the first note
 between 
 , so specify the upper of the two first: so, rather than c des, des c
 
  -David
 

 of course!!


Yes, well it seems simple in retrospect for me too!  But, like Frank, I
tend to enter chords from bottom up.  In a case like this, I expect that
the lyric alignment will be to the note which governs stem direction.
 (This, after all, governs alignment between notes on different staves.)

Initially, (before what I'm sure I've seen documented elsewhere in some
context hit me), I was playing around with resetting the X-parent from one
note-head to another.  This, for example, would set the X-parent (and thus
the alignment) to the last note between   instead of the first:

#(define test
   (lambda (grob)
 (let ((note-heads (ly:grob-object (ly:grob-parent (ly:grob-parent grob
X) X) 'note-heads)))
   (set! (ly:grob-parent grob X)
 (ly:grob-array-ref note-heads (1- (ly:grob-array-length
note-heads)))

Call it with:

\override Lyrics . LyricText #'before-line-breaking = #test

I'm sure this could be modified to target the note that governs stem
direction.

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


Re: Reduce width of single measure

2012-01-17 Thread James
Hello,

On 17 January 2012 03:45, Frank Steinmetzger war...@gmx.de wrote:
 Hello gurus

 I already wrote a whole paragraph to describe my problem, but an image is far
 simpler.  Please see the attached screenshot to get an idea of my problem.  
 The
 ness syllables are not aligned to one another, because alto and bass are
 aligned to a single note, whereas soprano and tenor have a Second interval,
 which causes the stem to shift horizontally.

 Is there an automatic way to resolve this, i.e. that all ness syllables are
 properly aligned again?  The only solution I can think of is to use \set
 associatedVoice, so that (in this example) soprano and tenor use the bass'
 notes as rhythm base.

 I'm (still) using 2.12.3 here. Thanks in advance for your insight.

What happens if you use voices instead of, what I think you are doing,
chorded notes?

 //  vs  

Alternatively if you use spacers in your two parts with single notes
does that help balance the lyrics?

Those are the two immediate 'workarounds' that could work.


-- 
--

James

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


Re: Reduce width of single measure

2012-01-16 Thread Frank Steinmetzger
Hello gurus

I already wrote a whole paragraph to describe my problem, but an image is far
simpler.  Please see the attached screenshot to get an idea of my problem.  The
ness syllables are not aligned to one another, because alto and bass are
aligned to a single note, whereas soprano and tenor have a Second interval,
which causes the stem to shift horizontally.

Is there an automatic way to resolve this, i.e. that all ness syllables are
properly aligned again?  The only solution I can think of is to use \set
associatedVoice, so that (in this example) soprano and tenor use the bass'
notes as rhythm base.

I'm (still) using 2.12.3 here. Thanks in advance for your insight.
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

The most dangerous thing about half-wisdom is
that almost half of it is actually believed.
attachment: lyricsalignment.png

pgpZcCEEnICCI.pgp
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reduce width of single measure

2012-01-08 Thread James
Xavier,

On 14 December 2011 08:37, Xavier Scheuer x.sche...@gmail.com wrote:
 On 14 December 2011 05:31, Nick Payne nick.pa...@internode.on.net wrote:
 How can I reduce the width of a single measure? i.e. in the final bar below
 containing the chord of whole notes, I want the width of the measure to be
 just wide enough to contain the chord.

  \once \override Score.SpacingSpanner #'spacing-increment = #0.5
  \newSpacingSection
  e' c g e c1 |

I tried to use this myself on the first bar of a piece to get a
'squashed' hairpin linger by extending the measure but I cannot seem
to *only* make it affect the first measure.

version 2.14.1

\relative c' {
  \time 3/4
  \override Score.SpacingSpanner #'spacing-increment = #2
  \newSpacingSection
  c'2.\sfz\ |
  \revert Score.SpacingSpanner #'spacing-increment
  c4\f c r | c2.\fz\ |
  r4 r g8\fz r |
}

The rest of the measures are also affected. I wonder if you or anyone
else knows how to do this just for a single measure.

-- 
--

James

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


Re: Reduce width of single measure

2012-01-08 Thread Matthew Collett
On 9/01/2012, at 8:22 am, James wrote:

 I tried to use this myself on the first bar of a piece to get a
 'squashed' hairpin linger by extending the measure but I cannot seem
 to *only* make it affect the first measure.


 The rest of the measures are also affected. I wonder if you or anyone
 else knows how to do this just for a single measure.

You need a \newSpacingSection each time you want to change the spacing.  In 
particular, you need a new one for the \revert as well as for the \override.

\relative c' {
 \time 3/4
 \override Score.SpacingSpanner #'spacing-increment = #2
 \newSpacingSection
 c'2.\sfz\ |
 \revert Score.SpacingSpanner #'spacing-increment
 \newSpacingSection
 c4\f c r | c2.\fz\ |
 r4 r g8\fz r |
}

In this particular case you don't actually need the first \newSpacingSection, 
since it's the beginning of the piece, which naturally is the beginning of a 
spacing section anyway.  But in general you would need both.

Best wishes,
Matthew


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


Re: Reduce width of single measure

2012-01-08 Thread Xavier Scheuer
On 8 January 2012 20:22, James pkx1...@gmail.com wrote:
 Xavier,

 […]

 I tried to use this myself on the first bar of a piece to get a
 'squashed' hairpin linger by extending the measure but I cannot seem
 to *only* make it affect the first measure.

 version 2.14.1

 \relative c' {
  \time 3/4
  \override Score.SpacingSpanner #'spacing-increment = #2
  \newSpacingSection
  c'2.\sfz\ |
  \revert Score.SpacingSpanner #'spacing-increment
  c4\f c r | c2.\fz\ |
  r4 r g8\fz r |
 }

 The rest of the measures are also affected. I wonder if you or anyone
 else knows how to do this just for a single measure.

James,

I am a simple user, not the horizontal spacing expert developer.  ;-)
I guess if you add  \newSpacingSection  when using
  \revert Score.SpacingSpanner #'spacing-increment  it should do it.

But if you want *only* to increase the length of the hairpin, I strongly
recommend you to use  \once \override Hairpin #'minimum-length = #8
instead.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: Reduce width of single measure

2012-01-08 Thread James
Matthew/Xavier

On 8 January 2012 20:11, Xavier Scheuer x.sche...@gmail.com wrote:
 On 8 January 2012 20:22, James pkx1...@gmail.com wrote:
 Xavier,

 […]

 I tried to use this myself on the first bar of a piece to get a
 'squashed' hairpin linger by extending the measure but I cannot seem
 to *only* make it affect the first measure.

 version 2.14.1

 \relative c' {
  \time 3/4
  \override Score.SpacingSpanner #'spacing-increment = #2
  \newSpacingSection
  c'2.\sfz\ |
  \revert Score.SpacingSpanner #'spacing-increment
  c4\f c r | c2.\fz\ |
  r4 r g8\fz r |
 }

 The rest of the measures are also affected. I wonder if you or anyone
 else knows how to do this just for a single measure.

 James,

 I am a simple user, not the horizontal spacing expert developer.  ;-)
 I guess if you add  \newSpacingSection  when using
  \revert Score.SpacingSpanner #'spacing-increment  it should do it.

Ah yes that makes sense. Thank you.


 But if you want *only* to increase the length of the hairpin, I strongly
 recommend you to use  \once \override Hairpin #'minimum-length = #8

Yes that is a nicer solution for what I need to do.

Again, thank you.


-- 
--

James

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


Re: Reduce width of single measure

2011-12-14 Thread Xavier Scheuer
On 14 December 2011 05:31, Nick Payne nick.pa...@internode.on.net wrote:
 How can I reduce the width of a single measure? i.e. in the final bar below
 containing the chord of whole notes, I want the width of the measure to be
 just wide enough to contain the chord.

  \once \override Score.SpacingSpanner #'spacing-increment = #0.5
  \newSpacingSection
  e' c g e c1 |

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Reduce width of single measure

2011-12-13 Thread Nick Payne
How can I reduce the width of a single measure? i.e. in the final bar 
below containing the chord of whole notes, I want the width of the 
measure to be just wide enough to contain the chord.


\version 2.15.20
\language english

\score {

\new Staff \relative c' {
\override Staff.TimeSignature #'stencil = ##f
\set Score.markFormatter = #format-mark-numbers
\clef treble_8
\bar |:
\repeat volta 2 {
\mark #83

{
c,16 g' c g e e' g c g c, g' c g e e' g c g |
b, g' d' g, d f' g d' g, g, g' d' g, b, f'' g' d' g, |
}
\\
{
c,4 e c e |
b d g, b |
}

}
e' c g e c1 |
\bar |.
}

\layout { }
}


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