Re: Changing the text of a TimeSignature

2020-06-05 Thread Paolo Prete
On Fri, Jun 5, 2020 at 4:07 PM David Kastrup  wrote:

> Paolo Prete  writes:
>
> > Hello,
> >
> > Is there a way to change displayed text in the TimeSignature's fraction,
> > without changing the effective value?
> >
> > for example, if I have
> >
> > { \time 3/4 c' c' c' }
> >
> > I would like to display "Foo / Bar" instead of "3 / 4", while preserving
> > the inner 3/4 structure.
> >
> > Thanks!
>
> Something like
>
>
> Note that for \time to take tweaks, its containing Staff context needs
> to exist before \time is called, so this will not work without the \new
> Staff or anything else before \time that would cause a Staff to exist.
>
> --
> David Kastrup
>


Just tested, thank you very much!


Re: Changing the text of a TimeSignature

2020-06-05 Thread David Kastrup
Paolo Prete  writes:

> Hello,
>
> Is there a way to change displayed text in the TimeSignature's fraction,
> without changing the effective value?
>
> for example, if I have
>
> { \time 3/4 c' c' c' }
>
> I would like to display "Foo / Bar" instead of "3 / 4", while preserving
> the inner 3/4 structure.
>
> Thanks!

Something like

\new Staff
{ \tweak text \markup \vcenter \override #'(baseline-skip . 2)
  \bold \center-column { "Foo" "Bar" }
  \tweak stencil #ly:text-interface::print
  \time 3/4 c' c' c' }

Note that for \time to take tweaks, its containing Staff context needs
to exist before \time is called, so this will not work without the \new
Staff or anything else before \time that would cause a Staff to exist.

-- 
David Kastrup


Re: Changing the text of a TimeSignature

2020-06-05 Thread Valentin Villenave
On 6/5/20, Paolo Prete  wrote:
> Is there a way to change displayed text in the TimeSignature's fraction,
> without changing the effective value?

Yes, by overriding its 'stencil property:
http://lsr.di.unimi.it/LSR/Item?id=554

Good luck!

Cheers,
-- V.



Changing the text of a TimeSignature

2020-06-05 Thread Paolo Prete
Hello,

Is there a way to change displayed text in the TimeSignature's fraction,
without changing the effective value?

for example, if I have

{ \time 3/4 c' c' c' }

I would like to display "Foo / Bar" instead of "3 / 4", while preserving
the inner 3/4 structure.

Thanks!

Best,
P


RE: StaffSymbol stops short of end-of-\score TimeSignature or KeySignature

2020-03-22 Thread Daniel Rosen
> -Original Message-
> From: Noeck [mailto:noeck.marb...@gmx.de]
> Sent: Friday, March 20, 2020 6:33 PM
> To: lilypond-user@gnu.org
> Subject: Re: StaffSymbol stops short of end-of-\score TimeSignature or
> KeySignature
> 
> You could add an invisible spacer rest in both cases:
>   \time 4/4 s
> and
>   \key b \major s }
> 
> Would that be a solution for you or just in the example?

That does fix the issue with the StaffSymbol ending too far left. I've also 
been able to adjust the \tweak X-extent value manually to imitate the default 
spacing, so my issue is solved for now. However, for this solution to work 
X-extent value has to change depending on the width of the grob—so \tweak 
X-extent #'(0 . 2.1) works for 4/4, but not for 12/8, and certainly not for a 
five-sharp KeySignature. It'd be great if there were another way to do it that 
wasn't so kludgy.


Re: StaffSymbol stops short of end-of-\score TimeSignature or KeySignature

2020-03-20 Thread Noeck
> My question: how can I get the StaffSymbol to continue through the 4/4 
> marking at the end of the first \score (and through the key change at the end 
> of the second), as it does through the 2/4 at the end of the line above?

You could add an invisible spacer rest in both cases:
  \time 4/4 s
and
  \key b \major s }

Would that be a solution for you or just in the example?

Joram



StaffSymbol stops short of end-of-\score TimeSignature or KeySignature

2020-03-20 Thread Daniel Rosen
The following example shows two movements of a work which are to be performed 
without pause (imagine an "attacca" instruction at the end of the first \score 
block). My question: how can I get the StaffSymbol to continue through the 4/4 
marking at the end of the first \score (and through the key change at the end 
of the second), as it does through the 2/4 at the end of the line above?

This question is very similar to the one Harm responding to in this post from a 
couple of months ago: 
https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00541.html However, 
when his solution is applied here the results are still not quite right: when 
everything in my example is uncommented, the cautionary TimeSignatures are no 
longer vertically aligned because the 4/4 is pushed slightly to the left, 
there's a little too much space between the right edge of the TimeSignature and 
the end of the StaffSymbol, and the StaffSymbol itself stops just short of the 
right margin (I can't figure out a way to draw a vertical line that will show 
this latter point more clearly, but if you print it out and use a straight edge 
it'll be very apparent). 

%% Example begins
\version "2.20.0"

music = \repeat unfold 36 b'4

\book {
  \paper { print-all-headers = ##t }

  \score {
\header { title = "I" }
{
  %\override Staff.StaffSymbol.break-align-symbols =
  %#'(time-signature key-cancellation key-signature staff-bar 
break-alignment)
  \numericTimeSignature \time 3/4
  \music \time 2/4 \break
  \music \bar "||"
  %\tweak X-extent #'(0.25 . 2.4)
  \time 4/4
}
  }

  \score {
\header { title = "II" }
{ \numericTimeSignature \music \key b \major }
  }

}
%% Example ends

DR





Re: Reverting TimeSignature after box notation

2017-08-05 Thread Erik Natanael Gustafsson
Brilliant! Thanks!

Erik

lör 5 aug. 2017 kl 21:54 skrev Thomas Morley :

> 2017-08-05 21:09 GMT+02:00 Erik Natanael Gustafsson
> :
>
> > Here is the MWE I arraived at (I don't know how much of the structure
> code
> > is usually posted here so I'm posting the whole file with score
> definition
> > and all):
> [skipping the "whole file"]
>
> A minimal would be:
>
> \version "2.18.2"
>
> {
>   \time 4/4 r1
>   \set Staff.timeSignatureFraction = 4/4
>   \time 2/4 r2
>   \time 3/4 r2.
> }
>
> Two suggestions:
>
> {
>   \time 4/4 r1
>   \once \set Staff.timeSignatureFraction = 4/4
>   \time 2/4 r2
>   \time 3/4 r2.
> }
>
> {
>   \time 4/4 r1
>   \set Staff.timeSignatureFraction = 4/4
>   \time 2/4 r2
>   \unset Staff.timeSignatureFraction
>   \time 3/4 r2.
> }
>
> -Harm
>
-- 
Erik Natanael Gustafsson
---
► Composer, musician ◄
❂ Website: https://eriknatanael.com/
❂ SoundCloud: https://soundcloud.com/enatanael
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reverting TimeSignature after box notation

2017-08-05 Thread Thomas Morley
2017-08-05 21:09 GMT+02:00 Erik Natanael Gustafsson
:

> Here is the MWE I arraived at (I don't know how much of the structure code
> is usually posted here so I'm posting the whole file with score definition
> and all):
[skipping the "whole file"]

A minimal would be:

\version "2.18.2"

{
  \time 4/4 r1
  \set Staff.timeSignatureFraction = 4/4
  \time 2/4 r2
  \time 3/4 r2.
}

Two suggestions:

{
  \time 4/4 r1
  \once \set Staff.timeSignatureFraction = 4/4
  \time 2/4 r2
  \time 3/4 r2.
}

{
  \time 4/4 r1
  \set Staff.timeSignatureFraction = 4/4
  \time 2/4 r2
  \unset Staff.timeSignatureFraction
  \time 3/4 r2.
}

-Harm

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


Re: Reverting TimeSignature after box notation

2017-08-05 Thread Erik Natanael Gustafsson
Sorry for the confusion. Seems like the first reply I got also only went to
me and not to the list. This was written by Holland Hopson:

"Hi Erik,
Your example doesn’t compile for me. Maybe you can make a minimal working
example?

I’ve had good results using frameEngraver-bars-and-boxes.ily for box
notation.
Best,
Holland"

So I made a minimal example and found the error in the process ("\set
Staff.timeSignatureFraction = 4/4" disables all time signatures after that
point, it had nothing to do with the markup). But what about if I only want
to print an "alternative" time signature (fraction) for one bar and then go
back to the normal ones?

Holland also attached the frameEngraver-bars-and-boxes.ily and I asked for
how to use it and he answered that so that's solved.

Here is the MWE I arraived at (I don't know how much of the structure code
is usually posted here so I'm posting the whole file with score definition
and all):

\version "2.18.2"

\header {
  title = "Rymdmusik"
  composer = "Erik Natanael Gustafsson"
  poet = "Jane Barlow"
  tagline = ##f
}

global = {
  \key c \major
  \time 4/4
  \tempo "Svävande" 4 = 70
}

altoVoice = \relative c' {
  \global
  \dynamicUp
  % Music follows here.
  s1 |
  a'2 d8 c a g | \time 5/4 d4. g8 e g a,2 \bar "||"|
  \time 4/4 a'2 d8 c a g | \time 5/4 d4. g8 a g d'2 \bar "||" |
  \time 5/8 dis8 cis b cis a \bar"|"| \time 4/4 f g es des a'2 |

  % Mellanbit

  \time #'(3 2 2) 7/8  r4. r2 | \time 3/4 r2. \bar "||"|

  \time #'(2 2 4 1) 9/8  r2 r2 r8 | \time #'(3 4) 7/8 r4. r2 \bar "||"|
  \time 4/4 r1 | \time 3/4 r2. | cis2.~\< | cis4\> r2\! |
}

left = \relative c' {
  \global
  % Music follows here.
  a8 e' d
  a'8 g d' c g' \bar"" |
  %\override Staff.TimeSignature.stencil = ##f
  s1 | s1 s4 | s1 | s1 s4 | %\revert Staff.TimeSignature.stencil
  \clef "treble"
  %\set Staff.timeSignatureFraction = 4/4 % If I add this in no more
time signature will be shown
  \scaleDurations 5/8{
  g,8 cis b
  f' dis a' g cis |}

  s1 |

  \scaleDurations 7/6 {
f,8 bes as  des  ces  e }

  %\set Staff.timeSignatureFraction = 4/4
  \scaleDurations 6/8 {
gis8 fis e'4^"x3"
ais,8 gis e'4^"x3"
  }
  \change Staff = "left"
  s1 s8 | s2 s4. |
  r2. \tuplet 3/2 { fis,,8 gis a } |
  eis''2 \tuplet 3/2 { fis,,8 gis a } |
  eis''8 cis4. \ottava #1 \tuplet 3/2 {fis8 eis cis } |

}

altoVoicePart = \new Staff \with {
  instrumentName = "Alto"
  midiInstrument = "choir aahs"
} { \altoVoice }

pianoPart = \new PianoStaff \with {
  \override StaffGrouper.staffgroup-staff-spacing.padding = #20
  instrumentName = "Piano"

} <<
  \new Staff = "left" \with {
midiInstrument = "acoustic grand"
  } { \clef bass \left }
>>

\score {
  <<
\altoVoicePart

\pianoPart
  >>
  \layout {
\context {
  \Score
  \override StaffGrouper.staff-staff-spacing.padding = #1
}
\context {
  \Staff
}
  }
  \midi {
\tempo 4=70
  }
}



lör 5 aug. 2017 kl 19:53 skrev Thomas Morley :

> 2017-08-05 19:28 GMT+02:00 Erik Natanael Gustafsson
> :
> > Whoops, I accidentally sent my reply only to Holland. Here it is again:
> >
> > "
> > Good idea! I made a minimal example
>
> Where is it?
>
> > and in the process I realised that time
> > signatures stopped being printed after I used "\set
> > Staff.timeSignatureFraction = 4/4" (the box markup had nothing to do with
> > it). Is there any way of continuing to print the default time signature
> > after one bar of polymetric notation?
>
> "polymetric notation?"
> Minimal example please!
>
> >
> > Thanks for the code!
>
> Which code?
> I'm tired of looking into the archives whether there is some code
> somewhere.
> Finding:
>
>
>
>
>
>
>
>
>
>
> >Could you point me to a resource for how to use it? I
> > mean, where I put that file, how I invoke it in my score etc.
>
> No idea what you're talking about.
>
>
> -Har

-- 
Erik Natanael Gustafsson
---
► Composer, musician ◄
❂ Website: https://eriknatanael.com/
❂ SoundCloud: https://soundcloud.com/enatanael
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reverting TimeSignature after box notation

2017-08-05 Thread Thomas Morley
2017-08-05 19:28 GMT+02:00 Erik Natanael Gustafsson
:
> Whoops, I accidentally sent my reply only to Holland. Here it is again:
>
> "
> Good idea! I made a minimal example

Where is it?

> and in the process I realised that time
> signatures stopped being printed after I used "\set
> Staff.timeSignatureFraction = 4/4" (the box markup had nothing to do with
> it). Is there any way of continuing to print the default time signature
> after one bar of polymetric notation?

"polymetric notation?"
Minimal example please!

>
> Thanks for the code!

