Re: Offsetting a turn horizontally

2007-10-09 Thread Joseph Wakeling
Eyolf Østrem wrote:
 On 08.10.2007 (17:04), Mats Bengtsson wrote:
 Exactly what do you mean. The spacing should be the same as if the turn
 was appeared over a true note at the same position in the bar. Try 
 replacing
 the s by a pitch to see this.
 
 Isn't that what the OP said? A quick test here also confirms that it
 is true: replacing one or both s-s with pitches, changes the spacing
 the spacing is different with s than with a pitch.
 In fact, 
 
{d4 d4\turn}
{s4 s4\turn}
{s4 d4\turn}
{d4 s4\turn}
 
 in the original example give four different spacings.

Thanks for the confirmation.  I wrote an email yesterday with a couple
of PDF attachments to show the difference but it got lost ... I take it
the list doesn't like such files?

Are there suggestions for a solution?  I guess one could put in
invisible notes.

I was kind of hoping there might be some way of overriding the spacing
for a given note along the lines of, space this note as if it was
actually 2 quarter-notes, but I don't know if that's possible ... ?


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


Re: Offsetting a turn horizontally

2007-10-09 Thread Mats Bengtsson

Sorry for the confusion in my previous answer. A more precise statement
of what I tried to say yesterday is:
If you have polyphonic music and there was a note in some other
stave (or in some other voice of the same stave) one  beat after
the beginning of the f2, then the turn will be placed exactly on top of
that, if you use the  f2 {s4 s^\turn} construct. However, if
nothing else happens, musically, at that beat, it's
not really well defined where on the horizontal axis, the beat
actually appears, so you cannot really talk about right or wrong
placement.

Here's an example that illustrates some different options and
situations. As you can see, the difference between a spacer
note and an invisible note is smaller here than in your example,
probably due to that the spacing is more cramped in your example.

\score{
 \relative c'' 
 \new Staff \new Voice{% With other music in parallel:
{ f2( } { s4 s4\turn }  g4 f ) |
{ f2( } { s4 \hideNotes d4\turn \unHideNotes }  g4 f ) |
   \break
   % Single stave, single voice:
{ f2( } { s4 s4\turn }  g4 f ) |
{ f2( } { s4 \hideNotes d4\turn \unHideNotes }  g4 f ) |
   \break
   % Single stave, turn in a separate Voice context:
{ f2( } \new Voice { s4 s4\turn }  g4 f ) |
{ f2( } { s4 \hideNotes d4\turn \unHideNotes }  g4 f ) |
 % Hidden note also on the first beat of the f2:
{ f2( } \new Voice { \hideNotes d4 d4\turn \unHideNotes }  g4 f ) |
 }
 % Parallel staff during the first two measures
 \new Staff { \repeat unfold 8 c4 }
 
}
\layout{ragged-right = ##t indent = #0 }

  /Mats


Quoting Joseph Wakeling [EMAIL PROTECTED]:


Eyolf Østrem wrote:

On 08.10.2007 (17:04), Mats Bengtsson wrote:

Exactly what do you mean. The spacing should be the same as if the turn
was appeared over a true note at the same position in the bar. Try
replacing
the s by a pitch to see this.


Isn't that what the OP said? A quick test here also confirms that it
is true: replacing one or both s-s with pitches, changes the spacing
the spacing is different with s than with a pitch.
In fact,

   {d4 d4\turn}
   {s4 s4\turn}
   {s4 d4\turn}
   {d4 s4\turn}

in the original example give four different spacings.


Thanks for the confirmation.  I wrote an email yesterday with a couple
of PDF attachments to show the difference but it got lost ... I take it
the list doesn't like such files?

Are there suggestions for a solution?  I guess one could put in
invisible notes.

I was kind of hoping there might be some way of overriding the spacing
for a given note along the lines of, space this note as if it was
actually 2 quarter-notes, but I don't know if that's possible ... ?


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







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


Offsetting a turn horizontally

2007-10-08 Thread Joseph Wakeling
Hello all,

I'm using Lilypond 2.10.25 to typeset a piece (one of the Rose 32
clarinet etudes) that incorporates a turn on the _second beat_ of a
minim (half-note).

Here's the Lilypond code of the relevant segment as I have it now:

\relative c' {
c4.(\p e8 g c d \setTextCresc e)\
\once \override Script #'extra-offset = #'(2.5 . 0) f2(\!\turn g4 f)
}

The trouble is that the extra-offset element moves the turn a constant
distance on the page, whereas I would like it to be offset by a
_musical_ distance---that is, reliably falling on the second beat.

I wonder if there's any way of achieving this?

Many thanks,

-- Joe


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


Re: Offsetting a turn horizontally

2007-10-08 Thread Reinhold Kainhofer
Am Montag, 8. Oktober 2007 schrieb Joseph Wakeling:
 Hello all,

 I'm using Lilypond 2.10.25 to typeset a piece (one of the Rose 32
 clarinet etudes) that incorporates a turn on the _second beat_ of a
 minim (half-note).
