Re: stretchable systems

2005-08-25 Thread Graham Percival


On 25-Aug-05, at 8:12 PM, [EMAIL PROTECTED] wrote:


to get this to apply to all the voices in a staff.  From this, I
conclude that you could probably (?) say

   \set Score.minimumVerticalExtent = #'(-7  .  7)

to get it to apply to all the staves in a Score.  There's a piece I'm


The best way to do this is like this:

\layout { \context { \Score
  minimumVerticalExtent = #'(-7 . 7)
}}


Nicolas is trying to do something a bit more difficult; he wants to
have this set automatically, which is very tricky to program.

Cheers,
- Graham



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


Re: stretchable systems

2005-08-25 Thread stk
Section 10.1.6 "Vertical Spacing" of the user manual says that
the default padding of every staff is specified by

   \set Staff.minimumVerticalExtent = #'(-4  .  4)

so you could force the staves further apart by doing that  \set
for each staff (but using a bigger value than 4, like #'(-7  .  7)

And section 9.1.2 "Changing Context Properties on the Fly" has an example
that says that
   \set autoBeaming = ##f
is equivalent to
   \set Voice.autoBeaming = ##f
because autoBeaming is a Voice property, but that one *could* say
   \set Staff.autoBeaming = ##f
to get this to apply to all the voices in a staff.  From this, I
conclude that you could probably (?) say

   \set Score.minimumVerticalExtent = #'(-7  .  7)

to get it to apply to all the staves in a Score.  There's a piece I'm
going to have to apply this to in some form, but I'm still working on the
actual music and haven't gotten down to the layout problems yet.  If I'm
wrong about the \set Score.-- conjecture for a Staff property,
I'm sure someone will post a corrective message :)

-- Tom



Nicolas Sceaux wrote:

Hi,

Considering a piece with N-staff systems, with no room on a page for 3
systems, only for two, but with lot of space left, I can't find if it is
possible to automatically enlarge (I hope that this word won't make this
message marked as spam) the space between staves in a system, up to a
certain distance, so that there should be less space between the two
systems.

Before:
- page -
/==
|==
\==





/==
|==
\==
- page -

After:
- page -
/==
|
|==
|
\==

/==
|
|==
|
\==
- page -

If this does not exist yet, but is sponsorable, I'm interested.

nicolas

PS: is there a problem with the mailing list search page? Searching on
"staff" gives 0 results:
http://lists.gnu.org/archive/cgi-bin
  /namazu.cgi?query=staff&idxname=lilypond-user
  &max=10&result=normal&sort=score



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


Re: epsfile include question

2005-08-25 Thread Henrik Frisk
[EMAIL PROTECTED] wrote:

> Henrik Frisk wrote:
> 
> > 1. Is it not possible to move the eps
> > graphic? I have tried \raise without success.
> 
> > . . . I have tried a number of commands
> > apart from \raise . . .
> 
> >   \markup { \translate #(cons 2 5) \epsfile #"eps/nss.eps" }
> 
> In the LilyPond 2.6.0 manual, section 8.1.7 says that \raise, \lower,
> and \translate cannot be used to displace entire scripts.  But then in
> section 11.2.3 (around the middle of that section), there is an
> explanation of a trick to get around that limitation:  writing
> 
>\markup { ""  \translate #'(2.0  .  5.0) "foo bar" }
> 
> would place the empty string ("") where Lily wants it, but then the
> string "foo bar" would be placed 2 units to the right of, and 5 units
> above, that empty string, so that in effect "foo bar" would wind up
> being placed where you wanted it.  On that basis, it would be worth
> trying
> 
>   \markup { ""  \translate #'(2.0  .  5.0) \epsfile #"eps/nss.eps" }
> 
> to see if that gives you the displacement you want.
> 
> -- Tom

Well, after some fiddling around with this, this is how it works in the score I 
am currently working on with LilyPond 2.7.7 on OSX.

\markup { ""  \translate #'(2.0  .  5.0) "foo bar" } => no effect
\markup { " "  \translate #'(2.0  .  5.0) "foo bar" } => displaced as intended

In both cases the single white space string can be replaced by \hspace #0.0 . 
Same goes for \raise 

This is what Mats pointed out in his reply, and I think that the example in 
11.2.3, that I used as reference, this should be changed. I assume the same is 
true if you define it as a scheme macro in which case this example from 11.2.3 
will not work as intended (haven't tried it...):

#(def-markup-command (character layout props name) (string?)
  "Print the character name in small caps, translated to the left and
  top.  Syntax: \\character #\"name\""
  (interpret-markup layout props
   (markup "" #:translate (cons -3 1) #:smallcaps name)))

Thank you all for the help.

/henrik


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


Re: Compound time signatures

2005-08-25 Thread Henrik Frisk
Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:

> cool!  I would like this to be added to the tips & tricks.  Just a
> minor stylistic comment, for
> 
> >   (define hmoveDivOne
> >   (define hmoveDivTwo
> >   (define hmoveLastCol
> 
> we usually use let* , ie
> 
>   (let*
> ((var1 val1)
>  (var2 val2)
> )
> ..body.. )

Sure. I'm glad if it can be of any use.

/henrik


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


Re: stretchable systems

2005-08-25 Thread Nicolas Sceaux

"Kris Shaffer" <[EMAIL PROTECTED]> writes:

>On Thu, 25 Aug 2005 05:42:25 -0400, Nicolas Sceaux
><[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> Considering a piece with N-staff systems, with no room on a page for 3
>> systems, only for two, but with lot of space left, I can't find if it is
>> possible to automatically enlarge 
   ^

> Yes, this is possible.  See section 10.1.6 and 10.1.7 of the manual
> for  instructions on using minimumVerticalExtent and VerticalAlignment
> #'forced-distance.

The solution that you suggest is way far from automatic :-)
Han-Wen answered to this on lilypond-devel.


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


Re: Compound time signatures

2005-08-25 Thread Han-Wen Nienhuys

Henrik Frisk wrote:

Here's an expanded version of the compound-time.ly example in the Tips and 
Tricks section. It allows for different combinations of divisions such as 3/16 
+ 3/8 (provided that smaller divisions than 16ths are not used) and adjusts the 
spacing accordingly. A second version of the macro allows for compound time 
signatures such as 3+5/8.

Here's an example and a PS:


cool!  I would like this to be added to the tips & tricks.  Just a minor 
stylistic comment, for



  (define hmoveDivOne
  (define hmoveDivTwo
  (define hmoveLastCol


we usually use let* , ie

 (let*
   ((var1 val1)
(var2 val2)
   )
   ..body.. )

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Compound time signatures

2005-08-25 Thread Henrik Frisk
Here's an expanded version of the compound-time.ly example in the Tips and 
Tricks section. It allows for different combinations of divisions such as 3/16 
+ 3/8 (provided that smaller divisions than 16ths are not used) and adjusts the 
spacing accordingly. A second version of the macro allows for compound time 
signatures such as 3+5/8.

Here's an example and a PS:

% BEGIN SNIPPET %

\version "2.7.7"

#(define (compound-time grob one two divone divtwo)
  (define hmoveDivOne
   (if (equal? divone "16")
0.6
0.0))
  (define hmoveDivTwo
   (if (equal? divtwo "16")
0.6
0.0))
  (define hmoveLastCol
   (if (equal? divtwo "16")
-0.6
-0.3))
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
  (word-space . 1.5)
  (font-family . number)))
   (markup
#:line ( #:column ((#:translate (cons hmoveDivOne 0) one) divone)
 #:lower 1 (#:translate (cons hmoveDivOne 0) "+") 
 (#:translate (cons hmoveLastCol 0) #:column ((#:translate (cons 
hmoveDivTwo 0) two) divtwo))

#(define (compound-time-equal-div grob one two divone)
  (define hmoveDiv
   (if (equal? divone "16")
-0.8
-0.1))
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
  (word-space . 1.4)
  (font-family . number)))
   (markup
( #:line (one (#:column ( "+" (#:translate (cons hmoveDiv 0.) divone))) 
(#:translate (cons -0.2 0) two))


\score {
   \new Staff <<
 {
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob "3" "5" "16" "8"))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob "5" "8" "8" "16"))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time grob "5" "8" "16" "16"))
  s16*13 |
  \time 13/16
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time-equal-div grob "5" "8" "16"))
  s16*13 |
  \time 13/8
  \override Staff.TimeSignature #'print-function
  = #(lambda (grob) (compound-time-equal-div grob "5" "8" "8"))
  s8*13 |
  }
   >>
}

%% END SNIPPET %



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


Re: stretchable systems

2005-08-25 Thread Kris Shaffer
Yes, this is possible.  See section 10.1.6 and 10.1.7 of the manual for  
instructions on using minimumVerticalExtent and VerticalAlignment  
#'forced-distance.


You can also try making each staff a little smaller to fit the third  
system, if you prefer.


--
Kris Shaffer
graduate student in music theory, Yale University
www.shaffermusic.com


On Thu, 25 Aug 2005 05:42:25 -0400, Nicolas Sceaux  
<[EMAIL PROTECTED]> wrote:



Hi,

Considering a piece with N-staff systems, with no room on a page for 3
systems, only for two, but with lot of space left, I can't find if it is
possible to automatically enlarge (I hope that this word won't make this
message marked as spam) the space between staves in a system, up to a
certain distance, so that there should be less space between the two
systems.

Before:
- page -
/==
|==
\==





/==
|==
\==
- page -

After:
- page -
/==
|
|==
|
\==

/==
|
|==
|
\==
- page -

If this does not exist yet, but is sponsorable, I'm interested.

nicolas

PS: is there a problem with the mailing list search page? Searching on
"staff" gives 0 results:
http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=staff&idxname=lilypond-user&max=10&result=normal&sort=score


___
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: LilyPond dies on hairpin override

2005-08-25 Thread Hans de Rijck
Thanks Mats,

Now it works.

regards,

Hans.

- Original Message -
From: "Mats Bengtsson" <[EMAIL PROTECTED]>
To: "Hans de Rijck" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; 
Sent: Thursday, August 25, 2005 1:44 PM
Subject: Re: LilyPond dies on hairpin override


> Since the spacing is determined at the score level, you have to
> explicitly set the property on the Score level. Try
> \override Score.SpacingSpanner #'shortest-duration-space = #3.0
>
> /Mats
>
> Hans de Rijck wrote:
> > Tom,
> >
> > Thanks for the explanation, could you please check your list if:
> > \override SpacingSpanner #'shortest-duration-space = #3.0
> > is on it? It doesn't seem to do anything.
> >
> > thanks,
> >
> > Hans
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "Hans de Rijck" <[EMAIL PROTECTED]>
> > Cc: 
> > Sent: Thursday, August 25, 2005 7:05 AM
> > Subject: Re: LilyPond dies on hairpin override
> >
> >
> >
> >>Trevor Baca wrote:
> >>
> >>
> >>>Change ...
> >>
> >>>  \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )
> >>
> >>>to
> >>
> >>>  \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)
> >>
> >>So you committed a Scheme error.  Side remark:  a Scheme error
> >>always seems to result in a log file ending in a wistful
> >>
> >>  Parsing...
> >>
> >>with no further information, like a message scratched on a wall by the
> >>last human at the world's end.
> >>
> >>But at least you can be pretty sure that a Scheme error is the problem,
> >>so you can use a fine-tooth comb on your Scheme expressions looking for
> >>the error.  I've taken to keeping a separate file with a handwritten
list
> >>of all the Scheme expressions that *do* work, as a help in finding my
> >>coding faults.
> >>
> >>-- Tom
> >>
> >
> >
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > http://lists.gnu.org/mailman/listinfo/lilypond-user
>
> --
> =
> Mats Bengtsson
> Signal Processing
> Signals, Sensors and Systems
> Royal Institute of Technology
> SE-100 44  STOCKHOLM
> Sweden
> Phone: (+46) 8 790 8463
>  Fax:   (+46) 8 790 7260
> Email: [EMAIL PROTECTED]
> WWW: http://www.s3.kth.se/~mabe
> =



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


Re: LilyPond dies on hairpin override

2005-08-25 Thread Mats Bengtsson

Since the spacing is determined at the score level, you have to
explicitly set the property on the Score level. Try
\override Score.SpacingSpanner #'shortest-duration-space = #3.0

   /Mats

Hans de Rijck wrote:

Tom,

Thanks for the explanation, could you please check your list if:
\override SpacingSpanner #'shortest-duration-space = #3.0
is on it? It doesn't seem to do anything.

thanks,

Hans


- Original Message - 
From: <[EMAIL PROTECTED]>

To: "Hans de Rijck" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, August 25, 2005 7:05 AM
Subject: Re: LilyPond dies on hairpin override




Trevor Baca wrote:



Change ...



 \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )



to



 \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)