Which code?
I'm tired of looking into the archives whether there is some code somewhere.
Finding:










>Could you point me to a resource for how to use it? I
> mean, where I put that file, how I invoke it in my score etc.

No idea what you're talking about.


-Harm

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


Re: Reverting TimeSignature after box notation

2017-08-05 Thread Erik Natanael Gustafsson
Whoops, I accidentally sent my reply only to Holland. Here it is again:

"
Good idea! I made a minimal example and in the process I realised that time
signatures stopped being printed after I used "\set
Staff.timeSignatureFraction = 4/4" (the box markup had nothing to do with
it). Is there any way of continuing to print the default time signature
after one bar of polymetric notation?

Thanks for the code! Could you point me to a resource for how to use it? I
mean, where I put that file, how I invoke it in my score etc.

Cheers,
Erik"

lör 5 aug. 2017 kl 17:02 skrev Knute Snortum :

> You'll probably get more responses if you create a Minimal Working Example
> (MWE).  This is the smallest amount of code that will reproduce the problem.
>
> I often find that I stumble over a solution when I'm creating my MWE.
>
>
> ---
> Knute Snortum
> (via Gmail)
>
> On Thu, Aug 3, 2017 at 3:27 AM, Erik Natanael Gustafsson <
> eriknatanaelgustafs...@gmail.com> wrote:
>
>> Hi!
>>
>> I'm working on a piece while learning lilypond. It uses a bit of box
>> notation so I have the time signatures hidden in the beginning, but then I
>> want them back.
>>
>> After using
>> \override Staff.TimeSignature.stencil = ##f
>> to remove my time signatures, I can revert back using
>> \revert Staff.TimeSignature.stencil
>> if I place it before this block of code (making boxes for my box notation)
>>
>> s2-\markup {
>>   \with-dimensions #'(0 . 0) #'(0 . 0)
>>   \override #'(thickness . 3)
>>   \box
>>   \with-dimensions #'(-2 . 100) #'(-10 . 10)
>>   \null} s4.  \bar""|
>>   s4.-\markup {
>>   \with-dimensions #'(0 . 0) #'(0 . 0)
>>   \box
>>   \with-dimensions #'(-2 . 15) #'(0 . 10)
>>   \null}  s4.-\markup {
>>   \with-dimensions #'(0 . 0) #'(0 . 0)
>>   \box
>>   \with-dimensions #'(-2 . 9) #'(0 . 10)
>>   \null}|
>>
>> but if I place it after this code it has no effect (and gives no error).
>> What am I doing wrong, is it a bug, is there a workaround? I'm on lilypond
>> 2.18.2.
>>
>> Cheers,
>> Erik Natanael Gustafsson
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
> --
Erik Natanael Gustafsson
---
► Composer, musician ◄
❂ Website: https://eriknatanael.com/
❂ SoundCloud: https://soundcloud.com/enatanael
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reverting TimeSignature after box notation

2017-08-05 Thread Knute Snortum
You'll probably get more responses if you create a Minimal Working Example
(MWE).  This is the smallest amount of code that will reproduce the problem.

I often find that I stumble over a solution when I'm creating my MWE.


---
Knute Snortum
(via Gmail)

On Thu, Aug 3, 2017 at 3:27 AM, Erik Natanael Gustafsson <
eriknatanaelgustafs...@gmail.com> wrote:

> Hi!
>
> I'm working on a piece while learning lilypond. It uses a bit of box
> notation so I have the time signatures hidden in the beginning, but then I
> want them back.
>
> After using
> \override Staff.TimeSignature.stencil = ##f
> to remove my time signatures, I can revert back using
> \revert Staff.TimeSignature.stencil
> if I place it before this block of code (making boxes for my box notation)
>
> s2-\markup {
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \override #'(thickness . 3)
>   \box
>   \with-dimensions #'(-2 . 100) #'(-10 . 10)
>   \null} s4.  \bar""|
>   s4.-\markup {
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \box
>   \with-dimensions #'(-2 . 15) #'(0 . 10)
>   \null}  s4.-\markup {
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \box
>   \with-dimensions #'(-2 . 9) #'(0 . 10)
>   \null}|
>
> but if I place it after this code it has no effect (and gives no error).
> What am I doing wrong, is it a bug, is there a workaround? I'm on lilypond
> 2.18.2.
>
> Cheers,
> Erik Natanael Gustafsson
>
> ___
> 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


Reverting TimeSignature after box notation

2017-08-03 Thread Erik Natanael Gustafsson
Hi!

I'm working on a piece while learning lilypond. It uses a bit of box
notation so I have the time signatures hidden in the beginning, but then I
want them back.

After using
\override Staff.TimeSignature.stencil = ##f
to remove my time signatures, I can revert back using
\revert Staff.TimeSignature.stencil
if I place it before this block of code (making boxes for my box notation)

s2-\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \override #'(thickness . 3)
  \box
  \with-dimensions #'(-2 . 100) #'(-10 . 10)
  \null} s4.  \bar""|
  s4.-\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \box
  \with-dimensions #'(-2 . 15) #'(0 . 10)
  \null}  s4.-\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \box
  \with-dimensions #'(-2 . 9) #'(0 . 10)
  \null}|

but if I place it after this code it has no effect (and gives no error).
What am I doing wrong, is it a bug, is there a workaround? I'm on lilypond
2.18.2.

Cheers,
Erik Natanael Gustafsson
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread David Kastrup
Kieren MacMillan  writes:

> Hi Phil,
>
>> \layout {
>>   \context {
>>  \Score
>>  \remove Mark_engraver
>>  }
>>   \context {
>>  \Staff
>>  \consists Mark_engraver
>>  }
>> }
>
> Ah, yes… that would work in that one place.
> But in this particular score, I’ve got lots of other marks that
> might/would get messed up (or require re-consideration) as a result.
>
> David K’s solution — which I am going to turn into a music function
> and submit to the LSR — is the winner this time.

I'm afraid that the grob-transformer function (issue 4601) is only
available as of 2.19.28.  So it's possible that this particular code
would need to be placed in LilyPond's own snippets for now.

It still would be appreciated as this is more useful than documented
right now.

-- 
David Kastrup

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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Kieren MacMillan
Hi Phil,

> \layout {
>   \context {
>  \Score
>  \remove Mark_engraver
>  }
>   \context {
>  \Staff
>  \consists Mark_engraver
>  }
> }

Ah, yes… that would work in that one place.
But in this particular score, I’ve got lots of other marks that might/would get 
messed up (or require re-consideration) as a result.

David K’s solution — which I am going to turn into a music function and submit 
to the LSR — is the winner this time.

Thanksl
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Kieren MacMillan
Hi David,

> Well, I don't think that time signatures would be able to take text
> scripts but you can modify their grob:

Lovely solution — many thanks.

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Kieren MacMillan
Hi Abraham,

>> Did I miss something?
> Other than putting \global in-line with each part... ;-)

HA!  =)

> On a more serious note, I wonder if it is possible to re-assign the 
> TextScript parent? Or, add the TextScript as a child of the TimeSignature?

I, too, am curious about that.

> David's solution is nice

It’s got a couple of nice benefits, including that the numbers are 
automatically in the “correct” font [cf. Gould].

> it makes the first NoteColumn move out due to the increased stencil's 
> X-extent from the markup. Setting the X-width to be the same as the original 
> would fix that, though.

Yes, and it works great.

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread tisimst
On Mon, Apr 18, 2016 at 10:10 AM, Kieren MacMillan [via Lilypond] <
ml-node+s1069038n189714...@n5.nabble.com> wrote:

> Hi Abraham,
>
> > Give this one a try: http://lsr.di.unimi.it/LSR/Item?id=433
>
> I don’t think TextScript has break-alignment possibilities:
> http://lilypond.org/doc/v2.19/Documentation/internals/textscript
>
> And as a RehearsalMark, that will fail to do what I’m hoping (which is
> different markings for each Staff):
>
> \version "2.19.39"
>
> global = {
>   \time 12/8 s8*12
> }
>
> partone = {
>   \mark "[3+3+3+3]"
>   c''4. 4. 4. 4.
> }
>
> parttwo = {
>   \mark "[4+3+2+3]"
>   c''2 4. 4 4.
> }
>
> \score {
>   <<
> \new Staff \partone
> \new Staff \parttwo
>   >>
> }
>
> Did I miss something?
>

Other than putting \global in-line with each part... ;-)

On a more serious note, I wonder if it is possible to re-assign the
TextScript parent? Or, add the TextScript as a child of the TimeSignature?
David's solution is nice, but it makes the first NoteColumn move out due to
the increased stencil's X-extent from the markup. Setting the X-width to be
the same as the original would fix that, though.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/can-markup-behave-like-mark-on-a-single-staff-or-attach-to-TimeSignature-tp189712p189719.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Phil Burfitt
  - Original Message - 
  From: Kieren MacMillan 
  To: Lilypond-User Mailing List 
  Sent: Monday, April 18, 2016 4:30 PM
  Subject: can \markup behave like \mark [on a single staff],or attach to 
TimeSignature


  Hello all,


  I have a score where (e.g.) a 12/8 measure is broken up in different ways 
depending on the staff (see attached screenshot).


  Currently, I’m coding this as a \markup on the first note, and then using 
