>-----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...... _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user