lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trills and trill spanners with accidentals


From: Reinhold Kainhofer
Subject: Re: trills and trill spanners with accidentals
Date: Tue, 16 Jun 2009 20:43:07 +0200
User-agent: KMail/1.11.4 (Linux/2.6.28-11-generic; KDE/4.2.4; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 16. Juni 2009 18:09:07 schrieb Kieren MacMillan:
> Hi R & M,
>
> I use
> trillWithFlat =
> {
>       \once \override TrillSpanner #'bound-details #'left #'text
>               = \markup { \lower #1 \musicglyph #"scripts.trill" \smaller 
> \hspace
> #-0.5 \flat }
>       \once \override TrillSpanner #'extra-offset = #'(0 . -0.5)
> }

Okay, I'm now trying to achieve this with tweaks (because they can be 
incorporated into the actual start command for the spanner, so one doesn't 
have to add one command before the note plus the start of the trill spanner 
after the note). However, how can I change the bound-details -> left -> text 
using \tweak??? All I seem to be able is to set bound-details, but not the 
subproperties... How can I tweak only the text, but leave the other settings 
in bound-details at their current values?

Attached are my current attempts at creating a general function for pitched 
trills (articulations as well as spanners). While articulations seem to work 
okay (using the text-interface::print function and the trill with the 
accidental as text), I'm unable to assign the proper spanner text using a 
tweak. Does anyone have any pointers how to solve this?

The other problem I'm running into is that if I have a markup (i.e. the result 
of (make-pitchedtexttrill-markup FLAT ), where \pitchedttexttrill is defined 
using define-markup-command), how can I obtain its stencil so that I can assign 
it to the 'stencil property?

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, 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)

iD8DBQFKN+e9TqjEwhXvPN0RAtc5AKC5mqgiEMc8qYT9IXsLJDus94nZsgCfe3v5
+7eQwOSTY1B/7bwyXoSwck8=
=cauh
-----END PGP SIGNATURE-----

Attachment: pitchedtrills.ly
Description: Text Data

Attachment: pitchedtrills.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]