So you committed a Scheme error.  Side remark:  a Scheme error
always seems to result in a log file ending in a wistful

 Parsing...

with no further information, like a message scratched on a wall by the
last human at the world's end.

But at least you can be pretty sure that a Scheme error is the problem,
so you can use a fine-tooth comb on your Scheme expressions looking for
the error.  I've taken to keeping a separate file with a handwritten list
of all the Scheme expressions that *do* work, as a help in finding my
coding faults.

-- Tom





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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


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


Re: LilyPond dies on hairpin override

2005-08-25 Thread Hans de Rijck
Tom,

Thanks for the explanation, could you please check your list if:
\override SpacingSpanner #'shortest-duration-space = #3.0
is on it? It doesn't seem to do anything.

thanks,

Hans


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Hans de Rijck" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, August 25, 2005 7:05 AM
Subject: Re: LilyPond dies on hairpin override


> 
> Trevor Baca wrote:
> 
> > Change ...
> 
> >   \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )
> 
> > to
> 
> >   \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)
> 
> So you committed a Scheme error.  Side remark:  a Scheme error
> always seems to result in a log file ending in a wistful
> 
>   Parsing...
> 
> with no further information, like a message scratched on a wall by the
> last human at the world's end.
> 
> But at least you can be pretty sure that a Scheme error is the problem,
> so you can use a fine-tooth comb on your Scheme expressions looking for
> the error.  I've taken to keeping a separate file with a handwritten list
> of all the Scheme expressions that *do* work, as a help in finding my
> coding faults.
> 
> -- Tom
> 


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


