Re: tweak of the crescendotext

2006-08-25 Thread yota moteuchi
should I fill a feature request to have long dynamic indications (the textual part, not the dashed line one) automatically splitted to the next staff when the text goes out of the page ?

like this : http://img115.imageshack.us/my.php?image=lilypondfi4.pngbecause if I do the line break manually, when the dynamic indication is not at the end of the staff anymore I get strange collisions O_o

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


Re: tweak of the crescendotext

2006-08-25 Thread Henrik Frisk
Mats Bengtsson <[EMAIL PROTECTED]> wrote:

> Quoting Henrik Frisk <[EMAIL PROTECTED]>:
> > I personally like the extra-offset property since it allows me to move
> > an object in any way with only one command. I would assume that 'padding'
> > and 'center-align' properties would also work.
> 
> I hope you know that there is an important difference between extra-offset
> and the other properties that can be used to move things around. If
> you for example increase the padding, then LilyPond will take that
> fact into
> account when it calculates the placement of the next stave, for
> example, to avoid collisions. However, if you set extra-offset, then
> only that
> specific object will move and everything else will stay
> fixed. Sometimes that's preferable, but sometimes not.
> 
Thanks Mats, I should of course have mentioned that. It's precisely this
fact that makes extra-offset so useful to me. 

/henrik


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


Re: tweak of the crescendotext

2006-08-25 Thread Mats Bengtsson

Quoting Henrik Frisk <[EMAIL PROTECTED]>:

I personally like the extra-offset property since it allows me to move
an object in any way with only one command. I would assume that 'padding'
and 'center-align' properties would also work.


I hope you know that there is an important difference between extra-offset
and the other properties that can be used to move things around. If you 
for example increase the padding, then LilyPond will take that fact into
account when it calculates the placement of the next stave, for 
example, to avoid collisions. However, if you set extra-offset, then 
only that
specific object will move and everything else will stay fixed. 
Sometimes that's preferable, but sometimes not.


  /Mats



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


Re: tweak of the crescendotext

2006-08-25 Thread Henrik Frisk
yota <[EMAIL PROTECTED]> wrote:

> is such a dynamic indication a TextScript or a DynamicText or something else
> ?... I tried some tweaks but everything failed.
> 
At the bottom of this page:

http://lilypond.org/doc/v2.9/Documentation/user/lilypond/Dynamics.html#Dynamics

I found the answer to your question. It's the DynamicTextSpanner object
that has to be tweaked. Adding the override below moves your cresc
marking down and to the left (the firs number in the list (-5) moves it
to the left, and the second moves it down).

I personally like the extra-offset property since it allows me to move
an object in any way with only one command. I would assume that 'padding'
and 'center-align' properties would also work. The extra-offset property
is defined in the 'grob-interface' which is inherited by most
objects. The way to find out which preperties can be tweaked for a
particualr object is to look in the documentation (Dynamics in this
case) and check the name of the object. This name is hyperlinked to the
Program Reference in which the properties for this object are
listed. Further, the interfaces supported by that object are linked from
this page and those proerties can also be set through this object. All
that may or may not help you understand the documentation better ;-).

best,

/Henrik

\set crescendoText = \markup { \italic "poco a poco cresc." }
\set crescendoSpanner = #'dashed-line
\override DynamicTextSpanner #'extra-offset = #'(-5.0 . -3.0)
r4  \times 2/3 { a8->( \accent \< bes a) \!} r4



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


Re: tweak of the crescendotext

2006-08-25 Thread yota moteuchi
ok I got ityou're right... with a centered alignment, the dynamic indication become too imprecise to be readable. But putting the text on two lines give a nice result.\set crescendoText = \markup{\italic \column {\line {poco a poco} {cresc.} }}

    \set crescendoSpanner = #'dashed-line
    r4  \times 2/3 {\once \override DynamicLineSpanner #'staff-padding = #1 a8->( \accent \< bes a) \!} r4
    \repeat unfold 9 { r4 \times 2/3 { a8->( \accent bes a) } r4}I really would like to have an automatic line break, diplaying "poco a poco" on the end of the first staff and the "cresc."  at the start of the next staff. Well I could also do it by hand but it's a bit dirty
About the vertical positioning of the crescendotext. the property is in fact hidden in dynamiclinespanner #'staff-padding (even if there is no line span)that was the tip of the day :p
On 8/25/06, Mats Bengtsson <[EMAIL PROTECTED]> wrote:
yota wrote:>Hi,>>I have some notes where a "poco a poco cresc." must be inserted...>so I put>>\set crescendoText = \markup { \italic "poco a poco cresc." }
>\set crescendoSpanner = #'dashed-line>r4  \times 2/3 { a8->( \accent \< bes a) \!} r4>>and it worked, but the text is too long, it goes over the end of the page>and the vertical position make it collide with the \accent.
>Well with a little vertical padding and a centered alignment it should do>the trick.>>As a musician I would be very confused if you used centeredalignment, since I wouldn't realize exactly where you want
the crescendo to start. As far as I can recall from printedmusic, the text is normally broken over the line break insuch situations, at least if the crescendo is long (your exampleseems like an extremely short crescendo to be able to do
"poco a poco"). Another possibility would be to do\markup{\italic \column {\line {poco a poco} cresc. }}>But I'm not fluent enough with "contexts" and "properties" stuff, and the
>documentation keeps confusing me.>>is such a dynamic indication a TextScript or a DynamicText or something else>?... I tried some tweaks but everything failed.>>>DynamicText should be the relevant object.
   /Mats
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tweak of the crescendotext

2006-08-25 Thread Mats Bengtsson

yota wrote:


Hi,

I have some notes where a "poco a poco cresc." must be inserted... 
so I put


\set crescendoText = \markup { \italic "poco a poco cresc." }
\set crescendoSpanner = #'dashed-line
r4  \times 2/3 { a8->( \accent \< bes a) \!} r4

and it worked, but the text is too long, it goes over the end of the page
and the vertical position make it collide with the \accent.
Well with a little vertical padding and a centered alignment it should do
the trick.
 


As a musician I would be very confused if you used centered
alignment, since I wouldn't realize exactly where you want
the crescendo to start. As far as I can recall from printed
music, the text is normally broken over the line break in
such situations, at least if the crescendo is long (your example
seems like an extremely short crescendo to be able to do
"poco a poco"). Another possibility would be to do
\markup{\italic \column {\line {poco a poco} cresc. }}


But I'm not fluent enough with "contexts" and "properties" stuff, and the
documentation keeps confusing me.

is such a dynamic indication a TextScript or a DynamicText or something else
?... I tried some tweaks but everything failed.

 


DynamicText should be the relevant object.

  /Mats


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


tweak of the crescendotext

2006-08-25 Thread yota

Hi,

I have some notes where a "poco a poco cresc." must be inserted... 
so I put
 
\set crescendoText = \markup { \italic "poco a poco cresc." }
\set crescendoSpanner = #'dashed-line
r4  \times 2/3 { a8->( \accent \< bes a) \!} r4

and it worked, but the text is too long, it goes over the end of the page
and the vertical position make it collide with the \accent.
Well with a little vertical padding and a centered alignment it should do
the trick.

But I'm not fluent enough with "contexts" and "properties" stuff, and the
documentation keeps confusing me.

is such a dynamic indication a TextScript or a DynamicText or something else
?... I tried some tweaks but everything failed.

A quick example would be welcome

thx
-- 
View this message in context: 
http://www.nabble.com/tweak-of-the-crescendotext-tf2161916.html#a5974890
Sent from the Gnu - Lilypond - User forum at Nabble.com.



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