Re: set-global-staff-size

2019-08-19 Thread Vaughan McAlley
On Tue, 20 Aug 2019 at 12:26, Aaron Hill  wrote:
>
> On 2019-08-19 6:50 pm, Vaughan McAlley wrote:
> > Hi everyone,
> >
> > The manual says:
> >
> > “To set the staff size globally for all scores in a file (or in a \book
> > block, to be precise), use set-global-staff-size”
> >
> > What am I doing wrong here? The size 8 one is large and the size 50 one
> > is
> > normal (20 probably?)
>
> It would seem the set-global-staff-size command needs to execute
> *before* beginning a \book block:
>
> 
> \version "2.19.81"
>
> #(set-global-staff-size 50)
> \book {
>  \score {
>c'1^"#(set-global-staff-size 50)"
>  \layout {}
>  }
> }
>
> #(set-global-staff-size 8)
> \book {
>  \score {
>c'1^"#(set-global-staff-size 8)"
>  \layout {}
>  }
> }
> 
>
> -- Aaron Hill
>

Ah, I see. Thank you!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size

2019-08-19 Thread Aaron Hill

On 2019-08-19 6:50 pm, Vaughan McAlley wrote:

Hi everyone,

The manual says:

“To set the staff size globally for all scores in a file (or in a \book
block, to be precise), use set-global-staff-size”

What am I doing wrong here? The size 8 one is large and the size 50 one 
is

normal (20 probably?)


It would seem the set-global-staff-size command needs to execute 
*before* beginning a \book block:



\version "2.19.81"

#(set-global-staff-size 50)
\book {
\score {
  c'1^"#(set-global-staff-size 50)"
\layout {}
}
}

#(set-global-staff-size 8)
\book {
\score {
  c'1^"#(set-global-staff-size 8)"
\layout {}
}
}


-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size undoes define fonts

2019-01-27 Thread Michael Gerdau

>>> On 27/01/2019 04:52, David F. wrote:
>>> I can specify the font for my score to use with #(define fonts … ), but 
>>> calling #(set-global-staff-size) undoes the font definition.

I seem to recall that’s documented somewhere but I can’t find where.

>> Why do you insist on the order, anyway? If you don't, I think the
>> solution would be quite obvious.
> 
> Because I engrave hymns in several different styles, e.g. 4:3 slides, 16:9 
> slides, hymnal-style, etc.  I have a .ly file with all the base or common 
> styles and then I override whatever is appropriate for specific styles.  In 
> this case, I want the font to be the same for all styles (so it gets declared 
> first).  But slides have a larger text size, so I want to override the font 
> size specifically for engraving slides, so it gets declared later.

That does not make sense in the general meaning of things. There’s no reason 
other than your preferred order of definitions that prevents you from setting 
size first and do the font definitions afterwards.

> As a workaround to the trouble I’m having (because there is a bug in either 
> Lilypond or my understanding)

It is my understanding there’s a bug in your understanding 

Kind regards,
Michael
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size undoes define fonts

2019-01-27 Thread David F.


On Jan 27, 2019, at 9:09 PM, Martin Neubauer  wrote:

> On 27/01/2019 04:52, David F. wrote:
>> I can specify the font for my score to use with #(define fonts … ), but 
>> calling #(set-global-staff-size) undoes the font definition.
>> 
>> In the snippet below, Times New Roman will be used as the font for the whole 
>> document.  But if line 6 is uncommented, the font reverts to the default of 
>> New Century Schoolbook.  (These fonts are easily distinguished by the letter 
>> Q—hence the title.)
>> 
>> Any suggestion on how I can both set the font to TNR and set the staff size 
>> (in that order)?
> Why do you insist on the order, anyway? If you don't, I think the
> solution would be quite obvious.

Because I engrave hymns in several different styles, e.g. 4:3 slides, 16:9 
slides, hymnal-style, etc.  I have a .ly file with all the base or common 
styles and then I override whatever is appropriate for specific styles.  In 
this case, I want the font to be the same for all styles (so it gets declared 
first).  But slides have a larger text size, so I want to override the font 
size specifically for engraving slides, so it gets declared later.

As a workaround to the trouble I’m having (because there is a bug in either 
Lilypond or my understanding) I’m currently re-declaring the font change after 
I call set-global-staff-size.  Which means I now have duplication in my style 
declarations.

