lilypond-user
[Top][All Lists]
Advanced

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

RE: \context for named Staff


From: Nick Payne
Subject: RE: \context for named Staff
Date: Sun, 9 Aug 2009 13:40:09 +1000

>From my point of view the main use for smallStaff (or whatever it gets
called) is for ossia staves.

Nick

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Jay Anderson
> Sent: Sunday, 9 August 2009 10:18 AM
> To: Alexander Kobel; Dan Eble
> Cc: address@hidden; Jonathan Wilkes; lilypond-devel
> Subject: Re: \context for named Staff
> 
> On Sat, Aug 8, 2009 at 12:57 PM, Dan Eble<address@hidden> wrote:
> > Doesn't this mix up meaning and appearance?  What will you do when
> people
> > come asking for LargeStaff, TinyStaff, LittleGreenStaff (for Martian
> music),
> > and so forth?
> 
> On Sat, Aug 8, 2009 at 1:45 PM, Alexander Kobel<address@hidden> wrote:
> > Oh, and by the way... No experience for this on my side, but are
> there
> > scores with small rhythmic or drum staffs? Then we should probably
> also have
> > a SmallRhythmicStaff, SmallDrumStaff, SmallVaticanaStaff and so on,
> right?
> 
> Hmm... I agree that it wouldn't make sense to define versions for
> every different size (or color :) ) and to define resized versions of
> every staff type out there. A global variable would probably work for
> the size problem, but it's still somewhat ugly to have a version for
> every staff type. The the generic "SmallStaff" is probably the most
> common case though. So what do you think? Should the "SmallStaff" just
> be left as a snippet?
> 
> If it is a snippet ideally I'd want to do something like:
> 
> \include "small_staff.lyi"
> \score {
>   \new SmallStaff {...}
> }
> 
> How would one make small_staff.lyi so this worked? This way it would
> be bundled with the other global variables. The only way I found was
> to do this:
> 
> small_staff.lyi
> =====
> \context {
>   \Score
>   \accepts "SmallStaff"
> }
> \context {
>   \Staff
>   \type "Engraver_group"
>   \name "SmallStaff"
>   \alias "Staff"
> 
>   fontSize = #-3
>   \override StaffSymbol #'staff-space = #(magstep -3)
> }
> =====
> other.ly
> =====
> \score {
>   \new SmallStaff {...}
>   \layout { \include "small_staff.lyi" }
> }
> =====
> 
> -----Jay
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.392 / Virus Database: 270.13.48/2291 - Release Date:
> 08/08/09 18:17:00





reply via email to

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