Re: epsfile include question

2005-08-25 Thread Han-Wen Nienhuys

Graham Percival wrote:

Is \hspace #0 a stable construct?  (if not, could we have a \null markup
command that _is_ stable, and does the same thing as \hspace #0 ?)


Yes, I think that a \null markup would be a sensible idea. I've added it 
to CVS.


--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: LilyPond dies on hairpin override

2005-08-25 Thread Han-Wen Nienhuys

[EMAIL PROTECTED] wrote:


So you committed a Scheme error.  Side remark:  a Scheme error
always seems to result in a log file ending in a wistful

  Parsing...

with no further information, like a message scratched on a wall by the
last human at the world's end.

But at least you can be pretty sure that a Scheme error is the problem,
so you can use a fine-tooth comb on your Scheme expressions looking for
the error.  I've taken to keeping a separate file with a handwritten list
of all the Scheme expressions that *do* work, as a help in finding my
coding faults.


I guess we have to do a scm_set_current_error_port() for the windows 
release, to redirect GUILE error messages to the logfile too.


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


stretchable systems

2005-08-25 Thread Nicolas Sceaux
Hi,

Considering a piece with N-staff systems, with no room on a page for 3
systems, only for two, but with lot of space left, I can't find if it is
possible to automatically enlarge (I hope that this word won't make this
message marked as spam) the space between staves in a system, up to a
certain distance, so that there should be less space between the two
systems.