David


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size undoes define fonts

2019-01-27 Thread Martin Neubauer
On 27/01/2019 04:52, David F. wrote:
> I can specify the font for my score to use with #(define fonts … ), but 
> calling #(set-global-staff-size) undoes the font definition.
> 
> In the snippet below, Times New Roman will be used as the font for the whole 
> document.  But if line 6 is uncommented, the font reverts to the default of 
> New Century Schoolbook.  (These fonts are easily distinguished by the letter 
> Q—hence the title.)
> 
> Any suggestion on how I can both set the font to TNR and set the staff size 
> (in that order)?
Why do you insist on the order, anyway? If you don't, I think the
solution would be quite obvious.

> 
> ===
> \version "2.19"
> 
> \paper {
> #(define fonts (make-pango-font-tree "Times New Roman" "" "" 1))
> }
> % #(set-global-staff-size 20)
> 
> \header {
> title = "QQQ"
> }
> 
> \relative c' {
>   c c c c
> }
> ===
> 
> Thanks,
> David
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
-- 
Those are my principles. If you don't like them, I have others.



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size undoes define fonts

2019-01-26 Thread David F.


On Jan 26, 2019, at 8:52 PM, David F.  wrote:

> I can specify the font for my score to use with #(define fonts … ), but 
> calling #(set-global-staff-size) undoes the font definition.
> 
> In the snippet below, Times New Roman will be used as the font for the whole 
> document.  But if line 6 is uncommented, the font reverts to the default of 
> New Century Schoolbook.  (These fonts are easily distinguished by the letter 
> Q—hence the title.)
> 
> Any suggestion on how I can both set the font to TNR and set the staff size 
> (in that order)?
> 
> ===
> \version "2.19"
> 
> \paper {
>#(define fonts (make-pango-font-tree "Times New Roman" "" "" 1))
> }
> % #(set-global-staff-size 20)
> 
> \header {
>title = "QQQ"
> }
> 
> \relative c' {
>  c c c c
> }
> ===

Using the new 2.19 syntax for setting fonts has the same problem.  I’m using 
2.19.82 on macOS 10.13.6.

\paper {
#(define fonts (set-global-fonts #:roman "Times New Roman"))
}

David


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size *inside* \book {}

2018-10-25 Thread Davide Liessi
Il giorno gio 25 ott 2018 alle ore 20:18 Thomas Morley
 ha scritto:
> Davide wrote me a similiar mail, asking whether it's a bug in the
> docs. cc-ing him

I'm sorry, I meant to send my message to the list with you in cc, but
I hit the wrong button...

> "To set the staff size globally for all scores in a file (or all
> scores in a \book block, to be precise, because LilyPond wraps all
> toplevel scores in a book anyway), use set-global-staff-size at
> top-level".
> Probably one should add:
> If a file contains multiple books every books staff-size may be set by
> inserting set-global-staff-size right before the relevant book.

This clarifies the matter, indeed.

Best wishes.
Davide

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size *inside* \book {}

2018-10-25 Thread Thomas Morley
Am Do., 25. Okt. 2018 um 19:03 Uhr schrieb Pierre-Luc Gauthier
:
>
> Hi Thomas,
>
> > Yep, set-global-staff-size _must_ be set at top-level, outside of \book.
>
> That's good to know.
> The documentation got me going on using-it inside \book{}s.
> http://lilypond.org/doc/v2.19/Documentation/notation/setting-the-staff-size

Hi,

Davide wrote me a similiar mail, asking whether it's a bug in the
docs. cc-ing him

But I don't thinks so.

Let me quote:
"To set the staff size globally for all scores in a file (or in a
\book block, to be precise), use set-global-staff-size"

I rather think it's misleading.

It means:
"To set the staff size globally for all scores in a file (or all
scores in a \book block, to be precise, because LilyPond wraps all
toplevel scores in a book anyway), use set-global-staff-size at
top-level".
Probably one should add:
If a file contains multiple books every books staff-size may be set by
inserting set-global-staff-size right before the relevant book.

Or similar, I'm not a native speaker ...



Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size *inside* \book {}

2018-10-25 Thread Pierre-Luc Gauthier
Hi Thomas,

> Yep, set-global-staff-size _must_ be set at top-level, outside of \book.

