Re: custum dynamic marks: how to left align instead of center below a note?

2009-09-06 Thread Frédéric Bron
 It's not so straightforward and there is no 100% perfect solution. However,
 several good approaches can be found on the LSR (http://lsr.dsi.unimi.it/ ).
 Simply search for dynamics and the first snippet will be your man.

Very good. Thanks! Problem solved.
I should have thought at the LSR... shame on me.
Frédéric


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


custum dynamic marks: how to left align instead of center below a note?

2009-09-05 Thread Frédéric Bron
Hi,

In the following example, I define a new dynamic mark p ausdrucksvoll.
I would like the p to be centered below the note and ausdrucksvoll
written to the right.
This works fine with \markup command but \markup command is not
printed on the same line as dynamics, in particular with hairpins.

I have tested translation to the right but the symmetry is applied to
the left with white space...

Is there a way to say the the next dynamic event should be left
aligned instead of centered?

Frédéric

\version 2.12.2

pausdrucksvollA = #(make-dynamic-script
  (markup
(#:dynamic p)
(#:normal-text #:italic ausdrucksvoll)
  )
)
pausdrucksvollB = #(make-dynamic-script
  (markup
#:hspace 0
#:translate (cons +15 0)
(#:dynamic p)
(#:normal-text #:italic ausdrucksvoll)
  )
)
{
  \time 4/4
  c'4\ c'\pausdrucksvollA\ c' c'  c' c' c' c'\!  R1
  c'4\ c'\pausdrucksvollB\ c' c'  c' c' c' c'\!  R1
}


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


Re: custum dynamic marks: how to left align instead of center below a note?

2009-09-05 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Samstag, 5. September 2009 21:12:03 schrieb Frédéric Bron:
 In the following example, I define a new dynamic mark p ausdrucksvoll.
 I would like the p to be centered below the note and ausdrucksvoll
 written to the right.
[...]
 Is there a way to say the the next dynamic event should be left
 aligned instead of centered?

It's not so straightforward and there is no 100% perfect solution. However, 
several good approaches can be found on the LSR (http://lsr.dsi.unimi.it/ ). 
Simply search for dynamics and the first snippet will be your man.

In particular, that's the link:
http://lsr.dsi.unimi.it/LSR/Item?id=393
That's a summary of all the solutions that came up in a long thread a while 
ago. None of them is perfect, but the .ly file (if you click on the graphic) 
contains a list of their advantages and drawbacks...

Cheers,
Reinhold

- -- 
- --
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKor/oTqjEwhXvPN0RAteZAKC0ziCmeuoTQG/1+k5XJfdG66rfhwCgpdck
g0clqbQ02dCdRWAyWhUjO1U=
=Afyr
-END PGP SIGNATURE-


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


Re: custum dynamic marks: how to left align instead of center below a note?

2009-09-05 Thread Graham Percival
On Sat, Sep 05, 2009 at 09:12:03PM +0200, Frédéric Bron wrote:
 Is there a way to say the the next dynamic event should be left
 aligned instead of centered?

http://lists.gnu.org/archive/html/lilypond-user/2008-09/msg00811.html

I really should have added that to LSR by now.

Cheers,
- Graham


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


Re: custum dynamic marks: how to left align instead of center below a note?

2009-09-05 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Samstag, 5. September 2009 22:46:15 schrieb Graham Percival:
 On Sat, Sep 05, 2009 at 09:12:03PM +0200, Frédéric Bron wrote:
  Is there a way to say the the next dynamic event should be left
  aligned instead of centered?

 http://lists.gnu.org/archive/html/lilypond-user/2008-09/msg00811.html

 I really should have added that to LSR by now.

Yeah. Notice however, that this one has the drawback that it reserves the same 
amount on the left as on the right of the dynamic sign. So, a lot of space on 
the left of the f/p/mf will be wasted (and other stuff shifted downwards).

Cheers,
Reinhold
- -- 
- --
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKot3fTqjEwhXvPN0RAl3hAKDUK4Dx6ezOpc7mLeWaHR/jGAYzZACgtVBE
vWEkRSN/kn5XrBtUgKViX6Y=
=bu8/
-END PGP SIGNATURE-


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