#'X-offset to align it to the time signature. But this requires 
trial-and-error, and the alignment changes slightly almost every time the 
layout changes.


  Is there any way that I can either:


  1. use \mark instead [so that I can use the auto-align features of 
RehearsalMark], but have it appear only on the Staff it’s added to; or


  2. attach a TextScript directly to the TimeSignature [so that I don’t 
have to manually tweak the #’X-offset]


  ??


  Thanks in advance for any hints/help,
  Kieren.


\layout {

  \context {
 \Score
 \remove Mark_engraver
 }
  \context {
 \Staff
 \consists Mark_engraver
 }
}

?


Phil.

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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread David Kastrup
Kieren MacMillan <kieren_macmil...@sympatico.ca> writes:

> Hello all,
>
> I have a score where (e.g.) a 12/8 measure is broken up in different ways
> depending on the staff (see attached screenshot).
>
> Currently, I’m coding this as a \markup on the first note, and then using
> #'X-offset to align it to the time signature. But this requires 
> trial-and-error, and
> the alignment changes slightly almost every time the layout changes.
>
> Is there any way that I can either:
>
> 1. use \mark instead [so that I can use the auto-align features of
> RehearsalMark], but have it appear only on the Staff it’s added to; or
>
> 2. attach a TextScript directly to the TimeSignature [so that I don’t have to
> manually tweak the #’X-offset]
>
> ??

Well, I don't think that time signatures would be able to take text
scripts but you can modify their grob:

\new Staff
{
  \tweak stencil #(grob-transformer 'stencil
   (lambda (grob sten)
(grob-interpret-markup grob
 #{ \markup \override #`(direction . ,UP)
\dir-column \center-align { \stencil #sten Yoohoo! } 
#})))
  \time 12/8
  c'1
}

-- 
David Kastrup

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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Kieren MacMillan
Hi Abraham,

> Give this one a try: http://lsr.di.unimi.it/LSR/Item?id=433

I don’t think TextScript has break-alignment possibilities:
http://lilypond.org/doc/v2.19/Documentation/internals/textscript

And as a RehearsalMark, that will fail to do what I’m hoping (which is 
different markings for each Staff):

\version "2.19.39"

global = {
  \time 12/8 s8*12
}

partone = {
  \mark "[3+3+3+3]"
  c''4. 4. 4. 4.  
}

parttwo = {
  \mark "[4+3+2+3]"
  c''2 4. 4 4.  
}

\score {
  <<
\new Staff \partone
\new Staff \parttwo
  >>
}

Did I miss something?

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread tisimst
Kieren,

On Mon, Apr 18, 2016 at 9:31 AM, Kieren MacMillan [via Lilypond] <
ml-node+s1069038n189712...@n5.nabble.com> wrote:

> Hello all,
>
> I have a score where (e.g.) a 12/8 measure is broken up in different ways
> depending on the staff (see attached screenshot).
>
> Currently, I’m coding this as a \markup on the first note, and then using
> #'X-offset to align it to the time signature. But this requires
> trial-and-error, and the alignment changes slightly almost every time the
> layout changes.
>
> Is there any way that I can either:
>
> 1. use \mark instead [so that I can use the auto-align features of
> RehearsalMark], but have it appear only on the Staff it’s added to; or
>
>     2. attach a TextScript directly to the TimeSignature [so that I don’t
> have to manually tweak the #’X-offset]
>
> ??
>

Give this one a try: http://lsr.di.unimi.it/LSR/Item?id=433

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/can-markup-behave-like-mark-on-a-single-staff-or-attach-to-TimeSignature-tp189712p189713.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


can \markup behave like \mark [on a single staff], or attach to TimeSignature

2016-04-18 Thread Kieren MacMillan
Hello all,

I have a score where (e.g.) a 12/8 measure is broken up in different ways 
depending on the staff (see attached screenshot).

Currently, I’m coding this as a \markup on the first note, and then using 
#'X-offset to align it to the time signature. But this requires 
trial-and-error, and the alignment changes slightly almost every time the 
layout changes.

Is there any way that I can either:

1. use \mark instead [so that I can use the auto-align features of 
RehearsalMark], but have it appear only on the Staff it’s added to; or

2. attach a TextScript directly to the TimeSignature [so that I don’t have 
to manually tweak the #’X-offset]

??

Thanks in advance for any hints/help,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Double timesignature with single-digit

2015-09-23 Thread Andreas Stenberg


On 9/23/2015 10:28 AM, Andreas Stenberg [via Lilypond] wrote:

>Hi!
>
>I need a way to modify the double time signature snippet in LSR to
>produce something where the numerical part looks like the single-digit
>time signature style: something lice
>C 3 with both mensural sign and number centered around the central
>noteline.

How about this (based on LSR #725):

%
%% seehttp://lsr.di.unimi.it/LSR/Item?id=725
%% see alsohttp://lilypond.org/doc/v2.18/Documentation/snippets/rhythms


#(define ((double-time-signature glyph num) grob)
 (grob-interpret-markup grob
#{
  \markup {
\line {
  %\fontsize #0
  \musicglyph #glyph
  \lower #1 \number #num
}
  }
#}))

\relative c' {
\override Score.TimeSignature.stencil =
#(double-time-signature  "timesig.mensural44" "3")
\time 3/4
c8 b c d e f g4 g g g4 a8 g f e d2. \bar "|."
}
%



Adjust the \fontsize value to taste (0 means default size, BTW).

Best,
Abraham



Thanks Abraham.

This will work.  Also when i mod it to a triple timesignature C 3 ) . 
(The ")" standing in for a inverted  "C")


#(define ((triple-time-signature glyph num glyph_b) grob)
(grob-interpret-markup grob
   #{
 \markup {
   \line {
 \fontsize #4
 \musicglyph #glyph
 \lower #1 \number #num
 \fontsize #4
 \musicglyph #glyph_b
   }
 }
   #}))

\relative c' {
   \override Score.TimeSignature.stencil =
   #(triple-time-signature  "timesig.mensural64" "3" 
"timesig.mensural68alt")

   \time 3/4
   c8 b c d e f g4 g g g4 a8 g f e d2. \bar "|."
}

Andreas

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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip to 
0 only way?

 BEGIN 

#(define
  (customTimeSignature grob)
  (let*
((sz
(ly:grob-property grob 'font-size 0.0))
(mult (magstep sz))
(fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction)))
(grob-interpret-markup grob #{
  \markup {
 \translate #'(0 . 0.03) \override #'(font-name . Times) \fontsize 
#2.5 \override #'(baseline-skip . 2) \center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
#})))


 END 



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 3:16 PM, Karol Majewski karo...@wp.pl wrote:
 
 Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip 
 to 0 only way?

There might be another way, but if so I’m out of ideas.  The following takes 
the ly:stencil-scale approach, and it doesn’t help here.

-Paul


#(define
  (customTimeSignature grob)
  (let*
   ((fraction (ly:grob-property grob 'fraction))
(num (car fraction))
(denom (cdr fraction))
(sz (ly:grob-property grob 'font-size 0.0))
(mult (magstep sz)))
   (ly:stencil-scale
(grob-interpret-markup grob #{
  \markup {
\translate #'(0 . 0.03)
% \override #'(font-name . Times)
\fontsize #2.5 
\override #'(baseline-skip . 2)
\center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
  #})
   mult mult)
   ))




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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:40 PM, karol [via Lilypond] 
ml-node+s1069038n178721...@n5.nabble.com wrote:

 Yes, Abraham, I've tried this. But the drawback of this solution is thet
 it doesn't scale to bigger staff size.



 Try: #(set-global-staff-size 26) and you'll get what I mean.

I see what you mean, now. Thanks for helping me understand. I know this
doesn't answer your question exactly, but what about this:

\layout {
  \context {
\Score
\override TimeSignature.font-name = #Times
\override TimeSignature.font-size = #2.5
\numericTimeSignature
  }
}

That seems to size things better than my previous suggestions for any
global staff-size, at least it did for me from 10pt to 40pt staff-sizes.

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178722.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 12:46 PM, Paul Morris [via Lilypond] 
ml-node+s1069038n178711...@n5.nabble.com wrote:

  On Jul 16, 2015, at 2:18 PM, Karol Majewski [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=178711i=0 wrote:
 
  I use the following code for changing TimeSignature font. But when it
 comes to changeing staff size via 'magstep', the TimeSignature doesn't
 scale correctly. It seems that baseline-skip remains the same. How can I
 fix this?

 Hi, when overriding a grob’s stencil, you have to scale the new stencil by
 the current font-size.  Something like this:

 #(lambda (grob)
 (let* ((sz (ly:grob-property grob 'font-size 0.0))
(mult (magstep sz)))
 (set! (ly:grob-property grob 'stencil)
   (ly:stencil-scale
 myCustomStencil
 mult mult

 …taken from this snippet:
 http://lsr.di.unimi.it/LSR/Item?id=623


Just setting #'(baseline-skip . 0) works just fine for me at any font size.

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178712.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Yes, this is what I'm trying right now :) Probably I'll stick to that, as it's the most natural way of changing the font.

Thanks.




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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 2:18 PM, Karol Majewski karo...@wp.pl wrote:
 
 I use the following code for changing TimeSignature font. But when it comes 
 to changeing staff size via 'magstep', the TimeSignature doesn't scale 
 correctly. It seems that baseline-skip remains the same. How can I fix this?

Hi, when overriding a grob’s stencil, you have to scale the new stencil by the 
current font-size.  Something like this:

#(lambda (grob)
(let* ((sz (ly:grob-property grob 'font-size 0.0))
   (mult (magstep sz)))
(set! (ly:grob-property grob 'stencil) 
  (ly:stencil-scale
myCustomStencil
mult mult

…taken from this snippet:
http://lsr.di.unimi.it/LSR/Item?id=623

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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:09 PM, karol [via Lilypond] 
ml-node+s1069038n178719...@n5.nabble.com wrote:

 Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea
 here. Take a look at the attachment. This is what is happening if you set
 baseline-skip to 0.



 In case of some other fonts difference between 'a' and 'b' is more
 noticeable.

 So we need to have baseline skip set to 2 to have perfectly even spacing.


Thanks for the explanation. It still seems like a _very_ small difference
to me, but if you can see it, then that's fine. How about this:

#(define
  (customTimeSignature grob)
  (let*
((fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction))
  (stil (grob-interpret-markup grob #{
\markup {
  \translate #'(0 . 0.03)
  \override #'(font-name . Times)
  \abs-fontsize #15
  \override #'(baseline-skip . 2)
  \center-column {
\line {
  #(number-string num)
}
\line {
  #(number-string denom)
}
  }
}
  #}))
  (sz (magstep (ly:grob-property grob 'font-size 0.0
(ly:stencil-scale stil sz sz)))

which gives me (at fontSize = -3, -2, -1, 0, 1, 2, 3):

[image: Inline image 1]

Just setting baseline-skip to 0 and this look virtually identical to me,
but maybe this works better for you.

- Abraham


image.png (45K) 
http://lilypond.1069038.n5.nabble.com/attachment/178720/0/image.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178720.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 1:34 PM, Paul Morris [via Lilypond] 
ml-node+s1069038n17871...@n5.nabble.com wrote:

  On Jul 16, 2015, at 3:16 PM, Karol Majewski [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=178716i=0 wrote:
 
  Paul, I,ve came up with this, but it doesn't help. Is setting
 baseline-skip to 0 only way?

 There might be another way, but if so I’m out of ideas.  The following
 takes the ly:stencil-scale approach, and it doesn’t help here.

 -Paul


 #(define
   (customTimeSignature grob)
   (let*
((fraction (ly:grob-property grob 'fraction))
 (num (car fraction))
 (denom (cdr fraction))
 (sz (ly:grob-property grob 'font-size 0.0))
 (mult (magstep sz)))
(ly:stencil-scale
 (grob-interpret-markup grob #{
   \markup {
 \translate #'(0 . 0.03)
 % \override #'(font-name . Times)
 \fontsize #2.5
 \override #'(baseline-skip . 2)
 \center-column {
   \line {
 #(number-string num)
   }
   \line {
 #(number-string denom)
   }
 }
   }
   #})
mult mult)
))


Karol,

Here's what I get with your original code and doing nothing more than
setting baseline-skip to 0 (shown with staves at fontSize = -3, -2, -1, and
default, respectively):

[image: Inline image 1]

That looks like it's vertically aligned nicely to me, but if this isn't
what you're after, please help us understand what you see as the ideal
scenario. Thanks!

- Abraham


image.png (50K) 
http://lilypond.1069038.n5.nabble.com/attachment/178717/0/image.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178717.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
OK, so with abs-fontsize it scales properly, but if I set global staff size 
_higher_ than default (20) then it doesn't scale.



% BEGIN %%

#(define
  (customTimeSignature grob)
  (let*
((sz
(ly:grob-property grob 'font-size 0.0))
(mult (magstep sz))
(fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction)))
(grob-interpret-markup grob #{
  \markup {
 \scale #(cons mult mult) \override #'(font-name . Times) 
\abs-fontsize #15 \override #'(baseline-skip . 2) \center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
#})))

\layout {
  \context {
\Score
\override TimeSignature.stencil = #customTimeSignature
  }
}

one = {
  \time 3/4 c'2.
}

two = {
  c'2.
}


  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
  } \one
  \new Staff \two



% END %%



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 2:45 PM, Paul Morris p...@paulwmorris.com wrote:
 
 Hi, when overriding a grob’s stencil, you have to scale the new stencil by 
 the current font-size.  

Hmmm, on second thought, it looks like grob-interpret-markup already takes care 
of scaling the new stencil to the current font size.  

And it looks like Abraham has the solution.

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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Yes, Abraham, I've tried this. But the drawback of this solution is thet it doesn't scale to bigger staff size.

Try: #(set-global-staff-size 26) and you'll get what I mean.


-- Karol



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


Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
I'd like to avoid setting baseline-skip to 0, as it results in specing issues 
between num and denom (denom is bit misaligned vertically).



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea here. Take a look at the attachment. This is what is happening if you set baseline-skip to 0.

In case of some other fonts difference between 'a' and 'b' is more noticeable.
So we need to have baseline skip set to 2 to have perfectly even spacing.

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


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-29 Thread padovani
So... I discovered that the TimeSignature issue is related to the fact that
it is not being written as text to the svg file, but as a path.

If I use this code I can create a svg file with different fonts for the
time signature, overriding the stencil with a text:

%% BEGIN CODE 1
\score {
\new Staff {

\once \override Staff.TimeSignature.stencil = #ly:text-interface::print
  \once \override Staff.TimeSignature.text = \markup {
  \override #'(font-name . Helvetica)
  \override #'(baseline-skip . 0.2)
  \fontsize #4
 \column { 3
   4
  }}
\time 2/4
c2
}
}
%% END CODE 1

It works, but I'm struggling here to change the text of the time signature
automatically with a scheme function. Tried the code below, but it does not
work (giving me exactly the same error dump of my previous message). Any
suggestions?

%% BEGIN CODE 2
#(define-public (tsigastext grob)
   (let* ((frac (ly:grob-property grob 'fraction))
  (num (if (pair? frac) (car frac) 4))
  (den (if (pair? frac) (cdr frac) 4))
  (m (markup
  #:override '(font-name . Helvetica)
  #:override '(baseline-skip . 0.5)
  #:fontsize 4
  #:center-column (#:number (number-string num)
   #:override '(style . default)
   #:number (number-string den)
 
(ly:grob-set-property! grob 'stencil ly:text-interface::print)
(grob-interpret-markup grob m)))


\score {
\new Staff {

  \override Staff.TimeSignature.stencil = #tsigastext
\time 2/4
c2


%%% \override Staff.TimeSignature.stencil = #(lambda (grob)
%%%(parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4
0.1 ))

\time 3/4
c2
}
}
%% END CODE 2

thanks!

2015-04-28 14:37 GMT-03:00 padovani zepadovani.li...@gmail.com:

 Hi,

 This code compiles on .ps /.svg backends without problems:

 %code 1
 \score {
 \new Staff {
 \time 2/4
 c2_\markup {
   \override #'(font-name . Helvetica)
 here it works
 }
 }
 }
 %end code 1

 But the code below one gives me an error if I compile with -dbackend=svg

 %code2
 \score {
 \new Staff {
 \override Staff.TimeSignature.font-name = #'Helvetica
 \time 2/4
 c2_\markup {
   \override #'(font-name . Helvetica)
 here it works
 }
 }
 }
 % end code 2

 here is the error:
 %%error begin
 Interpreting music...
 Preprocessing graphical objects...
 Finding the ideal number of pages...
 Fitting music on 1 page...
 Drawing systems...
 Layout output to `teste.svg'...
 warning: cannot find SVG font #f
 /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
 In procedure string-null? in expression (string-null? expr):
 /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
 Wrong type argument in position 1 (expecting string): #unspecified
 %%error end

 (I'm using 2.19.19 on OSX 10.9.5.)

 Is this a bug? It seems that something need to be changes in
 output-svg.scm... any idea?

 Thank you!




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


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-29 Thread Dan Eble
On Apr 29, 2015, at 16:48 , padovani zepadovani.li...@gmail.com wrote:
 
 So... I discovered that the TimeSignature issue is related to the fact that
 it is not being written as text to the svg file, but as a path.
 
 If I use this code I can create a svg file with different fonts for the
 time signature, overriding the stencil with a text:
...
 It works, but I'm struggling here to change the text of the time signature
 automatically with a scheme function.

\version 2.19.16

#(add-simple-time-signature-style 'swiss
  (lambda (fraction)
   (let ((n (car fraction))
 (d (cdr fraction)))
#{
  \markup {
\override #'(font-name . Helvetica)
\override #'(baseline-skip . 0.2)
\fontsize #4
\column { #(number-string n) #(number-string d) }
  }
#} )))

\score {
  \new Staff \with {
\override TimeSignature.style = #'swiss
  } {
\time 2/4
c2
  }
}

— 
Dan


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


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-29 Thread padovani
Nice! Thank you!!

2015-04-29 20:02 GMT-03:00 Dan Eble d...@faithful.be:

 On Apr 29, 2015, at 16:48 , padovani zepadovani.li...@gmail.com wrote:
 
  So... I discovered that the TimeSignature issue is related to the fact
 that
  it is not being written as text to the svg file, but as a path.
 
  If I use this code I can create a svg file with different fonts for the
  time signature, overriding the stencil with a text:
 ...
  It works, but I'm struggling here to change the text of the time
 signature
  automatically with a scheme function.

 \version 2.19.16

 #(add-simple-time-signature-style 'swiss
   (lambda (fraction)
(let ((n (car fraction))
  (d (cdr fraction)))
 #{
   \markup {
 \override #'(font-name . Helvetica)
 \override #'(baseline-skip . 0.2)
 \fontsize #4
 \column { #(number-string n) #(number-string d) }
   }
 #} )))

 \score {
   \new Staff \with {
 \override TimeSignature.style = #'swiss
   } {
 \time 2/4
 c2
   }
 }

 —
 Dan


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


Re: svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-28 Thread Dan Eble
On Apr 28, 2015, at 13:37 , padovani zepadovani.li...@gmail.com wrote:
 
 Hi,
 
 But the code below one gives me an error if I compile with -dbackend=svg
[snip]
 (I'm using 2.19.19 on OSX 10.9.5.)
 

PDF output doesn’t even work for me on OSX 10.10.3:

GNU LilyPond 2.19.19
Processing `time-signature-font.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `time-signature-font.ps'...
warning: `(fondu -force /System/Library/Fonts/Helvetica.dfont)' failed (5)

fatal error: failed files: time-signature-font.ly”
— 
Dan


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


svg font issue(bug?): can't change TimeSignature font (but markup fonts can be changed)

2015-04-28 Thread padovani
Hi,

This code compiles on .ps /.svg backends without problems:

%code 1
\score {
\new Staff {
\time 2/4
c2_\markup {
  \override #'(font-name . Helvetica)
here it works
}
}
}
%end code 1

But the code below one gives me an error if I compile with -dbackend=svg

%code2
\score {
\new Staff {
\override Staff.TimeSignature.font-name = #'Helvetica
\time 2/4
c2_\markup {
  \override #'(font-name . Helvetica)
here it works
}
}
}
% end code 2

here is the error:
%%error begin
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `teste.svg'...
warning: cannot find SVG font #f
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
In procedure string-null? in expression (string-null? expr):
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/output-svg.scm:558:7:
Wrong type argument in position 1 (expecting string): #unspecified
%%error end

(I'm using 2.19.19 on OSX 10.9.5.)

Is this a bug? It seems that something need to be changes in
output-svg.scm... any idea?

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


content versus presentation in music and Lilypond (was Re: forcing TimeSignature visibility)

2015-04-13 Thread Kieren MacMillan
[n.b. None of the referenced images are attached to this post, since the 
moderator has told me that 186KB is “huge”. Anyone interested in seeing the 
images can contact me directly, or perhaps recommend a website which will allow 
me to upload such images for public viewing/linking.]

Hi Andrew,

I hope you don’t mind me posting this to the list at large — I think it’s an 
important discussion for everyone to have/see.

 What exactly is the objection to inserting \time when you need it? It does 
 exactly what you ask for.

It mixes content (i.e., the music code) with presentation (i.e., the 
engraving/edition).

 What do you mean by ‘presentation layer’ precisely? That’s a term from the 
 OSI model of computer networking, where it is Layer 6, the data translation 
 layer. Speaking as a software architect myself, I have a feeling you don’t 
 mean this.

I do mean “presentation layer in the sense of some software, like the 
content-presentation separation of XML/XSLT, etc.
I work in IT as well (n.b. I’ve run my own database/programming/instruction 
consultancy for nearly 20 years)… though fortunately I’m in at the tail end of 
my exit strategy into full-time composition!  ;)

 As far as I can see, as an engraving program, lilypond is _all_ presentation, 
 i.e. entirely visual presentation (barring considerations of MIDI). If you 
 could elaborate, it may help find alternatives to your problem.

Consider the first page of the song I’m currently engraving (from my musical 
“Fairy Tale Ending”). Notably, the singer is in 2/2 or 3/2 throughout, whereas 
the piano shifts between matching the singer (i.e., 2/2 or 3/2) or playing in a 
co-rhythmic triple meter (i.e., 12/8 or 18/8). And before you ask, yes, I did 
consider the many, many other options that I could think of — and asked a 
half-dozen other musicians (composers, performers, and MDs) — and found no 
superior way of laying it out.  =)

The “content layer” (here, and indeed in all music) comprises, in part, the 
notes and the time signature in each measure — these things (and others, of 
course) remain constant, regardless of how the piece is ultimately engraved.

The “presentation layer” comprises, in part, choices that must be made to 
physically represent the content on the page, given the page geometry, clarity 
considerations, etc. In this Piano/Conductor engraving/presentation, m. 4 
immediately follows a line break; since the voice staff appears here for the 
first time (because of “frenching” the score), the time signature (2/2) must be 
included at the beginning of the system; however, to make it clear that the 
piano music is still in 12/8, its time signature must be re-displayed, even 
though it hasn’t changed since the last visible time signature (in m. 1); 
finally, to make it crystal clear that this is not a change but simply a 
reminder, the piano time signature should be enclosed in parentheses (like a 
“cautionary accidental”). All of these choices were forced not by the content, 
but by the presentation requirements.

In the Vocal Score for this same piece, there is no need for such acrobatics, 
since the piano part doesn’t appear at all. But [only because I haven’t tweaked 
it yet], you will see in m.4 the extra (and, in this edition, spurious) time 
signature which results from the \time 2/2 that I was forced to add to the 
music (a.k.a. content layer) simply in order to retrigger the time signature in 
the Piano/Conductor score (a.k.a. presentation layer). Now I will either have 
to use some sort of elaborate tagging mechanism in the content layer — further 
mixing presentation layer information into the content layer — or [thank you, 
Jan-Peter!!] use the \editionEngraver to add a manual tweak to the [Vocal 
Score] presentation layer, explicitly hiding the time signature in m.4.

Does that make it more clear what the presentation layer is when talking about 
music engraving?

 Is your pun intentional - ‘from time to time…’?

No! Nice catch. =)

Thanks,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info

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


Re: content versus presentation in music and Lilypond (was Re: forcing TimeSignature visibility)

2015-04-13 Thread Mark Knoop
At 13:59 on 13 Apr 2015, Kieren MacMillan wrote:
The “presentation layer” comprises, in part, choices that must be made
to physically represent the content on the page, given the page
geometry, clarity considerations, etc. In this Piano/Conductor
engraving/presentation, m. 4 immediately follows a line break; since
the voice staff appears here for the first time (because of
“frenching” the score), the time signature (2/2) must be included at
the beginning of the system; however, to make it clear that the piano
music is still in 12/8, its time signature must be re-displayed, even
though it hasn’t changed since the last visible time signature (in m.
1); finally, to make it crystal clear that this is not a change but
simply a reminder, the piano time signature should be enclosed in
parentheses (like a “cautionary accidental”). All of these choices
were forced not by the content, but by the presentation requirements.

\set Staff.timeSignatureFraction = 3/2

seems to work when used as an editionMod (see attached). Yes, it would
be nice to not have to know the actual numbers to use, but there's
probably a way extract that from the context. See
http://lilypond.1069038.n5.nabble.com/How-to-extract-the-current-time-signature-td170857.html

-- 
Mark Knoop
\version 2.18.2
\include openlilylib
\include editorial-tools/edition-engraver/definitions.ily

\editionMod score 5 0/8 score.Staff.A \set Staff.timeSignatureFraction = 3/2

uppermusic = \relative c' {
  \time 3/2
  \repeat unfold 8 { c2 c c }
}

lowermusic = \relative c' {
  \time 3/2
  \set Staff.timeSignatureFraction = 18/8
  \scaleDurations 12/18 {
\repeat unfold 8 { \repeat unfold 18 c8 }
  }
}

\addEdition score

\layout {
  \context {
\Voice
\consists \editionEngraver ##f
  }
  \context {
\Staff
\consists \editionEngraver score
  }
  \context {
\Score
\consists \editionEngraver score
  }
}
% score
\score {
  {

  \new Staff = upper { \uppermusic }
  \new Staff = lower { \lowermusic }

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


Re: content versus presentation in music and Lilypond (was Re: forcing TimeSignature visibility)

2015-04-13 Thread Mark Knoop
At 19:58 on 13 Apr 2015, Mark Knoop wrote:
At 13:59 on 13 Apr 2015, Kieren MacMillan wrote:
The “presentation layer” comprises, in part, choices that must be made
to physically represent the content on the page, given the page
geometry, clarity considerations, etc. In this Piano/Conductor
engraving/presentation, m. 4 immediately follows a line break; since
the voice staff appears here for the first time (because of
“frenching” the score), the time signature (2/2) must be included at
the beginning of the system; however, to make it clear that the piano
music is still in 12/8, its time signature must be re-displayed, even
though it hasn’t changed since the last visible time signature (in m.
1); finally, to make it crystal clear that this is not a change but
simply a reminder, the piano time signature should be enclosed in
parentheses (like a “cautionary accidental”). All of these choices
were forced not by the content, but by the presentation requirements.

\set Staff.timeSignatureFraction = 3/2

Ah, sorry, just saw the other thread where you've already discovered
that...

-- 
Mark Knoop

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


forcing TimeSignature visibility

2015-04-11 Thread Kieren MacMillan
Hi all,

From time to time in the score I’m currently engraving, I want to force the 
time signature to “reappear” in a particular measure even though the time 
signature is not changing at that moment.

I don’t want to add a new \time command in the note code (which, I believe, 
might solve the problem in certain cases), since this is presentation-layer 
tweak. But I can’t seem to find the proper incantation (e.g., break-visibility, 
etc.) to make this happen. Any hints or doc-links would be appreciated.

Thanks,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Constraining widths of layout objects (TimeSignature)

2013-04-04 Thread Hanns Holger Rutz
I'm staring at


http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Size-of-objects#Size-of-objects

but there is no information about how to constrain the width of objects. I 
would like to adjust the width of a time signature. I randomly tried

\score {
  \new RhythmicStaff {
\override Staff.TimeSignature #'minimum-length = #23
\set Staff.instrumentName = \markup { \char ##x00D7 1/4 }
\time 1/16
\times 2/3 { 
c'32  c'32  c'32  
}
  }
}

but that doesn't seem to have any effect. I have independent scores with 
different time signatures, and they must have all the same layout width.

where would I look up all the possible overrides for Staff.TimeSignature?

thanks, .h.h.


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


Re: Constraining widths of layout objects (TimeSignature)

2013-04-04 Thread David Nalesnik
Hi Hanns,


On Thu, Apr 4, 2013 at 9:14 AM, Hanns Holger Rutz cont...@sciss.de wrote:

 I'm staring at


 http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Size-of-objects#Size-of-objects


(A little off-topic: this is a rather old version of LilyPond.  Current
stable is 2.16.2.  There have been many many improvements.)




 but there is no information about how to constrain the width of objects. I
 would like to adjust the width of a time signature. I randomly tried

 \score {
   \new RhythmicStaff {
 \override Staff.TimeSignature #'minimum-length = #23
 \set Staff.instrumentName = \markup { \char ##x00D7 1/4 }
 \time 1/16
 \times 2/3 {
 c'32  c'32  c'32
 }
   }
 }

 but that doesn't seem to have any effect. I have independent scores with
 different time signatures, and they must have all the same layout width.


I'm not clear on what you want here: do you mean that the stencil of a time
signature like 2/4 would be stretched horizontally so it occupies the same
space as a signature like 17/16, or do you mean that the following notes
would begin at the same position?



 where would I look up all the possible overrides for Staff.TimeSignature?


For 2.12, you can find information here:

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/TimeSignature#TimeSignature

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


Re: Constraining widths of layout objects (TimeSignature)

2013-04-04 Thread Hanns Holger Rutz
I've got it:

\context { \Score
  \override TimeSignature #'X-extent = #'(0 . 3)
}

that does it.

and I think this is the file I was looking for:

http://www.lilypond.org/doc/v2.16/Documentation/internals/grob_002dinterface

best, .h.h.


On 4 Apr 2013, at 16:29, David Nalesnik wrote:

 Hi Hanns,
 
 
 On Thu, Apr 4, 2013 at 9:14 AM, Hanns Holger Rutz cont...@sciss.de wrote:
 I'm staring at
 
 
 http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Size-of-objects#Size-of-objects
 
 (A little off-topic: this is a rather old version of LilyPond.  Current 
 stable is 2.16.2.  There have been many many improvements.)
  
 
 
 but there is no information about how to constrain the width of objects. I 
 would like to adjust the width of a time signature. I randomly tried
 
 \score {
   \new RhythmicStaff {
 \override Staff.TimeSignature #'minimum-length = #23
 \set Staff.instrumentName = \markup { \char ##x00D7 1/4 }
 \time 1/16
 \times 2/3 {
 c'32  c'32  c'32
 }
   }
 }
 
 but that doesn't seem to have any effect. I have independent scores with 
 different time signatures, and they must have all the same layout width.
 
 I'm not clear on what you want here: do you mean that the stencil of a time 
 signature like 2/4 would be stretched horizontally so it occupies the same 
 space as a signature like 17/16, or do you mean that the following notes 
 would begin at the same position?
  
 
 where would I look up all the possible overrides for Staff.TimeSignature?
 
 For 2.12, you can find information here:
  
 http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/TimeSignature#TimeSignature
 
 --David


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


custom ledger lines (was: wrong placement of timesignature (since 2.16))

2012-09-01 Thread Keith OHara
Gagi Petrovic mail at gagipetrovic.nl writes:

    \override Staff.StaffSymbol #'line-positions = #'(-4 4) 
    \override Staff.StaffSymbol #'ledger-positions = #'(0)

At first I thought Gagi wanted ledgers on notes at the center of his open staff,
and nowhere else.  Then I remembered how 'ledger-positions works.

The list of 'ledger-positions is a _pattern_, repeated as far as needed to
reach any note.  Thus #'ledger-positions = #'(0 2) gives the usual pattern
at positions ... -12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12

That means 'ledger-positions must be a list of _at_least_two_, so the code 
can tell how to space the patterns.  Given just one position, the code gives 
up and produces no ledgers.  (We can also 
  \override Staff NoteHead #'no-ledgers = ##t
if we want no ledgers at all.)

If we really _do_ want a ledger for notes on centerline, and no others, we can
  \relative c, { 
 \override Staff.StaffSymbol #'ledger-positions = #'(0 99)
 \override Staff.StaffSymbol #'line-positions = #'(-4 4) 
 c8 d e f g a b c c d e f g a b c c d e f g a b c
 c d e f g a b c c d e f g a b c }
and assume that we will never need a note as far out at position ±99.

Can anyone using custom staves comment on whether this system will work for
foreseeable real applications of custom ledgers ?

I questioned the repeating-pattern aspect in the code, thinking we could 
just write out (a finite portion of) the pattern explicitly
  #'ledger-positions = #'(-12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12)
but I did not oppose the design because contributors usually know their 
application best.
So far, the repeating-pattern aspect is not documented, so it is our little
secret.  If it will work, I can document it; if not, propose a change.


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


wrong placement of timesignature (since 2.16)

2012-08-28 Thread Gagi Petrovic
Dear ponder, first of all: thank you for the newest version!

I noticed though, that since 2.16, the placement of TimeSignature is off in
custom line-positions. I added an example to clarify this. Is this is bug
or due to some new underlying mechanic?

Thank you!
Kind regards, Gagi

\version 2.16.0

\relative c''{
\numericTimeSignature

  c2 d \time 3/4 e2. \time 4/4
\stopStaff
   \override Staff.StaffSymbol #'ledger-positions = #'(0)
   \override Staff.StaffSymbol #'line-positions = #'(-4 4)
\startStaff

  c2\rest c\rest R1 \time 3/4 c2.   c8 b a g  f g
}
attachment: timesig_new.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: wrong placement of timesignature (since 2.16)

2012-08-28 Thread Phil Holmes
- Original Message - 
From: Gagi Petrovic

To: lilypond-user@gnu.org
Sent: Tuesday, August 28, 2012 9:58 AM
Subject: wrong placement of timesignature (since 2.16)


Dear ponder, first of all: thank you for the newest version!


I noticed though, that since 2.16, the placement of TimeSignature is off in 
custom line-positions. I added an example to clarify this. Is this is bug or 
due to some new underlying mechanic?



Thank you!
Kind regards, Gagi


\version 2.16.0


\relative c''{
\numericTimeSignature


 c2 d \time 3/4 e2. \time 4/4
\stopStaff
  \override Staff.StaffSymbol #'ledger-positions = #'(0)
  \override Staff.StaffSymbol #'line-positions = #'(-4 4)
\startStaff


 c2\rest c\rest R1 \time 3/4 c2.   c8 b a g  f g
}

=

Looks like a bug and critical regression.  Bug squad, please enter this in 
the tracker.



--
Phil Holmes




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


Re: wrong placement of timesignature (since 2.16)

2012-08-28 Thread Colin Hall
On Tue, Aug 28, 2012 at 11:03:08AM +0100, Phil Holmes wrote:
 - Original Message - From: Gagi Petrovic
 To: lilypond-user@gnu.org
 Sent: Tuesday, August 28, 2012 9:58 AM
 Subject: wrong placement of timesignature (since 2.16)
 
 
 Dear ponder, first of all: thank you for the newest version!
 
 
 I noticed though, that since 2.16, the placement of TimeSignature is
 off in custom line-positions. I added an example to clarify this. Is
 this is bug or due to some new underlying mechanic?
 
 
 Thank you!
 Kind regards, Gagi

Thanks for the bug report, Gagi.

 =
 
 Looks like a bug and critical regression.  Bug squad, please enter
 this in the tracker.

Thanks, Phil. Added to the tracker:

http://code.google.com/p/lilypond/issues/detail?id=2783

Cheers,
Colin.

-- 

Colin Hall

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


Re: TimeSignature Event

2011-08-14 Thread Jan-Peter Voigt

Thank you Neil,

now I created the following time-signature engraver:
--snip--
\version 2.14.2

#(define-public orff (lambda (context)
  (let ((time-signature '())
(last-fraction #f))

   `((process-music
  . ,(lambda (trans)
  (let ((frac (ly:context-property context 
'timeSignatureFraction)))

   (if (and (null? time-signature)
(not (equal? last-fraction frac))
(pair? frac))
   (begin
 (set! time-signature 
(ly:engraver-make-grob trans 'TimeSignature '()))
 (set! (ly:grob-property 
time-signature 'fraction) frac)
 (set! (ly:grob-property 
time-signature 'stencil) ly:text-interface::print)
 (set! (ly:grob-property 
time-signature 'text)
   (markup #:translate '(0 . 2) 
#:concat (
   #:bold (format ~a  
(car frac))
   #:translate '(-2 . -2) 
#:draw-line '(3 . 3)
   #:translate '(-2 . -3.5) 
#:smaller #:smaller #:note (format ~a (cdr frac)) UP)

 ))

 (and (not last-fraction)
  (set! (ly:grob-property 
time-signature 'break-visibility)
(ly:context-property 
context 'implicitTimeSignatureVisibility)))


 (set! last-fraction frac))

(stop-translation-timestep
  . ,(lambda (trans)
  (set! time-signature '()
)))

meta = {
  \key bes \major \time 3/4 s2.*2
  \key a \minor \time 5/8 s8*5
  \key bes \major \time 3/4 s2.*2
}

mel = \relative c'' {
  a8 bes c d c d | a bes c d c d | a c d c d | ees d c bes a bes | ees 
d c bes a bes |

}

\score {
  \new StaffGroup 
\new Dynamics \with {
  \consists \orff
  \override TimeSignature #'extra-offset = #'(-1 . 0)
} { \meta }
\new Staff \with {
  \remove Time_signature_engraver
} 
  \meta
  \new Voice = mel { \mel }   % e-mail-compatible line breaks ;-)
}
--snip--

I will optimize and use overrides for this engraver - the markup is a 
first shot. If I have time and/or a need, I will look for another 
context than Dynamics.


Cheers,
Jan-Peter

Am 13.08.2011 16:31, schrieb Neil Puttock:

On 13 August 2011 10:27, Jan-Peter Voigtjp.vo...@gmx.de  wrote:


So my question is: How do I catch the right event and get the time sig probs to 
display?

There's no event* for time signatures; they're generated when certain
context properties change.

See the scheme engraver I posted here for an idea:

http://lists.gnu.org/archive/html/lilypond-user/2011-05/msg00468.html

* there is a music object (TimeSignatureMusic), but that's only used
for iteration so the relevant settings are accessible by
\displayLilyMusic

Cheers,
Neil




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


Re: TimeSignature Event

2011-08-14 Thread Neil Puttock
On 14 August 2011 08:48, Jan-Peter Voigt jp.vo...@gmx.de wrote:

 I will optimize and use overrides for this engraver - the markup is a first
 shot. If I have time and/or a need, I will look for another context than
 Dynamics.

I don't think you need a new engraver for this; overriding the stencil
should suffice since the time signature fraction is passed to
TimeSignature via the property 'fraction:

\override TimeSignature #'stencil =
#(lambda (grob)
(let ((frac (ly:grob-property grob 'fraction)))
  (grob-interpret-markup grob
   (markup #:translate '(0 . 2) #:concat (
  #:bold (format ~a  (car frac))
  #:translate '(-2 . -2)
#:draw-line '(3 . 3)
  #:translate '(-2 . -3.5)
#:smaller #:smaller #:note (format ~a (cdr frac)) UP)

Cheers,
Neil

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


Re: TimeSignature Event

2011-08-14 Thread Jan-Peter Voigt

Am 14.08.2011 um 12:52 schrieb Neil Puttock:
 I don't think you need a new engraver for this; overriding the stencil
 should suffice since the time signature fraction is passed to
 TimeSignature via the property 'fraction:
Of course, I came via the scheme-engraver-street and didn't saw the simpler 
solution for this special case.
Thanks again :-)
Well, I have a feeling, that once I will need to write my own engraver ;-)

Cheers, Jan-Peter


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


Re: TimeSignature Event

2011-08-13 Thread Neil Puttock
On 13 August 2011 10:27, Jan-Peter Voigt jp.vo...@gmx.de wrote:

 So my question is: How do I catch the right event and get the time sig probs 
 to display?

There's no event* for time signatures; they're generated when certain
context properties change.

See the scheme engraver I posted here for an idea:

http://lists.gnu.org/archive/html/lilypond-user/2011-05/msg00468.html

* there is a music object (TimeSignatureMusic), but that's only used
for iteration so the relevant settings are accessible by
\displayLilyMusic

Cheers,
Neil

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


problem with beam-groups in 5/8 timeSignature

2009-06-15 Thread Stefan Thomas
Dear community,
I have a problem with different Beam-Gruops in different 5/8-bars. The first
bar looks lke expected, the 2nd doesn't. How can I change the 2nd Bar to
proper beam-groups of 3+2 8th-notes?
Here the example:
\version 2.13.0
\layout { \context { \Staff \consists Measure_grouping_engraver } }
fuenfachteldreizwo = {
   #(set-time-signature 5 8 '(3 2))
  #(override-auto-beam-setting '(end * * 5 8) 3 8 'Score)
#(override-auto-beam-setting '(end * * 5 8) 5 8 'Score) }

fuenfachtelzwodrei = {
   #(set-time-signature 5 8 '(2 3))
  #(override-auto-beam-setting '(end * * 5 8) 2 8 'Score)
#(override-auto-beam-setting '(end * * 5 8) 5 8 'Score) }
music = \relative c'' { c8 d e f g }

\new Staff {
  \fuenfachtelzwodrei
  \music
  \fuenfachteldreizwo
  \music }
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: problem with beam-groups in 5/8 timeSignature

2009-06-15 Thread Trevor Daniels


Stefan Thomas wrote Monday, June 15, 2009 4:11 PM



Dear community,
I have a problem with different Beam-Gruops in different 5/8-bars. 
The first
bar looks lke expected, the 2nd doesn't. How can I change the 2nd 
Bar to

proper beam-groups of 3+2 8th-notes?
Here the example:
\version 2.13.0
\layout { \context { \Staff \consists 
Measure_grouping_engraver } }

fuenfachteldreizwo = {
  #(set-time-signature 5 8 '(3 2))
 #(override-auto-beam-setting '(end * * 5 8) 3 8 'Score)
#(override-auto-beam-setting '(end * * 5 8) 5 8 'Score) }

fuenfachtelzwodrei = {
  #(set-time-signature 5 8 '(2 3))
 #(override-auto-beam-setting '(end * * 5 8) 2 8 'Score)
#(override-auto-beam-setting '(end * * 5 8) 5 8 'Score) }
music = \relative c'' { c8 d e f g }

\new Staff {
 \fuenfachtelzwodrei
 \music
 \fuenfachteldreizwo
 \music }



Stefan

I've not tried this, but you will need to revert
your previous auto beam settings in each of your
two functions otherwise they will still take effect.
Use #(revert-auto-beam-setting ...) to do this.

You may find it easier to use beatGrouping rather
than the auto beam setting rules.

Trevor




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


Changing TimeSignature style from top-level?

2009-04-22 Thread Thomas Scharkowski
Hi list,

I have a number of seperate files which call a header-paper.ly file 
with common settings (e.g. line-width, #(ly:set-option 'backend 'eps) 
and so on.

Now I want to change the TimeSignature style to numeric for all these 
files.
Is it possible to do this from the included file, so that I do not 
have to paste \numericTimeSignature or \override 
Staff.TimeSignature #'style = #'() into every single file?
Something like #(ly:set-option ...) in my header-paper.ly?

Thank you,
Thomas


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


Re: Changing TimeSignature style from top-level?

2009-04-22 Thread Graham Percival
On Wed, Apr 22, 2009 at 03:29:08PM +0200, Thomas Scharkowski wrote:
 Now I want to change the TimeSignature style to numeric for all these 
 files.
 Is it possible to do this from the included file, so that I do not 
 have to paste \numericTimeSignature or \override 
 Staff.TimeSignature #'style = #'() into every single file?

Of course.  Might I suggest that you read the Learning Manual?

Cheers,
- Graham


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


Re: TimeSignature with white border?

2009-04-10 Thread Mark Polesky

Mark Polesky wrote:
 Regarding snippet candidacy, I was thinking it would be
 better to allow the padding to be modified on-the-fly, 
 but it's not a big priority.

moved to new thread:
http://lists.gnu.org/archive/html/lilypond-user/2009-04/msg00383.html



  


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


Re: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Robin Bannister

Wei-Wei Guo wrote:

I still have no idea how to input some music symbols, such as a short
piece of pure staff, timesignature, keysignature, and so on. 


Search the snippet repository for engravers. 

In particular, try out the (complete) snippet in 
http://lsr.dsi.unimi.it/LSR/Item?id=280



Cheers,
Robin


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


Re: TimeSignature with white border?

2009-04-07 Thread Trevor Daniels

Snippet?

Trevor

- Original Message - 
From: Kieren MacMillan kieren_macmil...@sympatico.ca

To: Mark Polesky markpole...@yahoo.com
Cc: lilypond-user Mailinglist lilypond-user@gnu.org
Sent: Tuesday, April 07, 2009 4:25 AM
Subject: Re: TimeSignature with white border?



Mark,


This one is a little better.


You rock -- thanks!
Kieren.


___
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: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Wei-Wei Guo

Dear Robin and all,

Thanks for your reply. I'm new to Lilypond. It cost me some time to understand
the snippet in your link. As I understand, the snippet is manipulating engraver
by restricting their appearance. It's a similar method with \remove. If my
understanding is right, I have tried the method and the result is kind of
disappointing. As I said in other email, this method will left too large white
border.

I keep on reading Lilypond's manual those days, I still cannot find a way to
input a single crotchet or quaver. I'm able be combine a note head and a flag
by \concat, but the stem is a problem. It's only one example of many symbols
that hard to input.

Could someone give any advice? Thanks in advance!

Best wishes,
Wei-Wei


Robin Bannister :

Wei-Wei Guo wrote:

I still have no idea how to input some music symbols, such as a short
piece of pure staff, timesignature, keysignature, and so on. 


Search the snippet repository for engravers.
In particular, try out the (complete) snippet in 
http://lsr.dsi.unimi.it/LSR/Item?id=280







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


Re: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Cameron Horsburgh
On Tue, Apr 07, 2009 at 09:37:40PM +0800, Wei-Wei Guo wrote:
 Dear Robin and all,

 Thanks for your reply. I'm new to Lilypond. It cost me some time to understand
 the snippet in your link. As I understand, the snippet is manipulating 
 engraver
 by restricting their appearance. It's a similar method with \remove. If my
 understanding is right, I have tried the method and the result is kind of
 disappointing. As I said in other email, this method will left too large white
 border.

 I keep on reading Lilypond's manual those days, I still cannot find a way to
 input a single crotchet or quaver. I'm able be combine a note head and a flag
 by \concat, but the stem is a problem. It's only one example of many symbols
 that hard to input.

 Could someone give any advice? Thanks in advance!


How exactly are you trying to produce your learning notes? Are you
using lilypond-book snippets? Are you using lilypond scores with lots
of text markup blocks?

If you tell us exactly what it is you're trying to do we might be able
to help more, or come up with even better ways to do your task!

-- 

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/


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


Re: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Wei-Wei Guo

The attached tar file is my example, which is in HTML format.

The example has two PNG files which are all generated by Lilypond. The first is 
a
single G clef, which is put in the normal text. The second is a piece of music
script, which has its own line. My problem is related to the first kind.

Best wishes,
Wei-Wei



Cameron Horsburgh 写道:

On Tue, Apr 07, 2009 at 09:37:40PM +0800, Wei-Wei Guo wrote:

Dear Robin and all,

Thanks for your reply. I'm new to Lilypond. It cost me some time to understand
the snippet in your link. As I understand, the snippet is manipulating engraver
by restricting their appearance. It's a similar method with \remove. If my
understanding is right, I have tried the method and the result is kind of
disappointing. As I said in other email, this method will left too large white
border.

I keep on reading Lilypond's manual those days, I still cannot find a way to
input a single crotchet or quaver. I'm able be combine a note head and a flag
by \concat, but the stem is a problem. It's only one example of many symbols
that hard to input.

Could someone give any advice? Thanks in advance!



How exactly are you trying to produce your learning notes? Are you
using lilypond-book snippets? Are you using lilypond scores with lots
of text markup blocks?

If you tell us exactly what it is you're trying to do we might be able
to help more, or come up with even better ways to do your task!



learning_notes_example.tgz
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Mats Bengtsson
You didn't really answer the question, namely exactly how you used 
LilyPond to generate the PNG files (the input file and the commands you 
used to produce the output).


Please note that lilypond-book is one option to produce HTML pages with 
embedded LilyPond code.


  /Mats

Wei-Wei Guo wrote:

The attached tar file is my example, which is in HTML format.

The example has two PNG files which are all generated by Lilypond. The 
first is a
single G clef, which is put in the normal text. The second is a piece 
of music

script, which has its own line. My problem is related to the first kind.

Best wishes,
Wei-Wei



Cameron Horsburgh 写道:

On Tue, Apr 07, 2009 at 09:37:40PM +0800, Wei-Wei Guo wrote:

Dear Robin and all,

Thanks for your reply. I'm new to Lilypond. It cost me some time to 
understand
the snippet in your link. As I understand, the snippet is 
manipulating engraver
by restricting their appearance. It's a similar method with \remove. 
If my
understanding is right, I have tried the method and the result is 
kind of
disappointing. As I said in other email, this method will left too 
large white

border.

I keep on reading Lilypond's manual those days, I still cannot find 
a way to
input a single crotchet or quaver. I'm able be combine a note head 
and a flag
by \concat, but the stem is a problem. It's only one example of many 
symbols

that hard to input.

Could someone give any advice? Thanks in advance!



How exactly are you trying to produce your learning notes? Are you
using lilypond-book snippets? Are you using lilypond scores with lots
of text markup blocks?

If you tell us exactly what it is you're trying to do we might be able
to help more, or come up with even better ways to do your task!




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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How to input keysignature or timesignature in \markup?

2009-04-07 Thread Wei-Wei Guo

Sorry for that.

I generate the PNG files by the following command:

  lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png target.ly

The command is called from other software package(Sphinx). The 'target.ly' file 
is
generated by inserting the content, for example \musicglyph #clefs.G, to the
following template.

  \paper{
indent=0\mm
line-width=120\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
bookTitleMarkup = ##f
scoreTitleMarkup = ##f
  }

  \markup \abs-fontsize #6 {
  % the content of \musicglyph #clefs.G is put here.
  }

Then the generated PNG file will be linked in the HTML file automatically.

I studied lilypond-book days ago, Since it will produce its own HTML page, I
think it is hard to implement it in my application.


Hope I made it clear this time.

Wei-Wei


Mats Bengtsson 写道:
You didn't really answer the question, namely exactly how you used 
LilyPond to generate the PNG files (the input file and the commands you 
used to produce the output).


Please note that lilypond-book is one option to produce HTML pages with 
embedded LilyPond code.



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


Re: TimeSignature with white border?

2009-04-07 Thread Kieren MacMillan

Snippet?


Definitely!
Kieren.


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


Re: TimeSignature with white border?

2009-04-07 Thread Neil Puttock
2009/4/7 Kieren MacMillan kieren_macmil...@sympatico.ca:
 Snippet?

 Definitely!
 Kieren.

This will make an excellent snippet if it's amended slightly. :)

I hope Mark didn't spend too long working out the stencil overrides,
as there's already the public function stencil-whiteout (used for the
markup command \whiteout) which will do the job in one fell swoop:

\override Staff.Clef #'stencil =
#(lambda (grob) (stencil-whiteout (ly:clef::print grob)))

\override Staff.TimeSignature #'stencil =
#(lambda (grob) (stencil-whiteout (ly:time-signature::print grob)))

Regards,
Neil


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


Re: TimeSignature with white border?

2009-04-07 Thread Kieren MacMillan

Neil,


I hope Mark didn't spend too long working out the stencil overrides,
as there's already the public function stencil-whiteout (used for the
markup command \whiteout) which will do the job in one fell swoop:

\override Staff.Clef #'stencil =
#(lambda (grob) (stencil-whiteout (ly:clef::print grob)))

\override Staff.TimeSignature #'stencil =
#(lambda (grob) (stencil-whiteout (ly:time-signature::print  
grob)))


As the kids nowadays say... OMG!   =)

Thanks,
Kieren.


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


Re: TimeSignature with white border?

2009-04-07 Thread Mark Polesky

Neil Puttock wrote: 
 I hope Mark didn't spend too long working out the 
 stencil overrides, as there's already the public 
 function stencil-whiteout (used for the markup 
 command \whiteout) which will do the job in one 
 fell swoop...

Neil,

don't worry about my time! :}

It seems my programming style is reinventing the wheel
but sometimes I think that's a good way to learn. 

By the way, one benefit of my approach is that you can
select a padding so you can whiteout extra space around
the objects, but I suspect there's a trivial solution to
that as well? If so, let us know!

Regarding snippet candidacy, I was thinking it would be
better to allow the padding to be modified on-the-fly, 
but it's not a big priority.

- Mark


  


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


Re: TimeSignature with white border?

2009-04-07 Thread Neil Puttock
2009/4/7 Mark Polesky markpole...@yahoo.com:

 Neil,

 don't worry about my time! :}

 It seems my programming style is reinventing the wheel
 but sometimes I think that's a good way to learn.

Indeed, I've done a lot of that myself. :)

 By the way, one benefit of my approach is that you can
 select a padding so you can whiteout extra space around
 the objects, but I suspect there's a trivial solution to
 that as well? If so, let us know!

That's a definite advantage; stencil-whiteout doesn't give you that
option, but it could easily be copied into a file and tweaked
slightly.

Regards,
Neil


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


Re: TimeSignature with white border?

2009-04-06 Thread Mark Polesky
This one is a little better.
- Mark



  \version 2.13.0

#(define (whiteout-clef-stil grob)
   (let* ((x-pad 0.3)
  (this-stil (ly:clef::print grob))
  (stil-x-ext (ly:stencil-extent this-stil 0))
  (stil-y-ext (ly:stencil-extent this-stil 1))
  (box-x-ext (cons (- (car stil-x-ext) x-pad)
   (+ (cdr stil-x-ext) x-pad)))
  (box-y-ext stil-y-ext)
  (box-w (- (cdr box-x-ext) (car box-x-ext)))
  (box-h (- (cdr box-y-ext) (car box-y-ext)))
  )
 (ly:grob-set-property! grob 'stencil
  (ly:stencil-add
   (ly:make-stencil
(list 'embedded-ps
 (ly:format
  (string-append gsave\n
 currentpoint translate\n
 1 setgray\n
 ~a ~a ~a ~a rectfill\n
 grestore\n)
  (car box-x-ext)
  (car box-y-ext)
  box-w
  box-h))
stil-x-ext
stil-y-ext)
   this-stil

#(define (whiteout-time-signature-stil grob)
   (let* ((x-pad 1)
  (this-stil (ly:time-signature::print grob))
  (stil-x-ext (ly:stencil-extent this-stil 0))
  (stil-y-ext (ly:stencil-extent this-stil 1))
  (box-x-ext (cons (- (car stil-x-ext) x-pad)
   (+ (cdr stil-x-ext) x-pad)))
  (box-y-ext stil-y-ext)
  (box-w (- (cdr box-x-ext) (car box-x-ext)))
  (box-h (- (cdr box-y-ext) (car box-y-ext)))
  )
 (ly:grob-set-property! grob 'stencil
  (ly:stencil-add
   (ly:make-stencil
(list 'embedded-ps
 (ly:format
  (string-append gsave\n
 currentpoint translate\n
 1 setgray\n
 ~a ~a ~a ~a rectfill\n
 grestore\n)
  (car box-x-ext)
  (car box-y-ext)
  box-w
  box-h))
stil-x-ext
stil-y-ext)
   this-stil
 
whiteoutClefs = {
  \override Slur #'layer = #-2
  \override Staff.Clef #'avoid-slur = ##f
  \override Staff.Clef #'layer = #-1
  \override Staff.Clef #'stencil = #whiteout-clef-stil
}

normalClefs = {
  \revert Slur #'layer
  \revert Staff.Clef #'avoid-slur
  \revert Staff.Clef #'layer
  \revert Staff.Clef #'stencil
}

whiteoutTimeSignatures = {
  \override Slur #'layer = #-2
  \override Tie #'layer = #-2
  \override Staff.TimeSignature #'avoid-slur = ##f
  \override Staff.TimeSignature #'layer = #-1
  \override Staff.TimeSignature #'stencil =
#whiteout-time-signature-stil
}

normalTimeSignatures = {
  \revert Slur #'layer
  \revert Tie #'layer
  \revert Staff.TimeSignature #'avoid-slur
  \revert Staff.TimeSignature #'layer
  \revert Staff.TimeSignature #'stencil
}

\markup whiteoutClefs:
{
  \whiteoutClefs
  \clef bass e2. d4(
  \clef treble c''4) c''2.
}

\markup whiteoutTimeSignatures:
{
  \whiteoutTimeSignatures
  c''2. b'4^(tie)~
  \time 3/4 b'2 f'4^(slur)(
  \time 2/4 b'2)
  
}

\markup both:
{
  \whiteoutClefs
  \whiteoutTimeSignatures
  \clef bass d2. d4(
  \clef treble \time 3/4 e'4) e'2
}attachment: white-border_01.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


How to input keysignature or timesignature in \markup?

2009-04-06 Thread Wei-Wei Guo

Dear all,


I need to input music symbols in my learning notes. Although \musicglyph helps
a lot, I still have no idea how to input some music symbols, such as a short
piece of pure staff, timesignature, keysignature, and so on. Could you give me
any suggestions?

Thanks in advance!

Best wishes,
Wei-Wei


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


Re: TimeSignature with white border?

2009-04-06 Thread Kieren MacMillan

Mark,


This one is a little better.


You rock -- thanks!
Kieren.


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


TimeSignature with white border?

2009-04-05 Thread Kieren MacMillan

Hi all,

Is there a way to have the TimeSignature stencil output with a thin  
white border?
That way, you could stack Slur, TimeSignature, and StaffSymbol grobs,  
and the Slur would look like it disappeared behind the TimeSignature.


Thanks,
Kieren.


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


Re: TimeSignature with white border?

2009-04-05 Thread Mark Polesky
 From: Kieren MacMillan
 Is there a way to have the TimeSignature stencil
 output with a thin white border? That way, you
 could stack Slur, TimeSignature, and StaffSymbol
 grobs, and the Slur would look like it
 disappeared behind the TimeSignature.


Will using markup suffice?

\version 2.13.0

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-markup #0.75 \musicglyph #accidentals.sharp

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-around #0.75 \musicglyph #accidentals.sharp

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-to-box #'(0 . 2) #'(-2 . 2)
\musicglyph #accidentals.sharp

- Mark



  attachment: white-border.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: TimeSignature with white border?

2009-04-05 Thread Kieren MacMillan

Hi Mark,


Will using markup suffice?


I've been doing something similar...
However, I'd like an automated way of outlining any #'stencil --  
maybe it's a task I can accomplish as a Frog?


Cheers,
Kieren.


\version 2.13.0

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-markup #0.75 \musicglyph #accidentals.sharp

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-around #0.75 \musicglyph #accidentals.sharp

\markup \combine
  \musicglyph #clefs.G
  \whiteout \pad-to-box #'(0 . 2) #'(-2 . 2)
\musicglyph #accidentals.sharp

- Mark



white-border.png




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


Re: TimeSignature with white border?

2009-04-05 Thread Mark Polesky
 From: Kieren MacMillan

 However, I'd like an automated way of outlining any #'stencil --  
 maybe it's a task I can accomplish as a Frog?

Kieren,

Here's something to fiddle with.
Just a start, but you could develop
it more if you're interested.

Hope it helps
- Mark


\version 2.13.0

#(define (whiteout-clef-stil grob)
  (let* ((pad 1)
 (this-stil (ly:clef::print grob))
 (stil-x-ext (ly:stencil-extent this-stil 0))
 (stil-y-ext (ly:stencil-extent this-stil 1))
 (stil-w (- (cdr stil-x-ext) (car stil-x-ext)))
 (stil-h (- (cdr stil-y-ext) (car stil-y-ext)))
 (box-x-ext (cons (- (car stil-x-ext) pad)
  (+ (cdr stil-x-ext) pad)))
 (box-y-ext (cons (- (car stil-y-ext) pad)
  (+ (cdr stil-y-ext) pad)))
 (box-w (- (cdr box-x-ext) (car box-x-ext)))
 (box-h (- (cdr box-y-ext) (car box-y-ext)))
 )
(ly:grob-set-property! grob 'stencil
 (ly:stencil-add
  (ly:make-stencil
   (list 'embedded-ps
(ly:format
 (string-append gsave\n
currentpoint translate\n
1 setgray\n
~a ~a ~a ~a rectfill\n
grestore\n)
 (car box-x-ext)
 (car box-y-ext)
 box-w
 box-h))
stil-x-ext
stil-y-ext)
  this-stil

whiteoutClef = {
  \override Slur #'layer = #-2
  \override Staff.Clef #'layer = #-1
  \override Staff.Clef #'stencil = #whiteout-clef-stil
}
normalClef = {
  \revert Slur #'layer
  \revert Staff.Clef #'layer
  \revert Staff.Clef #'stencil
}

{
  \whiteoutClef 
  \once \override Slur #'extra-offset = #'(0 . -2)
  \clef bass f,1^( \clef treble a'1)
}


  attachment: white-border-clef.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: long text in composer / invisible TimeSignature

2009-02-09 Thread Robin Bannister

Zbyněk Burget wrote:

Splitting it onto two lines is unavailing. Therefore i want way to expanding 
width of
this line.


The default layout puts poet, instrument and composer all on one line.
This is not compatible with the length of your composer text.
Even if instrument is unused, its (centred) layout is still active and this
obstructs leftward expansion of the composer text.

If you want to stay close to what the default offers, you could
move the composer field down onto its own line:
i.e.   insert } \fill-line {into bookTitleMarkup
using the technique suggested in NR 3.2.2.

Cheers,
Robin

\paper {
  bookTitleMarkup = \markup {
\override #'(baseline-skip . 3.5)
\column {
  \fill-line { \fromproperty #'header:dedication }
  \override #'(baseline-skip . 3.5)
  \column {
\huge \larger \bold
\fill-line {
  \larger \fromproperty #'header:title
}
\fill-line {
  \large \smaller \bold
  \larger \fromproperty #'header:subtitle
}
\fill-line {
  \smaller \bold
  \fromproperty #'header:subsubtitle
}
\fill-line {
   \fromproperty #'header:poet
   { \large \bold \fromproperty #'header:instrument }

}
\fill-line { 
   
   \fromproperty #'header:composer
}
\fill-line {
  \fromproperty #'header:meter
  \fromproperty #'header:arranger
}
  }
}
  }
}


\header { 
  title = title_line 
  poet = poet_line
  instrument = instrument_line
  composer = composer_line_20304050607080
  meter = meter_line
  arranger = arranger_line
}

{s1*50}
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: long text in composer / invisible TimeSignature

2009-02-09 Thread Nick Payne
Why not use \bookpart and have a separate title page with all that
information. You can format that exactly as you wish without using the
predefined fields:

%===

\version 2.12.2

date = #(strftime %d/%m/%Y (localtime (current-time)))
copywrite = #(strftime Copyright C %Y (localtime (current-time)))

#(define-markup-command (bookpart-page-number layout props) ()
(let ((first-page-number (ly:output-def-lookup layout
'first-page-number))
(page-number (chain-assoc-get 'page:page-number props 0)))
(interpret-markup layout props (format ~a (1+ (-
page-number first-page-number))

\paper {
#(set-paper-size a4)
top-margin = 1.5\cm
bottom-margin = 1.5\cm
line-width = 18\cm
%   ragged-bottom = ##f
%   ragged-last-bottom = ##f
oddHeaderMarkup = \markup \fill-line {
\on-the-fly #not-first-page \fromproperty
#'header:instrument
\on-the-fly #print-page-number-check-first
\bookpart-page-number
}
oddFooterMarkup = \markup \fill-line {
\on-the-fly #part-last-page \fromproperty
#'header:parttagline
}
evenHeaderMarkup = \markup \fill-line {
\on-the-fly #print-page-number-check-first
\bookpart-page-number
\on-the-fly #not-first-page \fromproperty
#'header:instrument
}
evenFooterMarkup = \markup \fill-line {
\on-the-fly #part-last-page \fromproperty
#'header:parttagline
}
}

\header {
title = \markup {
\lower #40 \column \center-align { 
\fontsize #4 \bold Title line
\lower #2 \fontsize #3 Poet line
\lower #4 \fontsize #2 Instrument line
\lower #5 \fontsize #-3
composer_line_203040506070_
___80
\lower #8 \fontsize #2 Meter line
\lower #8 \fontsize #2 Arranger line
}
}
tagline = ##f
}

\markup \null

\bookpart {
\header {
title = \markup Title goes here
parttagline = \markup {
\center-align
\fontsize #-3.5
{
\center-align
{
\fill-line {   Typeset by me 
\date  \copywrite  }
}
}
}
}
\score {
{s1*50}
\layout {
\context {
}
}
}
}
%===


Nick

 -Original Message-
 From: lilypond-user-bounces+nick.payne=internode.on@gnu.org
 [mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On
 Behalf Of Robin Bannister
 Sent: Monday, 9 February 2009 21:11
 To: Zbyněk Burget; Lilypond
 Subject: Re: long text in composer / invisible TimeSignature
 
 Zbyněk Burget wrote:
  Splitting it onto two lines is unavailing. Therefore i want way to
  expanding width of this line.
 
 The default layout puts poet, instrument and composer all on one line.
 This is not compatible with the length of your composer text.
 Even if instrument is unused, its (centred) layout is still active and
 this obstructs leftward expansion of the composer text.
 
 If you want to stay close to what the default offers, you could move
 the composer field down onto its own line:
 i.e.   insert } \fill-line {into bookTitleMarkup
 using the technique suggested in NR 3.2.2.
 
 Cheers,
 Robin
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date:
 02/08/09 17:57:00



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


Re: long text in composer / invisible TimeSignature

2009-02-08 Thread Robin Bannister

Zbyněk Burget wrote:


How I can write long text to composer to header?

Try
 composer = \markup \right-align  Some long text ... 

If this isn't what you want, have a look at NR 3.2.1 where
the demo splits the composer text onto two lines using \center-column.



Why don't hide TimeSignature?

I think this is because
- break-visibility is (mainly) to do with responding to line breaks,
- the start of the first line does not involve a line break.
Not very convincing? Read more in NR 5.4.6 / Using break-visibility.

So just override the stencil.
Removing the engraver may disable other things as well.

Cheers,
Robin



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


Re: long text in composer / invisible TimeSignature

2009-02-08 Thread Zbyněk Burget

Robin Bannister napsal(a):

Zbyněk Burget wrote:


How I can write long text to composer to header?

Try
 composer = \markup \right-align  Some long text ... 

If this isn't what you want, have a look at NR 3.2.1 where
the demo splits the composer text onto two lines using \center-column.


a bit of spaci is absent for my text in composer. Splitting it onto two
lines is unavailing. Therefore i want way to expanding width of this line.
BTW - if text is splitted onto two lines and simultaneously is defined
arranger, spacing between lines is wrong (at default).






Why don't hide TimeSignature?

I think this is because
- break-visibility is (mainly) to do with responding to line breaks,
- the start of the first line does not involve a line break.
Not very convincing? Read more in NR 5.4.6 / Using break-visibility.

   ^
I read it number of times, but misconcieve :-[
removing time signature engraver it was what I want

Thanks,
Zbynek



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


Re: long text in composer / invisible TimeSignature

2009-02-08 Thread Zbyněk Burget

Marek Klein napsal(a):

Hi,

\score {
 \new Staff {
   \clef treble
   \key c \major
  \override Staff.TimeSignature #'stencil = ##f
   \relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
 }
}
\score {
 \new Staff {
   \clef treble
   \key c \major
   \relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
 }
  \layout {
\context {
  \Staff
  \remove Time_signature_engraver
}
  }
}


Thanks!!! It is what I want!!!




See also:
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-big-page#Transcribing-Gregorian-chant


I read what I found, but this go unnoticed for me :-(


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


long text in composer / invisible TimeSignature

2009-02-07 Thread Zbyněk Burget

Hi,
I've two new problems.

1. How I can write long text to composer to header?
2. Why don't hide TimeSignature?

Zbynek



\version 2.12.2

\header{
  composer = Some long text. Long, long, long, long, long, long, long, 
long, long.

}

\score {
  \new Staff {
\clef treble
\key c \major
\override Staff.TimeSignature #'break-visibility = #all-invisible
\relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
  }
}


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


Re: long text in composer / invisible TimeSignature

2009-02-07 Thread Marek Klein
Hi,

Concerning time signatur I have found two possibilities:
%%
\version 2.12.1

\score {
 \new Staff {
   \clef treble
   \key c \major
   \override Staff.TimeSignature #'break-visibility = #all-invisible
   \relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
 }
}
\score {
 \new Staff {
   \clef treble
   \key c \major
  \override Staff.TimeSignature #'stencil = ##f
   \relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
 }
}
\score {
 \new Staff {
   \clef treble
   \key c \major
   \relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
 }
  \layout {
\context {
  \Staff
  \remove Time_signature_engraver
}
  }
}

See also:

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-big-page#Transcribing-Gregorian-chant



-- 
Marek Klein
http://gregoriana.sk



2009/2/7 Zbyněk Burget zbur...@burgnet.cz

 Hi,
 I've two new problems.

 1. How I can write long text to composer to header?
 2. Why don't hide TimeSignature?

 Zbynek



 \version 2.12.2

 \header{
  composer = Some long text. Long, long, long, long, long, long, long,
 long, long.
 }

 \score {
  \new Staff {
\clef treble
\key c \major
\override Staff.TimeSignature #'break-visibility = #all-invisible
\relative g'{ \cadenzaOn g4 g g g g g g g g g \bar |. }
  }
 }


 ___
 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: TimeSignature as fraction: gap between numerator and denominator - solution

2008-02-19 Thread Mats Bengtsson



Werner wrote:


(My opinion: That should be default layout.)
  

The opinion of the main LilyPond developers is to use hand-engraved
scores by the main German publishers as the inpiration when deciding on
the layout, see for example 
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Engraving#Engraving

If you can find many such examples in your music library that supports your
opinion, then you have a good basis to request such a change. Otherwise, 
I'm afraid
that you have to accept that the current layout remains the default in 
LilyPond.


As you have seen, it's possible to modify the layout as you wish and 
it's even possible to
write a few lines of Scheme code to get a solution that automatically 
can handle all

time signatures.

   /Mats


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


Re: TimeSignature as fraction: gap between numerator and denominator - solution

2008-02-19 Thread Werner
Mats Bengtsson mats.bengtsson at ee.kth.se writes:

 
 Werner wrote:
 
  (My opinion: That should be default layout.)

 The opinion of the main LilyPond developers is to use hand-engraved
 scores by the main German publishers as the inpiration when deciding on
 the layout, see for example 

http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Engraving#Engraving
 If you can find many such examples in your music library that supports your
 opinion, then you have a good basis to request such a change.

Well, I consulted some of my (only german) music books and I found, that maybe
more often the cyphers of the Time Signature merge with the third (middle) line
in the stave an with each other, but there are really many examples, that there
is a small gap between the top of the lower cypher (denominator) an the third
line and also between the top of the numerator (upper cypher) and the fifth
(upper) line in the stave. It seems, the merging appears, but isn't really what
the engraver wants...

Greetings

Werner





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


Re: TimeSignature as fraction: gap between numerator and denominator

2008-02-18 Thread Mats Bengtsson
It sounds as if you have stumbled across some font related bug. See the 
section

on Time Signature in the manual, for an example of what layout LilyPond
should give. What LilyPond version and what operating system do you use?

Werner wrote:
Hello, 


I used 4/4 instead of C via
\override Staff.TimeSignature #'style = #'()
but the cyphers were huge.
So I added
\override Staff.TimeSignature #'font-size = #-2
But while the cyphers now are smaller, the numerator-4 stands still very close
on the top of the denominator-4 without any gap, both together in the (vertical)
middle of the stave.
I would prefer both ciphers (vertically) centered in the upper and lower half of
the stave respectively (means the numerator between the third and fifth line of
the stave, the denominator between the first and third line) by default.

Is there any solution?

Greetings

Werner



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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
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: TimeSignature as fraction: gap between numerator and denominator - solution

2008-02-18 Thread Werner
Mats wrote:

 I believe the LilyPond default layout agrees well with common
 typesetting standard. However, LilyPond is a very flexible tool so
 you can get another layout if you prefer. One method is to use the
 trick described in Polymetric notation as a starting point, which
 could result in something like 
 
 \version 2.10.33

 % Markup to produce a 4/4 time signature that works with smaller
 digits. tsMarkup = \markup {
  \vcenter \override #'(baseline-skip . 2) \number {
\column { 4 4 }
  }
 }

 \relative c' {
\clef G
\key g \major
 % 4/4 statt C
   \override Staff.TimeSignature #'stencil =
  #ly:text-interface::print
   \override Staff.TimeSignature #'text = #tsMarkup
\override Staff.TimeSignature #'font-size = #-2
\time 4/4
\partial 8 d'8 | % Auftakt
 }

   /Mats

Hello Mats, 

your solution ist really great, thank you very much. 
Of course with font-size -1 (I put -2 just to show better the difference).
(My opinion: That should be default layout.)

Yours

Werner



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


TimeSignature as fraction: gap between numerator and denominator

2008-02-17 Thread Werner

Hello, 

I used 4/4 instead of C via
\override Staff.TimeSignature #'style = #'()
but the cyphers were huge.
So I added
\override Staff.TimeSignature #'font-size = #-2
But while the cyphers now are smaller, the numerator-4 stands still very close
on the top of the denominator-4 without any gap, both together in the (vertical)
middle of the stave.
I would prefer both ciphers (vertically) centered in the upper and lower half of
the stave respectively (means the numerator between the third and fifth line of
the stave, the denominator between the first and third line) by default.

Is there any solution?

Greetings

Werner



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


Re: Changing TimeSignature numerator and denominator

2006-08-25 Thread Mats Bengtsson

Actually, the order matters as well, so my solution works
if you keep the property setting after the \time command
(which internally also sets the same property in the Timing
context, among others).

  /Mats

Trevor Bača wrote:


Oops. You were basically right, Mats. Here's a bit that works:

%%% BEGIN

\version 2.9.10

\new Staff {
 \set Staff.timeSignatureFraction = #'(7 . 16)
 \time 2/4
 c'4
 c'4
}

%%% END

Thanks as always!

(Right property, different context. Has nothing to do with .9.10
versus .9.13 differences.)


On 8/24/06, Trevor Bača [EMAIL PROTECTED] wrote:


Alas ...

%%% BEGIN

\version 2.9.10

\new Staff {
  \set Timing.timeSignatureFraction = #'(7 . 16)
  \time 2/4
  c'4
  c'4
   }

%%% END

... interprets with no errors, but still prints as 2/4 ...

Perhaps because 2.9.10 ... I'll check with .13 in a bit ...


On 8/24/06, Mats Bengtsson [EMAIL PROTECTED] wrote:
 Try
   \time 2/4
   \set Timing.timeSignatureFraction = #'(7 . 16)


/Mats

 Quoting Trevor Bača [EMAIL PROTECTED]:

  Hi,
 
  Is there a way to change the printed numerator and denominator of a
  time signature?
 
  Seems like something here should do it, but all versions print as 
2/4.

 
  %%% BEGIN %%%
 
  \version 2.9.13
 
  \new Staff {
%\once \override TimeSignature #'fraction = #'(7 . 16)
%\once \override Staff.TimeSignature #'fraction = #'(7 . 16)
\once \override Score.TimeSignature #'fraction = #'(7 . 16)
\time 2/4
c'4 c'4
  }
 
  %%% END %%%
 
 
 
  --
  Trevor Bača
  [EMAIL PROTECTED]
 






--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...

Click here to call me:
http://try.click-and-connect.com/cnc/4/1753206736/







--
=
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


Changing TimeSignature numerator and denominator

2006-08-24 Thread Trevor Bača

Hi,

Is there a way to change the printed numerator and denominator of a
time signature?

Seems like something here should do it, but all versions print as 2/4.

%%% BEGIN %%%

\version 2.9.13

\new Staff {
  %\once \override TimeSignature #'fraction = #'(7 . 16)
  %\once \override Staff.TimeSignature #'fraction = #'(7 . 16)
  \once \override Score.TimeSignature #'fraction = #'(7 . 16)
  \time 2/4
  c'4 c'4
}

%%% END %%%



--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Changing TimeSignature numerator and denominator

2006-08-24 Thread Mats Bengtsson

Try
 \time 2/4
 \set Timing.timeSignatureFraction = #'(7 . 16)


  /Mats

Quoting Trevor Bača [EMAIL PROTECTED]:


Hi,

Is there a way to change the printed numerator and denominator of a
time signature?

Seems like something here should do it, but all versions print as 2/4.

%%% BEGIN %%%

\version 2.9.13

\new Staff {
  %\once \override TimeSignature #'fraction = #'(7 . 16)
  %\once \override Staff.TimeSignature #'fraction = #'(7 . 16)
  \once \override Score.TimeSignature #'fraction = #'(7 . 16)
  \time 2/4
  c'4 c'4
}

%%% END %%%



--
Trevor Bača
[EMAIL PROTECTED]







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


Re: Changing TimeSignature numerator and denominator

2006-08-24 Thread Trevor Bača

Alas ...

%%% BEGIN

\version 2.9.10

\new Staff {
 \set Timing.timeSignatureFraction = #'(7 . 16)
 \time 2/4
 c'4
 c'4
  }

%%% END

... interprets with no errors, but still prints as 2/4 ...

Perhaps because 2.9.10 ... I'll check with .13 in a bit ...


On 8/24/06, Mats Bengtsson [EMAIL PROTECTED] wrote:

Try
  \time 2/4
  \set Timing.timeSignatureFraction = #'(7 . 16)


   /Mats

Quoting Trevor Bača [EMAIL PROTECTED]:

 Hi,

 Is there a way to change the printed numerator and denominator of a
 time signature?

 Seems like something here should do it, but all versions print as 2/4.

 %%% BEGIN %%%

 \version 2.9.13

 \new Staff {
   %\once \override TimeSignature #'fraction = #'(7 . 16)
   %\once \override Staff.TimeSignature #'fraction = #'(7 . 16)
   \once \override Score.TimeSignature #'fraction = #'(7 . 16)
   \time 2/4
   c'4 c'4
 }

 %%% END %%%



 --
 Trevor Bača
 [EMAIL PROTECTED]








--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...

Click here to call me:
http://try.click-and-connect.com/cnc/4/1753206736/
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Changing TimeSignature numerator and denominator

2006-08-24 Thread Trevor Bača

Oops. You were basically right, Mats. Here's a bit that works:

%%% BEGIN

\version 2.9.10

\new Staff {
 \set Staff.timeSignatureFraction = #'(7 . 16)
 \time 2/4
 c'4
 c'4
}

%%% END

Thanks as always!

(Right property, different context. Has nothing to do with .9.10
versus .9.13 differences.)


On 8/24/06, Trevor Bača [EMAIL PROTECTED] wrote:

Alas ...

%%% BEGIN

\version 2.9.10

\new Staff {
  \set Timing.timeSignatureFraction = #'(7 . 16)
  \time 2/4
  c'4
  c'4
   }

%%% END

... interprets with no errors, but still prints as 2/4 ...

Perhaps because 2.9.10 ... I'll check with .13 in a bit ...


On 8/24/06, Mats Bengtsson [EMAIL PROTECTED] wrote:
 Try
   \time 2/4
   \set Timing.timeSignatureFraction = #'(7 . 16)


/Mats

 Quoting Trevor Bača [EMAIL PROTECTED]:

  Hi,
 
  Is there a way to change the printed numerator and denominator of a
  time signature?
 
  Seems like something here should do it, but all versions print as 2/4.
 
  %%% BEGIN %%%
 
  \version 2.9.13
 
  \new Staff {
%\once \override TimeSignature #'fraction = #'(7 . 16)
%\once \override Staff.TimeSignature #'fraction = #'(7 . 16)
\once \override Score.TimeSignature #'fraction = #'(7 . 16)
\time 2/4
c'4 c'4
  }
 
  %%% END %%%
 
 
 
  --
  Trevor Bača
  [EMAIL PROTECTED]
 






--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...

Click here to call me:
http://try.click-and-connect.com/cnc/4/1753206736/




--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...

Click here to call me:
http://try.click-and-connect.com/cnc/4/1753206736/
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: reducing space taken up by TimeSignature

2006-06-16 Thread Mats Bengtsson

One alternative is to do:
   \override TimeSignature #'X-extent = #'(0 . 0)


  /Mats

Kieren MacMillan wrote:


Hello, all --

What is the best way to reduce the space taken up by a TimeSignature?
e.g., to reduce or eliminate the space under each TS in the  
attached example


I tried setting #'space-alist [e.g. first-note, etc.], but got lots  
of errors...  =(


Thanks,
Kieren.

_

%%%  CODE SNIPPET BEGINS
\version 2.8.4

\layout
{
\context
{
\Staff
\revert TimeSignature #'stencil
\override TimeSignature #'font-size = #2
\override TimeSignature #'extra-offset = #'(0 . 7)
}
}

\relative c'
{
c4 c c c
\time 3/4 c c c
\time 3/2 c c c c c c
\time 4/4 c c c c
}
%%%  CODE SNIPPET ENDS


___
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


  1   2   >