That's good to know.
The documentation got me going on using-it inside \book{}s.
http://lilypond.org/doc/v2.19/Documentation/notation/setting-the-staff-size

> #(set-global-staff-size x)
> \book {}
> #(set-global-staff-size 14)
> \book { { \tempo 4=120 c'4 } }
> works here.

Yes, of course.

Thanks Thomas,
Have a good day
-- 
Pierre-Luc Gauthier

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size *inside* \book {}

2018-10-25 Thread Thomas Morley
Hi Pierre-Luc,

Am Mi., 24. Okt. 2018 um 16:01 Uhr schrieb Pierre-Luc Gauthier
:
>
> Hi there,
>
> Is this a bug?
>
> \version "2.21.0"
> %#(set-global-staff-size 4)
> \book {
>   #(set-global-staff-size 4)
>   \score {
> {\tempo 4=120 c4}
> \layout {}
>   }
> }
>
> I'm trying to set the global staff size of a single book and I got
> this strange result.
>
> Am I using it wrong?

Yep, set-global-staff-size _must_ be set at top-level, outside of \book.

> It does work as expected if you use set-global-staff-size alone in
> file itself but then, all the \book{}s are concerned.

Though:

#(set-global-staff-size 4)
\book { { \tempo 4=120 c'4 } }

#(set-global-staff-size 14)
\book { { \tempo 4=120 c'4 } }

#(set-global-staff-size 24)
\book { { \tempo 4=120 c'4 } }

works here.

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size

2016-09-25 Thread Menu Jacques
Hello Simon,

Thanks!

JM

> Le 25 sept. 2016 à 18:52, Simon Albrecht  a écrit :
> 
> On 25.09.2016 18:38, Menu Jacques wrote:
>> Hello folks,
>> 
>> The NR as of 2.19 is not restrictive regarding where a command such as:
>> 
>>  #(set-global-staff-size 26)
>> 
>> can be placed, but I remember someone on this list saying that it should be 
>> before the \paper block.
>> 
>> What is the exact recommendation/limitation?
> 
> The point is that set-global-staff-size resets any font settings previously 
> made in a \paper block. So actually it would be wise to document that a file 
> should always start with
> 
> \version ""
> #(set-global-staff-size)
> 
> or maybe
> 
> \version ""
> \language ""
> \header {}
> #(set-global-staff-size)
> 
> 
> Best, Simon
> 
> ___
> 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: set-global-staff-size

2016-09-25 Thread Simon Albrecht

On 25.09.2016 18:38, Menu Jacques wrote:

Hello folks,

The NR as of 2.19 is not restrictive regarding where a command such as:

#(set-global-staff-size 26)

can be placed, but I remember someone on this list saying that it should be 
before the \paper block.

What is the exact recommendation/limitation?


The point is that set-global-staff-size resets any font settings 
previously made in a \paper block. So actually it would be wise to 
document that a file should always start with


\version ""
#(set-global-staff-size)

or maybe

\version ""
\language ""
\header {}
#(set-global-staff-size)


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: #(set-global-staff-size 40)

2015-01-31 Thread bobr...@centrum.is
If you do something like:

\header {
tagline = \markup { \fontsize #-2 YourTagLine }
}

...it should probably work.

-David

- Original Message -
From: Stephen MacNeil classicalja...@gmail.com
To: lilypond-user@gnu.org
Sent: Saturday, January 31, 2015 5:22:19 PM
Subject: #(set-global-staff-size 40)

I would like to increase the staff however when i change 

#(set-global-staff-size 40) 

my tagline gets bigger. How can i overcome this? 




thanks 

___
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: #(set-global-staff-size 40)

2015-01-31 Thread Pierre Perol-Schneider
Try :


tagline = \markup\fontsize #-5 My Tagline


See also :



http://lilypond.org/doc/v2.18/Documentation/notation/setting-the-staff-size

\score{
  …
  \layout{
#(layout-set-staff-size 15)
  }
}

and for v2.19 :
http://lilypond.org/doc/v2.19/Documentation/notation/setting-the-staff-size


\magnifyStaff


Cheers,

Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size from inside Scheme function

2014-05-16 Thread Jan-Peter Voigt
Hi Urs,

this constellation compiles, if you wrap the scheme-call to
set-global-staff-size into a void-function. But if it is called, when
the book is already opened, the staff-size is already initialized and
can't be changed (for this book).
It probably works, if you place #(set-global-staff-size ..) before \book
{...} .

HTH, Jan-Peter

Am 16.05.2014 10:42, schrieb Urs Liska:
 Hi,
 
 I have been there already, but I can't find the corresponding email, and
 I don't recall if they actually contained a solution or only an
 explanation of the cause of the issue. So I have to start nes.
 
 For the creation of music examples in a book I have written a function
 \compileScore which does a number of things like munging file names,
 cleaning up temporary files and particularly compiling different
 versions of the file.
 
 One particular issue is that it includes appropriate style sheets
 according to the example type (which is expressed as a variable).
 The problem is that #(set-global-staff-size) doesn't work in that
 constellation, IISC because it's not a toplevel expression anymore.
 
 The attached files show a very stripped-down version of the stuff and
 will probably not look very useful.
 
 But my question is: How can I set the global staff size from within the
 included file?
 
 Best
 Urs
 
 
 ___
 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: set-global-staff-size from inside Scheme function

2014-05-16 Thread Urs Liska

Am 16.05.2014 10:54, schrieb Jan-Peter Voigt:

Hi Urs,

this constellation compiles, if you wrap the scheme-call to
set-global-staff-size into a void-function. But if it is called, when
the book is already opened, the staff-size is already initialized and
can't be changed (for this book).
It probably works, if you place #(set-global-staff-size ..) before \book
{...} .


compileScore =
#(define-void-function (parser location score)(ly:score?)
   #{ \include example-styles.ily #}
   (let ((book
  #{
\book {
  % \include example-styles.ily
  \score { #score }
}
  #}))
 (ly:book-process
  book
  #{ \paper {} #}
  #{ \layout{} #}
  (ly:parser-output-name parser

works (i.e. doing the include first before the (let ) block).
But I still get a warning


example-styles.ily:3:1: warning: Ignoring non-music expression

#(set-global-staff-size 44)


I might accept this because the result is the accepted, but is there a 
way to avoid that warning?


Urs



HTH, Jan-Peter

Am 16.05.2014 10:42, schrieb Urs Liska:

Hi,

I have been there already, but I can't find the corresponding email, and
I don't recall if they actually contained a solution or only an
explanation of the cause of the issue. So I have to start nes.

For the creation of music examples in a book I have written a function
\compileScore which does a number of things like munging file names,
cleaning up temporary files and particularly compiling different
versions of the file.

One particular issue is that it includes appropriate style sheets
according to the example type (which is expressed as a variable).
The problem is that #(set-global-staff-size) doesn't work in that
constellation, IISC because it's not a toplevel expression anymore.

The attached files show a very stripped-down version of the stuff and
will probably not look very useful.

But my question is: How can I set the global staff size from within the
included file?

Best
Urs


___
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: set-global-staff-size from inside Scheme function

2014-05-16 Thread Phil Burfitt
- Original Message - 
From: Urs Liska u...@openlilylib.org

To: lilypond-user lilypond-user@gnu.org
Sent: Friday, May 16, 2014 9:42 AM
Subject: set-global-staff-size from inside Scheme function



Hi,

I have been there already, but I can't find the corresponding email, and 
I don't recall if they actually contained a solution or only an 
explanation of the cause of the issue. So I have to start nes.


For the creation of music examples in a book I have written a function 
\compileScore which does a number of things like munging file names, 
cleaning up temporary files and particularly compiling different 
versions of the file.


One particular issue is that it includes appropriate style sheets 
according to the example type (which is expressed as a variable).
The problem is that #(set-global-staff-size) doesn't work in that 
constellation, IISC because it's not a toplevel expression anymore.


The attached files show a very stripped-down version of the stuff and 
will probably not look very useful.


But my question is: How can I set the global staff size from within the 
included file?


Best
Urs


Have you tried #(layout-set-staff-size) ?

Phil.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size from inside Scheme function

2014-05-16 Thread Jan-Peter Voigt
Hi Urs,

the last statement the include returns is not music:
#(ly:set-option 'preview #t)
so the parser complains.
Those warnings can be avoided with void-functions, which wrap the statement.

(A bit in a hurry, so no example for noew ;) )

Cheers, Jan-Peter


Am 16.05.2014 12:05, schrieb Urs Liska:
 compileScore =
 #(define-void-function (parser location score)(ly:score?)
#{ \include example-styles.ily #}
(let ((book
   #{
 \book {
   % \include example-styles.ily
   \score { #score }
 }
   #}))
  (ly:book-process
   book
   #{ \paper {} #}
   #{ \layout{} #}
   (ly:parser-output-name parser
 
 works (i.e. doing the include first before the (let ) block).
 But I still get a warning
 
 
 example-styles.ily:3:1: warning: Ignoring non-music expression
 
 #(set-global-staff-size 44)
 
 
 I might accept this because the result is the accepted, but is there a
 way to avoid that warning?


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: #(set-global-staff-size ) and \bookOutputSuffix

2014-03-03 Thread Mario Moles
In data lun 3 mar 2014 23:57:40, hai scritto:


If you use two \book {} contexts, each can contain its own 
set-global-staff-size command.



*_\version 2.19.2_*
*_\language english_*
*_\header {_*
*_  title = Titolo_*
*_}_*

*_\paper {_*
*_  #(set-paper-size a4)_*
*_}_*

*_global = {_*
*_  \key c \major_*
*_  \time 4/4_*
*_  \tempo 4=100_*
*_}_*

*_violin = \relative c'' {_*
*_  \global_*
*_  % Qui segue la musica._*
*_  c1|_*
*_  c|c|c|c|c|c|c|c|c|c|_*
*_}_*

*_viola = \relative c' {_*
*_  \global_*
*_  % Qui segue la musica._*
*_  c1|_*
*_  c|c|c|c|c|c|c|c|c|c|_*
*_}_*

*_cello = \relative c {_*
*_  \global_*
*_  % Qui segue la musica._*
*_  c1|_*
*_  c|c|c|c|c|c|c|c|c|c|_*
*_}_*

*_contrabass = \relative c {_*
*_  \global_*
*_  % Qui segue la musica._*
*_  c1|_*
*_  c|c|c|c|c|c|c|c|c|c|_*
*_}_*

*_violinPart = \new Staff \with {_*
*_  instrumentName = Vl._*
*_  midiInstrument = violin_*
*_} \violin_*

*_violaPart = \new Staff \with {_*
*_  instrumentName = V.la_*
*_  midiInstrument = viola_*
*_} { \clef alto \viola }_*

*_celloPart = \new Staff \with {_*
*_  instrumentName = Vlc._*
*_  midiInstrument = cello_*
*_} { \clef bass \cello }_*

*_contrabassPart = \new Staff \with {_*
*_  instrumentName = Cb._*
*_  midiInstrument = contrabass_*
*_} { \clef bass \contrabass }_*

*_\book {_*
*_  #(set-global-staff-size 18)_*
*_\score {\new StaffGroup_*
*_  _*
*_\violinPart_*
*_\violaPart_*
*_\celloPart_*
*_\contrabassPart_*
*_  _*
*_  \layout {}_*
*_  \midi { }_*
*_}_*
*_}_*
*_\book {_*
*_#(set-global-staff-size 28)  _*
*_  \bookOutputSuffix Violino I_*
*_  \score {_*
*_\new StaffGroup_*
*__*
*_  \violinPart_*
*__*
*_\layout {}_*
*_\midi {_*
*_  \context {_*
*_\Score_*
*_tempoWholesPerMinute = #(ly:make-moment 66 4)_*
*_  }_*
*_}_*
*_\header {_*
*_  title = \markup \column {Titolo}_*
*_  instrument = \markup \column \normal-text {Violino I  }_*
*_}_*
*_  }_*
*_}_*

oiram/bin/selom
Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.
MIB-kernellinux-tester
http://mariomoles.altervista.org/[1]
Linux[2] 
MIB[3] Lilypond[4] Frescobaldi[5] Rosegarden[6] 


[1] http://mariomoles.altervista.org/
[2] https://www.kernel.org/
[3] http://mib.pianetalinux.org/blog/
[4] http://lilypond.org/
[5] http://www.frescobaldi.org/
[6] http://www.rosegardenmusic.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Set global staff size as command line option

2011-12-08 Thread -Eluze


Francisco Vila wrote:
 
 2011/12/7 Xavier Scheuer x.sche...@gmail.com:
 
 It is a way but the problem I find is that the file won't compile with
 that commandline option.
 
 Say your file is
 
 % this is example.ly
 #(use-modules (guile-user))
 #(set-global-staff-size size)
 \repeat unfold 20 { c'1 }
 
 %END
 
 you can call it with
 
   lilypond -e '(define-public size 40)' a.ly
 
 and the value of size will be honoured as global staff size.
 
i tried and all i get is:

GNU LilyPond 2.15.21
C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/scm/lily.scm:709:3: In procedure
scm_i_lreadparen in expression (eval-string (ly:command-line-code)):
C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/scm/lily.scm:709:3: #unknown
port:1:25: end of file

what's wrong?

Eluze
-- 
View this message in context: 
http://old.nabble.com/Set-global-staff-size-as-command-line-option-tp32931498p32933519.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Set global staff size as command line option

2011-12-08 Thread David Kastrup
-Eluze elu...@gmail.com writes:

 Francisco Vila wrote:
 
 2011/12/7 Xavier Scheuer x.sche...@gmail.com:
 
 It is a way but the problem I find is that the file won't compile with
 that commandline option.
 
 Say your file is
 
 % this is example.ly
 #(use-modules (guile-user))
 #(set-global-staff-size size)
 \repeat unfold 20 { c'1 }
 
 %END
 
 you can call it with
 
   lilypond -e '(define-public size 40)' a.ly
 
 and the value of size will be honoured as global staff size.
 
 i tried and all i get is:

 GNU LilyPond 2.15.21
 C:/Program Files
 (x86)/LilyPond/usr/share/lilypond/current/scm/lily.scm:709:3: In procedure
 scm_i_lreadparen in expression (eval-string (ly:command-line-code)):
 C:/Program Files
 (x86)/LilyPond/usr/share/lilypond/current/scm/lily.scm:709:3: #unknown
 port:1:25: end of file

 what's wrong?

Windows has a crappy command line.  Try using double quotes  instead of
the single quotes ' suggested above.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Set global staff size as command line option

2011-12-07 Thread Francisco Vila
2011/12/7 Xavier Scheuer x.sche...@gmail.com:
 Hi,

 Is it possible to set global staff size as command line option?
 Like it is possible to specify paper size with

  lilypond -dpaper-size=\letter\  myfile.ly

 I'd like a similar command line option for #(set-global-staff-size 14) .
 Is there a way to achieve this with current version?


It is a way but the problem I find is that the file won't compile with
that commandline option.

Say your file is

% this is example.ly
#(use-modules (guile-user))
#(set-global-staff-size size)
\repeat unfold 20 { c'1 }

%END

you can call it with

  lilypond -e '(define-public size 40)' a.ly

and the value of size will be honoured as global staff size.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Set global staff size as command line option

2011-12-07 Thread Francisco Vila
2011/12/7 Francisco Vila paconet@gmail.com:
 It is a way but the problem I find is that the file won't compile with
 that commandline option.

Oh sorry, I meant the file won't compile _without_ that commandline option.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Set global staff size as command line option

2011-12-07 Thread Francisco Vila
2011/12/7 Francisco Vila paconet@gmail.com:
  lilypond -e '(define-public size 40)' a.ly

And of course there were more typos. It is not a.ly but example.ly in
my example above.

Sorry!

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size increments

2010-10-07 Thread Dmytro O. Redchuk
On Wed 06 Oct 2010, 17:29 Christopher Meredith wrote:
 I noticed that the values for set-global-staff-size are usually given
 in non-whole increments. If I were to use one in between these
 suggested increments, will it cause scaling irregularities? In other
 words, if 14.14 is too small and 15.87 is too large, can I use
 something like 15, or do I have to worry about imprecise proportions?
Default is 20, afaik?

NR 4.2.1 (for 2.13), Setting the staff size also mentions 14 and 15 -- so
why to worry?-)

-- 
  Dmytro O. Redchuk
  Bug Squad

  Be careful! These are some commonly used abbreviations:
   • LM -- Learning Manual
   • NR -- Notation Reference
   • IR -- Internal Reference

  Look at LilyPond’s documentation to find more.

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size... puzzle

2008-08-21 Thread Ralph Palmer
On 8/20/08, Tom Cloyd [EMAIL PROTECTED] wrote:
 \paper {
 #(set-default-paper-size letter 'portrait)
 ragged-last-bottom = ##t % turns off vertical justify
 left-margin = 0.6\in
 line-width = 7\in % works better than specifying R-margin
 bottom-margin = .7\in
 top-margin = 0.15\in
 }

Tom -

Have you tried setting the global staff size to 18 and using
ragged-last-bottom = #f
? If you can get everything on one page using staff size = 18, then
ragged-last-bottom = #f should spread the staves out.

Peace,

Ralph
-- 
Ralph Palmer
Greenfield, MA
USA
[EMAIL PROTECTED]


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size... puzzle

2008-08-20 Thread James E. Bailey

It isn't simple.
Chapter 4, Spacing Issues is (for me) a difficult read, and somewhat  
complex. Also, I read the email thread from a couple of months ago  
about this every couple of weeks, I don't understand it all fully, but  
I understand a little more each time I read it.

http://lists.gnu.org/archive/html/lilypond-user/2008-06/msg00345.html

Am 20.08.2008 um 12:56 schrieb Tom Cloyd:


I suspect this is simple - but not for me.

I've tried hard to solve this one myself, but I'm not coming up with  
ANYTHING helpful anywhere.


If I have

#(set-global-staff-size 20)

in my code, I get  6 staffs spread across 1.5 pages (#6 is all  
that's on page 2). If I set the size to 18, I get the crowded onto  
one page with 2 at the bottom.


I cannot figure out what's happening, or how to get better control  
of spacing between staffs.



Also, the title of the piece is too high on the page. I can set a  
top-margin, but it's ignored. Can't find documentation on how to  
control this either.


Here's the top part of my code...

\version 2.10.0

#(set-global-staff-size 20) % 20 this is said to be standard for  
most scores

\paper {
  #(set-default-paper-size letter 'portrait)  ragged-last- 
bottom = ##t % turns off vertical justify

  left-margin = 0.6\in
  line-width = 7\in % works better than specifying R-margin
  bottom-margin = .7\in
  top-margin = 0.15\in   }

\layout {
  indent = 0.0\cm % remove indent on first staff
}

\header {
  title = Prelude #2
  subtitle = A legato etude for classical guitar (2008.08.13)
  composer = Tom  
Cloydtagline =  
\markup { \small score set by Tom Cloyd - with Lilipond - [EMAIL PROTECTED] 
} % this is the copyright line   }


Thanks in advance for any suggestions anyone has!


Tom

--

~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
 [EMAIL PROTECTED]  (email)
 TomCloyd.com  (website)  sleightmind.wordpress.com  (mental  
health weblog)

~



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size... puzzle

2008-08-20 Thread Tom Cloyd

Please ignore the top-margin problem. I wasn't reading my own code
correctly. Problem solved.

As for the staff spacing problem - if someone can just give me a clue
where to go in the documentation, that would likely suffice. Google's
doing nothing for me, and cruising the 2.11 docs contents list didn't
help either.

t.

Tom Cloyd wrote:

I suspect this is simple - but not for me.

I've tried hard to solve this one myself, but I'm not coming up with 
ANYTHING helpful anywhere.


If I have

#(set-global-staff-size 20)

in my code, I get  6 staffs spread across 1.5 pages (#6 is all that's 
on page 2). If I set the size to 18, I get the crowded onto one page 
with 2 at the bottom.


I cannot figure out what's happening, or how to get better control of 
spacing between staffs.



Also, the title of the piece is too high on the page. I can set a 
top-margin, but it's ignored. Can't find documentation on how to 
control this either.


Here's the top part of my code...

\version 2.10.0

#(set-global-staff-size 20) % 20 this is said to be standard for most 
scores 
\paper {
   #(set-default-paper-size letter 'portrait)  
ragged-last-bottom = ##t % turns off vertical justify

   left-margin = 0.6\in
   line-width = 7\in % works better than specifying R-margin
   bottom-margin = .7\in
   top-margin = 0.15\in   }

\layout {
   indent = 0.0\cm % remove indent on first staff
}

\header {
   title = Prelude #2
   subtitle = A legato etude for classical guitar (2008.08.13)
   composer = Tom 
Cloydtagline = 
\markup { \small score set by Tom Cloyd - with Lilipond - 
[EMAIL PROTECTED]} % this is the copyright line   }


Thanks in advance for any suggestions anyone has!


Tom




--

~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
 [EMAIL PROTECTED]  (email)
 TomCloyd.com  (website)
 sleightmind.wordpress.com  (mental health weblog)
~




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size... puzzle

2008-08-20 Thread Gilles Sadowski
Hi.

 If I have
 
 #(set-global-staff-size 20)
 
 in my code, I get  6 staffs spread across 1.5 pages (#6 is all that's on 
 page 2). If I set the size to 18, I get the crowded onto one page with 
 2 at the bottom.
 
 I cannot figure out what's happening, or how to get better control of 
 spacing between staffs.

The solution might be not to have more control but less...  See:
  http://lists.gnu.org/archive/html/lilypond-user/2008-08/msg00452.html


Best,
Gilles


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size... puzzle

2008-08-20 Thread Dmytro O. Redchuk
2008/8/20 Tom Cloyd [EMAIL PROTECTED]:
 As for the staff spacing problem - if someone can just give me a clue
 where to go in the documentation, that would likely suffice. Google's
 doing nothing for me, and cruising the 2.11 docs contents list didn't
 help either.
Usually I try adjust between-staves-space with:
\override VerticalAxisGroup #'minimum-Y-extent = #'(... . ...)

For example, set it to (-5 . 5) for Staff context.

 t.

-- 
Dmytro O. Redchuk


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-08-04 Thread Neil Puttock
Hi Valentin,

On 7/27/07, Valentin Villenave [EMAIL PROTECTED] wrote:

 2007/7/27, Valentin Villenave [EMAIL PROTECTED]:

  (maybe it was a .27 bug, or something in my previous installation was
  corrupted...).

 It's definitely a .27 bug; I was able to reproduce it with another
 installation of .27, on a different OS.

 V.V.


I tested your file under 2.10.25, and like others, it worked fine. But now
I'm getting a similar problem to yours under 2.10.25 with an orchestral
score I'm typesetting.

Output fails on a global-staff-size of 15 and 17 upwards unless I remove
\RemoveEmptyStaffContext and turn off #'remove-first, or comment out the 1st
 2nd violins.

Another quirk I've noticed is that \override VerticalAxisGroup
#'minimum-Y-extent has no effect.

I've tested the file under 2.11.27/28 and it works OK (with harps removed
due to the hara-kiri error).

Regards,
Neil
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-07-27 Thread Valentin Villenave
2007/7/27, Ledocq-Boccart [EMAIL PROTECTED]:

 I have just done a cut and try test as I  (i.e. newbie)  cannot do
 otherwise as yet.

Thank you for testing. Everything works fine since I installed 2.11.28
(maybe it was a .27 bug, or something in my previous installation was
corrupted...).

Regards,
Valentin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-07-27 Thread Ledocq-Boccart

Hello Valentin,

Valentin Villenave a écrit :

...However, I've just discovered that when I specify a different
global-staff-size, the compilation goes fine, no error messages... but
the .pdf (as well as the .ps) output is just one empty page!



I have just done a cut and try test as I  (i.e. newbie)  cannot do 
otherwise as yet.
I ran that score on Lilypond 2.10.23 and both 13 and 14 
global-staff-size do work.
Except that there left some blank half or quarter of pages (probably 
because of the size of staff systems which force printing to a new page) 
-(total respectively 8 or 9 pages);


(I have modified the size from 12 to 20 without problem)


Regards
Charlie


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-07-27 Thread Valentin Villenave
2007/7/27, Valentin Villenave [EMAIL PROTECTED]:

 (maybe it was a .27 bug, or something in my previous installation was
 corrupted...).

It's definitely a .27 bug; I was able to reproduce it with another
installation of .27, on a different OS.

V.V.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: set-global-staff-size causes weird printing

2007-07-26 Thread Valentin Villenave

2007/7/26, Dominic Neumann [EMAIL PROTECTED]:

strange ... on my 2.10.25 system i get output in both variants (13 or
14). there are some errors but this could also come from using a 2.10
version instead of 2.11.


OK, I made some tests

It works with 2.10.25
It works with 2.11.28
It *doesn't* work with 2.11.27 AFAICT

Well, maybe something was fixed somehow...

Thanks,
Valentin


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user