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

2015-05-27 Thread Peter Gentry
 

-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


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

2015-05-27 Thread Peter Gentry
 

-Original Message-
From: Phil Holmes [mailto:m...@philholmes.net] 
Sent: Wednesday, May 27, 2015 11:49 AM
To: Peter Gentry; lilypond-user@gnu.org
Cc: 'Thomas Morley'
Subject: Re: Notehead color on programmed pitch change (now \tweak)

- Original Message -
From: Peter Gentry peter.gen...@sunscales.co.uk
To: lilypond-user@gnu.org
Cc: 'Thomas Morley' thomasmorle...@gmail.com
Sent: Wednesday, May 27, 2015 10:27 AM
Subject: Re: Notehead color on programmed pitch change (now \tweak)



 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

I think you'll find that this is nothing to do with tweak: 
it's either the 
way your PDF viewer rasterises the stems where the notehead is 
above the 
stave, or an optical illusion.  Rasterising them at 1200 dpi 
and overlaying 
the stems in a image manipulating program showed them to be 
all identical.


--
Phil Holmes 

Yes it is noting to do with tweak it arises from using the magnifier in the 
Frecobaldi output window - this can produce  apparent
variations in note stem width. They are  an artefact and do not affect the 
printed output. Case closed.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user