lilypond-user
[Top][All Lists]
Advanced

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

Re: RhythmicStaff - gray-scaling and getting rid of double heads for cho


From: Vivian Barty-Taylor
Subject: Re: RhythmicStaff - gray-scaling and getting rid of double heads for chords
Date: Mon, 29 Sep 2008 21:31:47 +0200

Hi Anders,

I'm not sure about the colouring issue. Hoping someone else has some ideas.

The "doubled" Noteheads come about because RhythmicStaff interprets all pitches as the same. I don't know what effect you are wanting exactly, but if you want a single staff line with Noteheads on either side of it you could use a normal Staff and set #'line-count to #1 ( the exact syntax for doing this is \override Staff.StaffSymbol #'line-count = #1 ) You can put a percussion clef on this staff with \clef "percussion" in which case the central pitch is c' .

I'm impressed by your Scheme function to set up the Context. Lilypond also has a native syntax for altering contexts ( where you can, indeed, add and remove engravers. ) See 9.2.6 Changing context default settings and 9.2.4 Modifying context plug-ins in the manual. You can find a complete list of Engravers in the Program Reference . 

A simpler way to change staff size is:

#(set-global-staff-size value) which scales everything.

See: 

11.2.1 Setting the staff size

Footnotes:
[1] I am honestly doing some research before asking here.  Before asking
here im looking in the manuals ive got, searching the .info pages, and
finally the web. 

No need for this apology! Many people ask much simpler questions here.

All the best,
Vivian.


On Sep 29, 2008, at 2:57 PM, address@hidden wrote:

Id like to make a smaller RhythmicStaff with some special qualities,
like smaller font etc.  This one works fine, but i have a couple of
things id like to fix[1] (see below):

rytmestaff = #(define-music-function (parser location navn rytmer) (string? ly:music?)
      #{
      \context RhythmicStaff = $navn {
      \set Staff.fontSize = #-3
      \override Staff.StaffSymbol #'color = #(x11-color 'gray60)
      \override Staff.StaffSymbol #'staff-space = #(magstep -3)
      $rytmer
    } 
      #})

1) Id like to gray-scale the whole staff.  Is there a simple way[2] instead
of overriding zillions of objects w. properties to draw everything
inside the RhythmicStaff context in 'gray80?  Ie:

       \override Staff.StaffSymbol   #'color = #(x11-color 'grey60)
       \override Staff.TimeSignature #'color = #(x11-color 'grey60)
       \override Staff.Clef          #'color = #(x11-color 'grey60)
       \override Staff.NoteHead      #'color = #(x11-color 'grey60)
       \override Staff.Stem          #'color = #(x11-color 'grey60)
       \override Staff.BarLine       #'color = #(x11-color 'grey60)
       \override Staff.Beam          #'color = #(x11-color 'grey60)


2) For every chord in the input i get a 'doubled' note-head in the
RhythmicStaff?  How to get rid of those?  Is there a chord-engraver or
notecolumn-engraver i can grab and do something with inside this
context?


Footnotes:
[1] I am honestly doing some research before asking here.  Before asking
here im looking in the manuals ive got, searching the .info pages, and
finally the web. 

[2]  Guess what, im starting to beleive there is...

Thanks,

-anders


_______________________________________________
lilypond-user mailing list


reply via email to

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