Re: LP output directive to annotate contexts, staves, voices

2019-01-25 Thread Barbara Mroczek
I believe that this snippet from the first answer may be helpful:
https://stackoverflow.com/questions/5370326/changing-all-the-colors-in-
lilypond
But from what understand, more useful may by this part of documentation
http://lilypond.org/doc/v2.19/Documentation/internals/contexts
or rather this
http://lilypond.org/doc/v2.19/Documentation/internals/all-layout-object
s
where you can find relevant engraver and check, of which context(s) it
is part of.
Cheers,
Basia
On śro, 2019-01-23 at 15:50 -0600, Guy Stalnaker wrote:
> Wondering if such a thing exists?
> 
> I know I can color-code voices (e.g., /voiceOne, etc.) but I'm
> thinking about annotated output for all contexts, staves, voices
> (something like the Annotate Spacing option).
> 
> Because LP is written to create implicit contexts it is sometimes
> difficult to see what's being done by LP when it parses code if
> things go awry. Having contexts, named or otherwise, shown in the
> output would be helpful. I recently tried to move lyric output above
> a staff in a temporary polyphonic context and could not get it to
> work on my own. I eventually found a snippet that the job. Having LP
> show which contexts are which might have revealed why my \lyricsto
> "name" was not working.
> 
> Guy
> 
> Guy Stalnaker
> jimmyg...@gmail.com
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Coloring notes played on black piano key AND coloring accidental and key signature notes with different colors

2019-01-18 Thread Barbara Mroczek
I don't see any answer, so here are my two cents.
Here you can find snippet, that colors note heads depending on their
pitch and name:
http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Pitches#Color
ing-notes-depending-on-their-pitch
All you need to do is modify the list associating pitches (names) with
colors. Pitches are described using ly:make-pitch, which description
you will find here:
http://lilypond.org/doc/v2.18/Documentation/internals/scheme-functions
As I understand, you want all pitches from key signature blue and the
rest of non-natural pitches red.
Hth,
Basia
On pią, 2019-01-11 at 13:08 +0100, Pierre-Emile LHUILLIER wrote:
> Dear all,
>  
> Could you help me achieving the following objectives :
>  
> 1)  In a piano staff, I would like to color (in blue) the notes
> that are played on the black piano keys
> And if possible :
> 2)  I would like to color differently the note that are played on
> a black piano keys because of the key signature (in blue) from the
> notes that are played on black piano keys because of accidentals (in
> red)
>  
> Best regards
> 
> Pierre-Emile
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user