Before:
- page -
/==
|==
\==





/==
|==
\==
- page -

After:
- page -
/==
|
|==
|
\==

/==
|
|==
|
\==
- page -

If this does not exist yet, but is sponsorable, I'm interested.

nicolas

PS: is there a problem with the mailing list search page? Searching on
"staff" gives 0 results:
http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=staff&idxname=lilypond-user&max=10&result=normal&sort=score


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


Re: LilyPond dies on hairpin override

2005-08-25 Thread Erik Sandberg
On Wednesday 24 August 2005 13.47, Hans de Rijck wrote:
> Hello.
>
> When I use a \override Voice.Hairpin #'extra-offset LilyPond dies in
> compilation. No errors or warnings. Log says:
>
> # -*-compilation-*-
> Changing working directory to `G:/MusicCvt'
> Processing `G:/MusicCvt/test.ly'
> Parsing...
>
>
> thats all.
>
> Using Win2k, version 2.6.3. Example file is attached.

That's strange, I get (Ubuntu Linux):
Parsing...
error: Incorrect lilypond version: 2.6.3 (2.3.22, 2.6.0)
error: Consider updating the input with the convert-ly script
foo.ly:27:54: error: GUILE signaled an error for the expression beginning here
\override Voice.Hairpin #'extra-offset = #
  ( 0 . -1.8 )Wrong type 
to apply: (0 . -1.8)

foo.ly:27:56: error: syntax error, unexpected DIGIT
\override Voice.Hairpin #'extra-offset = #(
0 . -1.8 )
etc.

-- 
Erik


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