Re: Time signature in French baroque music

2007-01-04 Thread Francesco Spiga

Manuel wrote:


\override Staff.TimeSignature #'style = #'single-digit
\time 3/4

which I had to put in both parts separately. I don't know exactly  what 
you are trying to do, but maybe it will help.


Yes, that's exactly the command I was looking for!
The manual is not very clear about it, so I omitted #' before
"single-edit". Thanks a lot! :-)

My best wishes for a happy New Year!
Franek








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


Re: Time signature in French baroque music

2007-01-03 Thread Mats Bengtsson

If you replace the function by
#(define (compound-time-2m one two three four)
(markup #:override '(baseline-skip . 0) #:number
 (#:line ((#:column (one two)) #:vcenter "+" (#:column (three four))

it seems to work well for both staff sizes.

  /Mats

Gilles Sadowski wrote:

Hi.

  

Regarding Gilles' problems with compound time signatures, I would recommend
to use the example in Sect. "8.4.1 Polymetric notation" as a starting 
point.

Then, you could end up with something like:

\version "2.8.7"

#(define (compound-time-2 one two three four)
 (markup #:override '(baseline-skip . 2) #:number
  (#:line ((#:column (one two)) #:lower 1 "+" (#:column (three four))




Thanks, this is much simpler now.
But if you compile the attached sample file, you'll notice that there is
still a problem: In the sized-down staff, there is a gap between numerator
and denominator of the time signature fraction.

How to get rid of it?

Best,
Gilles
  



\version "2.8.7"

#(define (compound-time-2m one two three four)
 (markup #:override '(baseline-skip . 2) #:number
  (#:line ((#:column (one two)) #:lower 1 "+" (#:column (three four))

staffOne = \context Staff = "1" {
  \time 3/4
  \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \override Staff.TimeSignature #'text = #(compound-time-2m "1" "2" "3" "4")
  a4 b g | f4 g2 |
}

staffTwo = \context Staff = "2" {
  \time 3/4
  \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \override Staff.TimeSignature #'text = #(compound-time-2m "1" "2" "3" "4")
  a2. | g2. |
}


theMusic = \relative c'' {
  \context StaffGroup <<
\context Staff = "1" {
  \set Staff.fontSize = #-4
  \override Staff.StaffSymbol #'staff-space = #(magstep -4)
  \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 3)
}
\staffOne
\context Staff = "2" {
  \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 3)
}
\staffTwo
  >>
}

\score {
\theMusic
\layout {}
}
  



___
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: Time signature in French baroque music

2007-01-03 Thread Gilles Sadowski
Hi.

> 
> Regarding Gilles' problems with compound time signatures, I would recommend
> to use the example in Sect. "8.4.1 Polymetric notation" as a starting 
> point.
> Then, you could end up with something like:
> 
> \version "2.8.7"
> 
> #(define (compound-time-2 one two three four)
>  (markup #:override '(baseline-skip . 2) #:number
>   (#:line ((#:column (one two)) #:lower 1 "+" (#:column (three four))
>

Thanks, this is much simpler now.
But if you compile the attached sample file, you'll notice that there is
still a problem: In the sized-down staff, there is a gap between numerator
and denominator of the time signature fraction.

How to get rid of it?

Best,
Gilles
\version "2.8.7"

#(define (compound-time-2m one two three four)
 (markup #:override '(baseline-skip . 2) #:number
  (#:line ((#:column (one two)) #:lower 1 "+" (#:column (three four))

staffOne = \context Staff = "1" {
  \time 3/4
  \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \override Staff.TimeSignature #'text = #(compound-time-2m "1" "2" "3" "4")
  a4 b g | f4 g2 |
}

staffTwo = \context Staff = "2" {
  \time 3/4
  \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \override Staff.TimeSignature #'text = #(compound-time-2m "1" "2" "3" "4")
  a2. | g2. |
}


theMusic = \relative c'' {
  \context StaffGroup <<
\context Staff = "1" {
  \set Staff.fontSize = #-4
  \override Staff.StaffSymbol #'staff-space = #(magstep -4)
  \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 3)
}
\staffOne
\context Staff = "2" {
  \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 3)
}
\staffTwo
  >>
}

\score {
\theMusic
\layout {}
}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Time signature in French baroque music

2007-01-03 Thread Mats Bengtsson

Regarding the original question, the simple answer, which has already been
given, is to use
\override Staff.TimeSignature #'style = #'single-digit

Regarding Gilles' problems with compound time signatures, I would recommend
to use the example in Sect. "8.4.1 Polymetric notation" as a starting 
point.

Then, you could end up with something like:

\version "2.8.7"

#(define (compound-time-2 one two three four)
 (markup #:override '(baseline-skip . 2) #:number
  (#:line ((#:column (one two)) #:lower 1 "+" (#:column (three four))



theMusic = \relative c'' {
 \time 3/4
 \override Staff.TimeSignature #'stencil = #ly:text-interface::print
 \override Staff.TimeSignature #'text = #(compound-time-2  "1" "2" "3" 
"4" )

 a4 b g | f4 g2 |
}

\score {
   \theMusic
   \layout {}
}


  /Mats


For my own problem, can someone help me out?  [I wonder why there
is still no easy way to create those time signatures.]
This is what I tried:

%---BEGIN---
#(define (compound-time-2 grob one two three four)
  (let* ((layout (ly:grob-layout grob))
 (text (interpret-markup
layout
(ly:grob-alist-chain grob (ly:output-def-lookup layout 
'text-font-defaults))
(markup
 #:line
 (#:column (#:number one #:number two)
  #:hspace -1 #:lower 0.5 "+"
  #:column (#:number three #:number four))
   text))
%---END---

Thanks and best regards (and Happy New Year),
Gilles
  




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


Re: Time signature in French baroque music

2006-12-31 Thread Mats Bengtsson

Quoting Manuel <[EMAIL PROTECTED]>:


Franek,

I recently and finally managed to solve the problem for an  
Allemaigne, changig the time signature of the "Recoupe" from 3/4 to a 
 single "3". I include the file here, you can see the special command:


\override Staff.TimeSignature #'style = #'single-digit
\time 3/4

which I had to put in both parts separately. I don't know exactly  
what you are trying to do, but maybe it will help.


If you only want to do it once, you can do

\override Score.TimeSignature #'style = #'single-digit

so the setting applies to the full score instead of only the
current Staff context. Even better is probably to redefine the default 
definition of Staff context:

\score{
 ...  % The actual music comes here
 \layout{
   \context {
 \Staff
 \override TimeSignature #'style = #'single-digit
   }
 }
}

  /Mats



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


Re: Time signature in French baroque music

2006-12-29 Thread Manuel

Franek,

I recently and finally managed to solve the problem for an  
Allemaigne, changig the time signature of the "Recoupe" from 3/4 to a  
single "3". I include the file here, you can see the special command:


\override Staff.TimeSignature #'style = #'single-digit
\time 3/4

which I had to put in both parts separately. I don't know exactly  
what you are trying to do, but maybe it will help.



Manuel






\version "2.10.0"

\new ChoirStaff

\relative

<<

\new Staff

{ \clef treble

c'8b c d c4 d e2 e4 g f2 e d c d8 c d e f4 d e2 e \break

\bar ":|:"

e8 d e f e4 f g2 f4 e d8 c d e f4 d e2 e \break

\bar ":|:"

e4. f8 e d c b a2 g c4 d e c d2 d4 c b8 c d c b a c b c2 c \break

\bar ":|:"


\override Staff.TimeSignature #'style = #'single-digit
\time 3/4

c4 c d e2 e4 f f e d2 c4 d4. e8 f d e2 e4 \break

\bar ":|:"

e4. d8e f g2 g4 g f e d2 c4 d4. e8 f d e2 e4 \break

\bar ":|:"

e2 e4 e4. d8 c b a2 g4 c4. d8 e c d2 c4 b8 a b c d b c2 c4

\bar ":|"

}

\new Staff

\relative

{ \clef bass

c,2 a4 d c2 c4 g bes2 c g a g d'4 d c2 c

c c4 d c g d' c g2 d'4 d c2 c

c c4 c f,2 c'4. b8 a4 d c a bes2 g4 a g f g2 c c

\override Staff.TimeSignature #'style = #'single-digit
\time 3/4


c4 a d c2 c4 bes bes c g2 a4 g d' d c2 c4

c2 c4 c4. b8 c d e4 d c d2 a4 bes d2 c c4

c2 c4 c2 c4 f,2 c'4 a4. b8 c4 d bes c g2 g4 c2 c4

}
>>


\header {
title = " Allemaigne "
composer = " "
arranger = " "
}
















Am 29/12/2006 um 12:21 schrieb Francesco Spiga:


Hi everyone!
I'm editing an early-18th-century French composition.
As in French baroque music 3/4 time is written just by a great "3",  
I'd like to know if it exist in LilyPond a command to this sign.


Thank you... :-)
Franek



___
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: Time signature in French baroque music

2006-12-29 Thread Gilles Sadowski
Hi.

> I'm editing an early-18th-century French composition.
> As in French baroque music 3/4 time is written just by a great "3", I'd 
> like to know if it exist in LilyPond a command to this sign.
>

Some time ago, I had asked how to define a compound time signature.  I got
some hints but couldn't quite obtain the right result.
For your question, the following snippet might be a start but you'll see
that something is missing from the incantation.

%---BEGIN--
\version "2.8.7"

#(define (single-number grob one)
  (let* ((layout (ly:grob-layout grob))
 (text (interpret-markup
layout
(ly:grob-alist-chain grob (ly:output-def-lookup layout 
'text-font-defaults))
(markup (#:number one)
   text))

theMusic = \relative c'' {
  \time 3/4
  \override Staff.TimeSignature #'stencil =
  #(lambda (grob) (single-number grob "3"))
  a4 b g | f4 g2 |
}

\score {
\theMusic
\layout {}
}
%---END---

For my own problem, can someone help me out?  [I wonder why there
is still no easy way to create those time signatures.]
This is what I tried:

%---BEGIN---
#(define (compound-time-2 grob one two three four)
  (let* ((layout (ly:grob-layout grob))
 (text (interpret-markup
layout
(ly:grob-alist-chain grob (ly:output-def-lookup layout 
'text-font-defaults))
(markup
 #:line
 (#:column (#:number one #:number two)
  #:hspace -1 #:lower 0.5 "+"
  #:column (#:number three #:number four))
   text))
%---END---

Thanks and best regards (and Happy New Year),
Gilles


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


Time signature in French baroque music

2006-12-29 Thread Francesco Spiga

Hi everyone!
I'm editing an early-18th-century French composition.
As in French baroque music 3/4 time is written just by a great "3", I'd 
like to know if it exist in LilyPond a command to this sign.


Thank you... :-)
Franek



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