Re: Overall (global) resizing difficulties
Could you attach the problematic code, please? -- Phil Holmes - Original Message - From: Joshua Nichols To: Mailinglist lilypond-user Sent: Tuesday, September 10, 2013 6:49 AM Subject: Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) }I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh -- ___ 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: Overall (global) resizing difficulties
On Tue, Sep 10, 2013 at 1:04 PM, Joshua Nichols josh.d.nich...@gmail.comwrote: Thanks Carl! Should the myStaffSize be inside a #() or unspecified? It is outside a Scheme context, so: \paper { myStaffSize = #22 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
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: 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 } hth Eluze Am 10.09.2013 18:35, schrieb Patrick or Cynthia Karl: Message: 1 Date: Tue, 10 Sep 2013 15:41:49 +0100 From: Phil Holmes m...@philholmes.net To: Joshua Nichols josh.d.nich...@gmail.com,Mailinglist lilypond-user lilypond-user@gnu.org Subject: Re: Overall (global) resizing difficulties Message-ID: 5BFCF5FF54814E1EA940594E7D0D45D1@Advent Content-Type: text/plain; charset=iso-8859-1 Could you attach the problematic code, please? I think this is an old and very strange problem, which is illustrated by the following code \version 2.16.2 music = \relative c' { c d e f g a b c } \score { \new Staff {\music} \layout {#(layout-set-staff-size 80)} } \score { \new Staff {\music } \layout {#(layout-set-staff-size 5)} } It's difficult to see why anyone thinks that this (mis)function should even be in LilyPond. The strangeness is only exacerbated by the fact that it's documented at the end of section 4.2.2 (Setting the Staff Size) in the 2.16 Notation Reference: Known issues and warnings layout-set-staff-size does not change the distance between the staff lines. Maybe the documentation should address how the staff size can be changed without changing the distance between the staff lines. -- Phil Holmes - Original Message - From: Joshua Nichols To: Mailinglist lilypond-user Sent: Tuesday, September 10, 2013 6:49 AM Subject: Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) }I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh ___ 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: Overall (global) resizing difficulties
Thanks Carl! Should the myStaffSize be inside a #() or unspecified? IC, Josh On Tue, Sep 10, 2013 at 11:55 AM, Carl Peterson carlopeter...@gmail.comwrote: Replying to group since I forgot to the first time... On Tue, Sep 10, 2013 at 12:54 PM, Carl Peterson carlopeter...@gmail.comwrote: I use #(set-global-staff-size __) at the top oc the document and myStaffSize = #__ in the paper block. Usually I have to play with the two to find the right combination of staff size and symbol size. Not sure if it's strictly necessary to do both, but since I define custom fonts for my documents, I seem to remember both being required for that. On Tue, Sep 10, 2013 at 12:50 PM, Joshua Nichols josh.d.nich...@gmail.com wrote: Unfortunately, I've tried to find where it stops doing this, but I cannot provide a small snippet. I'm not sure where it happens... I am happy to forward the attached .ly file for you to fiddle with. I'm sorry I can't specify a tiny example. I've tried and am getting a little frustrated (maybe fresh eyes would help). IC, Josh On Tue, Sep 10, 2013 at 9:41 AM, Phil Holmes m...@philholmes.netwrote: ** Could you attach the problematic code, please? -- Phil Holmes - Original Message - *From:* Joshua Nichols josh.d.nich...@gmail.com *To:* Mailinglist lilypond-user lilypond-user@gnu.org *Sent:* Tuesday, September 10, 2013 6:49 AM *Subject:* Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) } I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh -- ___ 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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Joshua Nichols josh.d.nich...@gmail.com writes: Unfortunately, I've tried to find where it stops doing this, but I cannot provide a small snippet. I'm not sure where it happens... I am happy to forward the attached .ly file for you to fiddle with. I'm sorry I can't specify a tiny example. I've tried and am getting a little frustrated (maybe fresh eyes would help). \paper { #(set-paper-size Hymn) page-count = #1 #(layout-set-staff-size 12) #(define fonts (make-pango-font-tree Book Antiqua Nimbus Sans Luxi Mono (/ 20 20))) } Cough, cough. You explicitly require your fonts to be suitable for 20 points here. Either remove the font definition, or at least use a scale factor of 12/20 instead of 20/20. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Unfortunately, I've tried to find where it stops doing this, but I cannot provide a small snippet. I'm not sure where it happens... I am happy to forward the attached .ly file for you to fiddle with. I'm sorry I can't specify a tiny example. I've tried and am getting a little frustrated (maybe fresh eyes would help). IC, Josh On Tue, Sep 10, 2013 at 9:41 AM, Phil Holmes m...@philholmes.net wrote: ** Could you attach the problematic code, please? -- Phil Holmes - Original Message - *From:* Joshua Nichols josh.d.nich...@gmail.com *To:* Mailinglist lilypond-user lilypond-user@gnu.org *Sent:* Tuesday, September 10, 2013 6:49 AM *Subject:* Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) } I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh -- ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Men Rest U Souls.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
See David Kastrup's answer. You have to change the one in the font tree as well. On Tue, Sep 10, 2013 at 2:05 PM, Joshua Nichols josh.d.nich...@gmail.comwrote: I am getting no response with this method. Things are still odd... HOWEVER! When I changed to the default Text Font (eliminating the modified font tree), I got a normal response... So perhaps it is a bug? Or am I missing something? IC, Josh On Tue, Sep 10, 2013 at 12:12 PM, Carl Peterson carlopeter...@gmail.comwrote: On Tue, Sep 10, 2013 at 1:04 PM, Joshua Nichols josh.d.nich...@gmail.com wrote: Thanks Carl! Should the myStaffSize be inside a #() or unspecified? It is outside a Scheme context, so: \paper { myStaffSize = #22 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Replying to group since I forgot to the first time... On Tue, Sep 10, 2013 at 12:54 PM, Carl Peterson carlopeter...@gmail.comwrote: I use #(set-global-staff-size __) at the top oc the document and myStaffSize = #__ in the paper block. Usually I have to play with the two to find the right combination of staff size and symbol size. Not sure if it's strictly necessary to do both, but since I define custom fonts for my documents, I seem to remember both being required for that. On Tue, Sep 10, 2013 at 12:50 PM, Joshua Nichols josh.d.nich...@gmail.com wrote: Unfortunately, I've tried to find where it stops doing this, but I cannot provide a small snippet. I'm not sure where it happens... I am happy to forward the attached .ly file for you to fiddle with. I'm sorry I can't specify a tiny example. I've tried and am getting a little frustrated (maybe fresh eyes would help). IC, Josh On Tue, Sep 10, 2013 at 9:41 AM, Phil Holmes m...@philholmes.net wrote: ** Could you attach the problematic code, please? -- Phil Holmes - Original Message - *From:* Joshua Nichols josh.d.nich...@gmail.com *To:* Mailinglist lilypond-user lilypond-user@gnu.org *Sent:* Tuesday, September 10, 2013 6:49 AM *Subject:* Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) } I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh -- ___ 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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Message: 1 Date: Tue, 10 Sep 2013 18:56:09 +0200 From: Eluze elu...@gmail.com To: lilypond-user@gnu.org Subject: Re: Overall (global) resizing difficulties Message-ID: 522f4f29.9010...@gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed 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 What would a new-size value of -16 mean? 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.) hth Eluze Am 10.09.2013 18:35, schrieb Patrick or Cynthia Karl: Message: 1 Date: Tue, 10 Sep 2013 15:41:49 +0100 From: Phil Holmes m...@philholmes.net To: Joshua Nichols josh.d.nich...@gmail.com,Mailinglist lilypond-user lilypond-user@gnu.org Subject: Re: Overall (global) resizing difficulties Message-ID: 5BFCF5FF54814E1EA940594E7D0D45D1@Advent Content-Type: text/plain; charset=iso-8859-1 Could you attach the problematic code, please? I think this is an old and very strange problem, which is illustrated by the following code \version 2.16.2 music = \relative c' { c d e f g a b c } \score { \new Staff {\music} \layout {#(layout-set-staff-size 80)} } \score { \new Staff {\music } \layout {#(layout-set-staff-size 5)} } It's difficult to see why anyone thinks that this (mis)function should even be in LilyPond. The strangeness is only exacerbated by the fact that it's documented at the end of section 4.2.2 (Setting the Staff Size) in the 2.16 Notation Reference: Known issues and warnings layout-set-staff-size does not change the distance between the staff lines. Maybe the documentation should address how the staff size can be changed without changing the distance between the staff lines. -- Phil Holmes - Original Message - From: Joshua Nichols To: Mailinglist lilypond-user Sent: Tuesday, September 10, 2013 6:49 AM Subject: Overall (global) resizing difficulties Has anyone encountered overall resizing issues when using: \layout { #(layout-set-staff-size 15) }I have tried to use this to scale back several more involved scores (SATB+Organ accompaniment), but if I go any less that '16' for the staff size, my notes, time signatures, words, and clefs stop shrinking. This isn't so much a problem with snippets; I recreated it with simple things, and they didn't come out with the same problem. See attached for a visual. IC, Josh ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- next part -- An HTML attachment was scrubbed... URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130910/234d33a5/attachment.html -- Message: 2 Date: Tue, 10 Sep 2013 19:00:34 +0200 From: David Kastrup d...@gnu.org To: lilypond-user@gnu.org Subject: Re: Overall (global) resizing difficulties Message-ID: 87txhspq6l@fencepost.gnu.org Content-Type: text/plain Joshua Nichols josh.d.nich...@gmail.com writes: Unfortunately, I've tried to find where it stops doing this, but I cannot provide a small snippet. I'm not sure where it happens... I am happy to forward the attached .ly file for you to fiddle with. I'm sorry I can't specify a tiny example. I've tried and am getting a little frustrated (maybe fresh eyes would help). \paper { #(set-paper-size Hymn) page-count = #1 #(layout-set-staff-size 12) #(define fonts (make-pango-font-tree Book Antiqua Nimbus Sans Luxi Mono
Re: Overall (global) resizing difficulties
I am getting no response with this method. Things are still odd... HOWEVER! When I changed to the default Text Font (eliminating the modified font tree), I got a normal response... So perhaps it is a bug? Or am I missing something? IC, Josh On Tue, Sep 10, 2013 at 12:12 PM, Carl Peterson carlopeter...@gmail.comwrote: On Tue, Sep 10, 2013 at 1:04 PM, Joshua Nichols josh.d.nich...@gmail.comwrote: Thanks Carl! Should the myStaffSize be inside a #() or unspecified? It is outside a Scheme context, so: \paper { myStaffSize = #22 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
2013/9/11 Patrick or Cynthia Karl pck...@mac.com: Date: Tue, 10 Sep 2013 18:56:09 +0200 From: Eluze elu...@gmail.com To: lilypond-user@gnu.org 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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Patrick or Cynthia Karl wrote Tuesday, September 10, 2013 11:11 PM 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.) I've not been following this thread, but I think layout-set-staff-size is not useful here. (I can't see what it does either.) Have you looked at http://www.lilypond.org/doc/v2.17/Documentation/notation/distances-and-measurements This explains how to change the staff-size locally, and how magstep is invoked to make a corresponding change to the font. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Overall (global) resizing difficulties
Patrick or Cynthia Karl pckarl at mac.com writes: Message: 1 Date: Tue, 10 Sep 2013 18:56:09 +0200 From: Eluze eluzew at gmail.com To: lilypond-user at gnu.org Subject: Re: Overall (global) resizing difficulties Message-ID: 522F4F29.9010607 at gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed well - I think it's described somewhere inta manual. here's a little function to facilitate the change of those 3 values: ... snip... Message: 2 Date: Tue, 10 Sep 2013 19:00:34 +0200 Well, I don't have an answer to the question, but... a reminder... it is VERY uncool to quote an *entire digest* when you're replying to only one message. Bad workflow: 1. Reply 2. Write 3. Send Good workflow: 1. Reply 2. Write 3. Remove irrelevant quotes 4. Send IMO step 3 is not optional. hjh ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user