lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: not-so-ancient flags


From: Reinhold Kainhofer
Subject: Re: [PATCH] Re: not-so-ancient flags
Date: Sat, 13 Dec 2008 14:48:54 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

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

Am Samstag, 13. Dezember 2008 12:03:21 schrieb madhg:
> Reinhold Kainhofer wrote:
> > ...
> > Attached is a patch to implement straight flags (in modern style, i.e.
> > slanted
> > only ~20 degrees). I think the angles (different angles for up/down
> > stems!)
> > and the lengths are okay, although they might still be fine-tuned a bit
> > more.
> > ...
>
> I've been watching this thread, and successive Lilypond versions, to see
> what's happening about the straight flags that I offered to sponsor in the
> first post of the thread.

There is some code already existing (but commented out) in flag-styles.scm. 
Attached is an example of my current version plus the patch to get them.

However, I'm running into some problems:
- -) How can I obtain the line-thickness. It's not a property of the stem grob
    and in the flag formatting function I don't have the curent layout object
    available...
- -) How can I obtain the width of a black notehead? In particular, for grace
    notes the flag needs to be scaled according to the note head, so the 
    staff-space can't be used for this.
- -) What's the best way to convert an angle/length pair of polar coordinates
    (angle given in degree) to cartesian coordinates in scheme / guile? I
    don't want it as a complex number, but as a pair of reals...
- -) How shall the slash through grace notes look exactly for straight flags?

I hope some of the other developers can help me in this regard.

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, 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/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJQ71ITqjEwhXvPN0RApYTAKChgC43dbd9mxBvIABjVOZkVjIkbwCfVsmw
2mCV2FXBIu+zcedHnKs1JC4=
=mJCZ
-----END PGP SIGNATURE-----

Attachment: flags-straight.ly
Description: Text Data

Attachment: 0001-Implement-straight-flags-in-scheme.patch
Description: Text Data

Attachment: flags-straight.png
Description: PNG image


reply via email to

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