Re: accessing accidentals with \tweak

2009-07-19 Thread Valentin Villenave
2009/7/18 Carl Sorensen : > Thanks for your creativity! Could said "creativity" give birth to a LSR snippet as well? :-) Regards, Valentin ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: accessing accidentals with \tweak

2009-07-18 Thread Carl Sorensen
On 7/15/09 4:19 PM, "Mark Polesky" wrote: > Mark Polesky wrote: > > Okay, I figured out a way around this -- by passing an property-alist to > the 'before-line-breaking tweak, I was able to get all the accidental > modifications done in one tweak (see "modify-accidental" below). I've > also i

Re: accessing accidentals with \tweak

2009-07-15 Thread TaoCG
Mark Polesky wrote: > > Mark Polesky wrote: > Okay, I figured out a way around this -- by passing an property-alist to > the 'before-line-breaking tweak, I was able to get all the accidental > modifications done in one tweak (see "modify-accidental" below). > I just came up with something simi

Re: accessing accidentals with \tweak

2009-07-15 Thread Mark Polesky
Mark Polesky wrote: > Unfortunately this doesn't seem to work. See attached PNG and > console output below. When using this "indirect" tweaking method, > only the *last* tweak affects the typeset output. The desired > output in the example below is to have both E-naturals colored red > and reduced

Re: accessing accidentals with \tweak

2009-07-15 Thread Mark Polesky
Carl Sorensen wrote: > What if a property like tweak-callback were added, whose job is > just to trigger the grob callback necessary for what you want to > do? > > Then you could have > \relative { > > } > > I think you could have multiple calls to #'tweak-callback, > because all of the tweaks a

Re: accessing accidentals with \tweak

2009-07-14 Thread Trevor Daniels
Neil Puttock wrote Tuesday, July 14, 2009 9:54 PM Perhaps we should amend the documentation for \tweak: it can't be used to modify stems, beams or accidentals *directly*. I've done this, but it would be better to be able to refer to a description of how to use Mark's neat technique in NR 5.5

Re: accessing accidentals with \tweak

2009-07-14 Thread Carl Sorensen
On 7/14/09 2:15 PM, "Mark Polesky" wrote: > > > In NR 5.3.4 "The \tweak command", it says this: > > Notably the \tweak command cannot be used to modify stems, beams > or accidentals, since these are generated later by note heads, > rather than by music elements in the input stream. > > htt

Re: accessing accidentals with \tweak

2009-07-14 Thread Neil Puttock
2009/7/14 Mark Polesky : > 1) are the results of this technique undefined? Was it just luck >   that these worked? Of course not. You're just accessing the accidental indirectly. Perhaps we should amend the documentation for \tweak: it can't be used to modify stems, beams or accidentals *direct

accessing accidentals with \tweak

2009-07-14 Thread Mark Polesky
In NR 5.3.4 "The \tweak command", it says this: Notably the \tweak command cannot be used to modify stems, beams or accidentals, since these are generated later by note heads, rather than by music elements in the input stream. http://kainhofer.com/~lilypond/Documentation/user/lilypond/The-tweak-