[...]
 The trouble is that the extra-offset element moves the turn a constant
 distance on the page, whereas I would like it to be offset by a
 _musical_ distance---that is, reliably falling on the second beat.

 I wonder if there's any way of achieving this?

You can achieve this by using parallel music (i.e. music expressions inside 
 ... ):

\relative c' {
c,4.(\p e8 g c d \setTextCresc e)\ 
 {f2(\!} {s4 s4\turn}  g4 f) 
}

The two expressions in {..} inside the .. will be laid out in parallel. 
The second one contains only quarter skips, where you can assign the turn to 
the second skip. Thus the turn will always appear on the second beat 
correctly.

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/


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


Re: Offsetting a turn horizontally

2007-10-08 Thread Joseph Wakeling
Reinhold Kainhofer wrote:
 You can achieve this by using parallel music (i.e. music expressions inside 
  ... ):
 
 \relative c' {
 c,4.(\p e8 g c d \setTextCresc e)\ 
  {f2(\!} {s4 s4\turn}  g4 f) 
 }
 
 The two expressions in {..} inside the .. will be laid out in parallel. 
 The second one contains only quarter skips, where you can assign the turn to 
 the second skip. Thus the turn will always appear on the second beat 
 correctly.

Ahhh.  Neat trick, thank you very much for the suggestion. :-)

It doesn't work absolutely perfectly because the skips do not contribute
to the musical spacing---you can see the difference if instead of s4 you
write e.g. d4.  Is there an option to make skips count towards the layout?


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


Re: Offsetting a turn horizontally

2007-10-08 Thread Mats Bengtsson

Quoting Joseph Wakeling [EMAIL PROTECTED]:


Reinhold Kainhofer wrote:

You can achieve this by using parallel music (i.e. music expressions inside
 ... ):

\relative c' {
c,4.(\p e8 g c d \setTextCresc e)\
 {f2(\!} {s4 s4\turn}  g4 f)
}

The two expressions in {..} inside the .. will be laid out in parallel.
The second one contains only quarter skips, where you can assign the turn to
the second skip. Thus the turn will always appear on the second beat
correctly.


Ahhh.  Neat trick, thank you very much for the suggestion. :-)

It doesn't work absolutely perfectly because the skips do not contribute
to the musical spacing---you can see the difference if instead of s4 you
write e.g. d4.  Is there an option to make skips count towards the layout?


Exactly what do you mean. The spacing should be the same as if the turn
was appeared over a true note at the same position in the bar. Try replacing
the s by a pitch to see this.

  /Mats



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


Re: Offsetting a turn horizontally

2007-10-08 Thread Reinhold Kainhofer
Am Montag, 8. Oktober 2007 schrieben Sie:
 Quoting Joseph Wakeling [EMAIL PROTECTED]:
  It doesn't work absolutely perfectly because the skips do not contribute
  to the musical spacing---you can see the difference if instead of s4 you
  write e.g. d4.  Is there an option to make skips count towards the
  layout?

 Exactly what do you mean. The spacing should be the same as if the turn
 was appeared over a true note at the same position in the bar. Try
 replacing the s by a pitch to see this.

What he wants is that the turn at the second beat is above the note from the 
first beat. In particular, compare the two lines in the following snippet:


\relative c' {
c4.(\p e8 g c d \setTextCresc e)\
\once \override Script #'extra-offset = #'(2.5 . 0) a'2(\!\turn g4 f) \break
c,4.(\p e8 g c d \setTextCresc e)\
 {a'2(\!} {s4 s4\turn}  g4 f) 
}

In the first one, the turn is really high up (above the a) but not at the 
second beat, while in the second line it is positioned correctly at the 
second beat, but way below the note it should belong to.

The solutino that I can think of is to use a hidden note instead of a skip...

Cheers,
Reinhold


-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/


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


Re: Offsetting a turn horizontally

2007-10-08 Thread Eyolf Østrem
On 08.10.2007 (17:04), Mats Bengtsson wrote:
 Quoting Joseph Wakeling [EMAIL PROTECTED]:

 Reinhold Kainhofer wrote:

 It doesn't work absolutely perfectly because the skips do not contribute
 to the musical spacing---you can see the difference if instead of s4 you
 write e.g. d4.  Is there an option to make skips count towards the 
 layout?

 Exactly what do you mean. The spacing should be the same as if the turn
 was appeared over a true note at the same position in the bar. Try 
 replacing
 the s by a pitch to see this.

Isn't that what the OP said? A quick test here also confirms that it
is true: replacing one or both s-s with pitches, changes the spacing
the spacing is different with s than with a pitch.
In fact, 

   {d4 d4\turn}
   {s4 s4\turn}
   {s4 d4\turn}
   {d4 s4\turn}

in the original example give four different spacings.


-- 
kernel, n.:
A part of an operating system that preserves the medieval
traditions of sorcery and black art.


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