|
From: | Marc Hohl |
Subject: | Re: Best name for function to create cross-style noteheads |
Date: | Thu, 30 Jul 2009 19:15:38 +0200 |
User-agent: | Thunderbird 2.0.0.22 (X11/20090608) |
Trevor Daniels schrieb:
Carl Sorensen wrote Friday, July 24, 2009 2:07 PMOn 7/24/09 6:16 AM, "Trevor Daniels" <address@hidden> wrote:The structure of the Notation Reference is designed to accommodate documenting this. The specialist sections in NR 2 would contain an indexed description of all the uses of crossed note heads. For example, under "Common notation for wind instruments" would appear "key-slap" and "sub-tone", with a pointer to the description of crossed note heads, which is already described in NR 1.1.4 Note heads (#'style=#'cross). Other uses of crossed note heads should be documented similarly in the appropriate specialist sections.Recognizing that we may want to change noteheads to various styles, and that we may want to mix styles in a chord, it might be a good idea to define a function \changeNoteHead that accepts a style parameter, and then define \xHead as \changeNoteHead #'cross.I'm confused or missing something. What's wrong with xHeadOn = \override NoteHead #'style = #'cross xHeadOff = \override NoteHead #'style = #'() which works now?
The discussion led aside from the initial idea for \deadNote. This is a command that works in every situation and is therefor more user-friendly *and* it works with tablature, and this was the starting point of it all. When tablature features will be part of lilypond, I can just say c4 \deadNote d e f | < c \deadNote e g>4 and the cross will be visible in normal and in tablature staves. Of course this can be done with tweaking and overriding, but as Graham pointed out in a message some months ago, it would be the best if no scheme hacks will be necessary for standard notation (and dead notes are kind of standard in pop and rock music on guitar and bass). It is not that long ago that \override and \tweak were the reason for me not to use lilypond for my projects (ok, now I'm a bit more scheme-savvy, but this is another story). Marc
I haven't tried this, and there may be some problems in making it work in achord, but I think it's worth a try.This works <e \tweak #'style #'cross a c> but I don't know a way to invoke it with a \xHead shortcut.
<e \xHead a c> :-)
CarlTrevor
[Prev in Thread] | Current Thread | [Next in Thread] |