-Original Message-
From: Peter Gentry [mailto:peter.gen...@sunscales.co.uk]
Sent: Wednesday, May 27, 2015 10:16 AM
To: 'lilypond-user@gnu.org'
Cc: 'Thomas Morley'
Subject: Re: Notehead color on programmed pitch change
-Original Message-
From: Thomas Morley [mailto:thomasmorle...@gmail.com]
Sent: Tuesday, May 26, 2015 5:33 PM
To: Peter Gentry
Cc: lilypond-user
Subject: Re: Subject: Re: Notehead color on programmed pitch change
2015-05-26 18:09 GMT+02:00 Peter Gentry
peter.gen...@sunscales.co.uk:
Thanks very much for your solution - I'm not yet sure why it
works...how does 'tweaks know about notehead color? All
very baffling
Well, most (every?) music-event may be tweaked.
Look at the terminal-output from:
\displayMusic
{
\tweak color #red c''1
}
My code adds this tweak to the NoteEvent under certain conditions.
Outlook strikes again - try this
Well, perhaps you'll have success persuading outlook to keep your
formating.
If not I'd look out for another mail-program ;)
Cheers,
Harm
Thanks for the pointer...
I tried this
{
c'1
\tweak color #red c''1
}
And the log gives
(make-music
'SequentialMusic
'elements
(list (make-music
'NoteEvent
'duration
(ly:make-duration 0)
'pitch
(ly:make-pitch 0 0))
(make-music
'NoteEvent
'tweaks
(list (list (quote color) 1.0 0.0 0.0))
'duration
(ly:make-duration 0)
'pitch
(ly:make-pitch 1 0
Maybe this use of \tweak would be useful to many people - like
a door opening.
Still not sure how to interpret (list (list... But as long
as Lily does.:)
Now to experiment with other music properties..
Further to this it seems the effect of this tweak is rather odd. The color of
the following note head is changed but the note stem
is also thinner and this effect carries over to the next notes and indeed the
number of notes affected varies see
\version 2.19.15
\displayMusic
\relative {
c'4 c4 c4 c4
\tweak color #red c''4 c4 c4 c4
}
The plot thickens.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user