lilypond-user
[Top][All Lists]
Advanced

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

Re: Notehead color on programmed pitch change (now \tweak)


From: Peter Gentry
Subject: Re: Notehead color on programmed pitch change (now \tweak)
Date: Wed, 27 May 2015 10:27:22 +0100

 

>-----Original Message-----
>From: Peter Gentry [mailto:address@hidden 
>Sent: Wednesday, May 27, 2015 10:16 AM
>To: 'address@hidden'
>Cc: 'Thomas Morley'
>Subject: Re: Notehead color on programmed pitch change
>
> 
>
>>-----Original Message-----
>>From: Thomas Morley [mailto:address@hidden
>>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 
><address@hidden>:
>>> 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.....




reply via email to

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