[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overall (global) resizing difficulties
From: |
Thomas Morley |
Subject: |
Re: Overall (global) resizing difficulties |
Date: |
Wed, 11 Sep 2013 00:41:17 +0200 |
2013/9/11 Patrick or Cynthia Karl <address@hidden>:
>> Date: Tue, 10 Sep 2013 18:56:09 +0200
>> From: Eluze <address@hidden>
>> To: address@hidden
>> Subject: Re: Overall (global) resizing difficulties
>> well - I think it's described somewhere inta manual. here's a little
>> function to facilitate the change of those 3 values:
>
> What does "it" refer to here?
>>
>> staffSize = #(define-music-function (parser location new-size) (number?)
>> #{
>> \set fontSize = #new-size
>> \override StaffSymbol #'staff-space = #(magstep new-size)
>> \override StaffSymbol #'thickness = #(magstep new-size)
>> #})
>> music = \relative c' { c d e f g a b c }
>> \new Staff \with {\staffSize #-16 } \music
>> \score {
>> \new Staff \with {\staffSize #16 } \music
>> }
>
> I am afraid I don't understand the function of the staffSize function. The
> following snippet produces four identical, to my eyes, outputs:
>
> %%%% B e g i n S n i p p e t %%%%
> \version "2.16.2"
>
> music = \relative c' { c d e f g a b c }
>
> \new Staff \music
>
> \score {
> \new Staff \music
> }
>
>
> staffSize = #(define-music-function (parser location new-size) (number?)
> #{
> \set fontSize = #new-size
> \override StaffSymbol #'staff-space = #(magstep new-size)
> \override StaffSymbol #'thickness = #(magstep new-size)
> #})
>
>
> \new Staff \with {\staffSize #-16 } \music
>
> \score {
> \new Staff \with {\staffSize #16 } \music
> }
> %%%% E n d S n i p p e t %%%%
Eluze's example works --- with 2.17.25
For 2.16.2 you could use:
\version "2.16.2"
music = \relative c' { c d e f }
staffSize = #(define-scheme-function (parser location new-size) (number?)
#{
\with {
fontSize = #new-size
\override StaffSymbol #'staff-space = #(magstep new-size)
\override StaffSymbol #'thickness = #(magstep new-size)
}
#})
\new Staff \with { \staffSize #-16 } \music
\new Staff \with { \staffSize #16 } \music
> What would a "new-size" value of -16 mean?
Well, what does \fontsize #16 (#-16) do in \markup? Making it larger (smaller).
Here fontSize, 'staff-space and 'thickness of the lines are modified.
I feel I don't get the point of the question.
>
> Does anyone not agree with me that layout-set-staff-size is nonsensical and
> nonworking? And that the documentation should document exactly what it does?
> and how the "staff size" can be changed without changing the distance
> between staff lines? (I feel like I'm in a Kafka novel here.)
There were some discussions about layout-set-staff-size some time/years ago.
Can't find it right now.
>
>
>>
>> hth
>> Eluze
[deleting billions of lines]
Cheers,
Harm
- Re: Overall (global) resizing difficulties, (continued)
- Re: Overall (global) resizing difficulties, Joshua Nichols, 2013/09/10
- Message not available
- Re: Overall (global) resizing difficulties, Carl Peterson, 2013/09/10
- Re: Overall (global) resizing difficulties, Joshua Nichols, 2013/09/10
- Re: Overall (global) resizing difficulties, Carl Peterson, 2013/09/10
- Re: Overall (global) resizing difficulties, Joshua Nichols, 2013/09/10
- Re: Overall (global) resizing difficulties, Carl Peterson, 2013/09/10
- Re: Overall (global) resizing difficulties, David Kastrup, 2013/09/10
Re:Overall (global) resizing difficulties, Patrick or Cynthia Karl, 2013/09/10
Re: Overall (global) resizing difficulties, Patrick or Cynthia Karl, 2013/09/10