Re: Time signature at the end of measure before jump to coda

2024-08-07 Thread Vlado Ilić
This is what i came up with

\version "2.24.4"

\relative c'' {

 f
 \tweak extra-offset #'(0 . -2)
 \rightHandFinger
 \markup{
   \parenthesize{
\fontsize #4 \compound-meter #'(6 8)
}
}
}

It's hacky but it works.

On Sun, Aug 4, 2024 at 1:43 AM Vlado Ilić  wrote:

> Thanks,
> While it does show what i want, problem is that next measures (g4 in this
> example) also takes 6/8 time. Example
>
> \version "2.24.4"
>
> music = \fixed c' {
>   f1
>   \repeat segno 2 {
> g1
> \alternative {
>   \volta 1 { \repeat unfold 4 { a2 }
>   \break
>   \key f \major
>   \time 6/8
>   \repeat unfold 9 { a4 }
>   \break
>
>   }
>   \volta 2 \volta #'() {
>   \section
>   \sectionLabel Coda
>   }
> }
>   }
>
>   \key c \major
>   \time 6/8
>   \repeat unfold 9 {a4}
>   \fine
> }
>
> \score { \music }
>
> In this example, from bar 7 there's a jump to segno in bar 2, bar 7 is in
> f major and 6/8 time but a bar 2 is in c major and 4/4 so i want to mark
> that at the end of bar 7 (key and time is shown on end of bar from coda but
> i need key and time from bar 2), also from bar 2 there is a jump to coda on
> bar 8 and because the coda is in 6/8 i want to mark that on end of bar 2,
> if i add the solution:
>
> \version "2.24.4"
>
> music = \fixed c' {
>   f1
>   \repeat segno 2 {
> g1
> \once \override Score.BreakAlignment.break-align-orders =
> ##((left-edge
> staff-ellipsis
> cue-end-clef
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> cue-clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> custos)
>   (left-edge
> staff-ellipsis
> cue-end-clef
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> cue-clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> custos)
>   (left-edge
> staff-ellipsis
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> cue-clef
> custos))
>   \once \override Staff.Parentheses.font-size = 4
>   \parenthesize \time 6/8
> \alternative {
>   \volta 1 { \repeat unfold 4 { a2 }
>   \break
>   \key f \major
>   \time 6/8
>   \repeat unfold 9 { a4 }
>   \break
>
>   }
>   \volta 2 \volta #'() {
>   \section
>   \sectionLabel Coda
>   }
> }
>   }
>
>   \key c \major
>   \time 6/8
>   \repeat unfold 9 {a4}
>   \fine
> }
>
> \score { \music }
>
>
> it breaks the measures 3 and 4, so i need to mark time signature just as
> symbol, not as real time for next measures.
>
> On Sat, Aug 3, 2024 at 8:08 PM Xavier Scheuer  wrote:
>
>> On Sat, 3 Aug 2024 at 17:17, Vlado Ilić  wrote:
>> >
>> > So i need something like in the first picture, on coda i have different
>> time signature than the one before the jump so i need to mark time change
>> just before the jump. Also related, in the second image i need to mark time
>> and key change before jumping from D.S. to the beginning of the piece. How
>> can i achieve that? Thanks
>>
>> Hello,
>>
>> For 1, use \once \override Score.BreakAlignment.break-align-orders.
>>
>> \relative c'' {
>>   \partial 8 e16 f
>>   \once \override Score.BreakAlignment.break-align-orders =
>> ##((left-edge
>> staff-ellipsis
>> cue-end-clef
>> ambitus
>> breathing-sign
>> signum-repetitionis
>> clef
>> cue-clef
>> key-cancellation
>> key-signature
>> time-signature
>> staff-bar
>> custos)
>>   (left-edge
>> staff-ellipsis
>> cue-end-clef
>> ambitus
>> breathing-sign
>> signum-repetitionis
>> clef
>> cue-clef
>> key-cancellation
>> key-signature
>> time-signature
>> staff-bar
>> custos)
>>   (left-edge
>> staff-ellipsis
>> ambitus
>> breathing-sign
>> signum-repetitionis
>> clef
>> key-cancellation
>> key-signature
>> time-signature
>> staff-bar
>> cue-clef
>> custos))
>>   \once \override Staff.Parentheses.font-size = 4
>>   \parenthesize \time 6/8
>>   g4
>> }
>>
>> Kind regards,
>> Xavier
>>
>


Re: Time signature at the end of measure before jump to coda

2024-08-03 Thread Vlado Ilić
Thanks,
While it does show what i want, problem is that next measures (g4 in this
example) also takes 6/8 time. Example

\version "2.24.4"

music = \fixed c' {
  f1
  \repeat segno 2 {
g1
\alternative {
  \volta 1 { \repeat unfold 4 { a2 }
  \break
  \key f \major
  \time 6/8
  \repeat unfold 9 { a4 }
  \break

  }
  \volta 2 \volta #'() {
  \section
  \sectionLabel Coda
  }
}
  }

  \key c \major
  \time 6/8
  \repeat unfold 9 {a4}
  \fine
}

\score { \music }

In this example, from bar 7 there's a jump to segno in bar 2, bar 7 is in f
major and 6/8 time but a bar 2 is in c major and 4/4 so i want to mark that
at the end of bar 7 (key and time is shown on end of bar from coda but i
need key and time from bar 2), also from bar 2 there is a jump to coda on
bar 8 and because the coda is in 6/8 i want to mark that on end of bar 2,
if i add the solution:

\version "2.24.4"

music = \fixed c' {
  f1
  \repeat segno 2 {
g1
\once \override Score.BreakAlignment.break-align-orders =
##((left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
ambitus
breathing-sign
signum-repetitionis
clef
key-cancellation
key-signature
time-signature
staff-bar
cue-clef
custos))
  \once \override Staff.Parentheses.font-size = 4
  \parenthesize \time 6/8
\alternative {
  \volta 1 { \repeat unfold 4 { a2 }
  \break
  \key f \major
  \time 6/8
  \repeat unfold 9 { a4 }
  \break

  }
  \volta 2 \volta #'() {
  \section
  \sectionLabel Coda
  }
}
  }

  \key c \major
  \time 6/8
  \repeat unfold 9 {a4}
  \fine
}

\score { \music }


it breaks the measures 3 and 4, so i need to mark time signature just as
symbol, not as real time for next measures.

On Sat, Aug 3, 2024 at 8:08 PM Xavier Scheuer  wrote:

> On Sat, 3 Aug 2024 at 17:17, Vlado Ilić  wrote:
> >
> > So i need something like in the first picture, on coda i have different
> time signature than the one before the jump so i need to mark time change
> just before the jump. Also related, in the second image i need to mark time
> and key change before jumping from D.S. to the beginning of the piece. How
> can i achieve that? Thanks
>
> Hello,
>
> For 1, use \once \override Score.BreakAlignment.break-align-orders.
>
> \relative c'' {
>   \partial 8 e16 f
>   \once \override Score.BreakAlignment.break-align-orders =
> ##((left-edge
> staff-ellipsis
> cue-end-clef
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> cue-clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> custos)
>   (left-edge
> staff-ellipsis
> cue-end-clef
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> cue-clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> custos)
>   (left-edge
> staff-ellipsis
> ambitus
> breathing-sign
> signum-repetitionis
> clef
> key-cancellation
> key-signature
> time-signature
> staff-bar
> cue-clef
> custos))
>   \once \override Staff.Parentheses.font-size = 4
>   \parenthesize \time 6/8
>   g4
> }
>
> Kind regards,
> Xavier
>


Re: Time signature at the end of measure before jump to coda

2024-08-03 Thread Xavier Scheuer
On Sat, 3 Aug 2024 at 17:17, Vlado Ilić  wrote:
>
> So i need something like in the first picture, on coda i have different
time signature than the one before the jump so i need to mark time change
just before the jump. Also related, in the second image i need to mark time
and key change before jumping from D.S. to the beginning of the piece. How
can i achieve that? Thanks

Hello,

For 1, use \once \override Score.BreakAlignment.break-align-orders.

\relative c'' {
  \partial 8 e16 f
  \once \override Score.BreakAlignment.break-align-orders =
##((left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
ambitus
breathing-sign
signum-repetitionis
clef
key-cancellation
key-signature
time-signature
staff-bar
cue-clef
custos))
  \once \override Staff.Parentheses.font-size = 4
  \parenthesize \time 6/8
  g4
}

Kind regards,
Xavier


Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard
The criterion for a word to be included in the Oxford English Dictionary 
is three proven printed examples. :-)


Andrew


On 5/06/2023 2:25 pm, Werner LEMBERG wrote

Understood.  However, we *need* good real-world examples that are not
bound to certain notation programs so that we have a chance to find a
generic implementation.





Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG


> It's not unusual, just not Common Era period which lilypond
> principally focuses on.

Understood.  However, we *need* good real-world examples that are not
bound to certain notation programs so that we have a chance to find a
generic implementation.

> One example has been given. Do you need more? A quorum? :-)
>
> Here's Wikipedia:
>
> https://en.wikipedia.org/wiki/Free_time_%28music%29

Excellent, thanks.  It already helps to have the right musical term.


Werner



Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard
Re that merge request, I think it's important to frame it as an open 
meter sign, not as a cancellation. As somebody pointed out, it can start 
a piece and so it is not cancelling anything previous.



Andrew





Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard

Hello All,

It's not unusual, just not Common Era period which lilypond principally 
focuses on.


It is not a _cancellation_ or a crossing out. It's as designator of open 
meter. Dorico enables it because people use it and request it, not 
because the Dorico team read it in Gould. Dorico targets a broader 
spectrum than CE period, in particular film scoring and so on.


One example has been given. Do you need more? A quorum? :-)

Here's Wikipedia:

https://en.wikipedia.org/wiki/Free_time_%28music%29

Adding this open meter indication to lilypond would do no harm, surely? 
As with Dorico, don't make it mandatory for open meter, just available 
if required.


Andrew


On 4/06/2023 11:50 pm, Werner LEMBERG wrote:

Thanks, but ideally we would like to see a real-world example that
predates recent notation programs – they probably all try to implement
the stuff from Gould's book...





Re: Time signature cancellation

2023-06-04 Thread Flaming Hakama by Elaine
>
> -- Forwarded message --
> From: Mark Knoop 
> To: lilypond-user@gnu.org
> Cc:
> Bcc:
> Date: Sun, 04 Jun 2023 16:33:41 +0100
> Subject: Re: Time signature cancellation
>
> At 14:59 on 04 Jun 2023, Damian leGassick wrote:
> > you just want a recent real-world example? Birtwistle: Harrison’s
> > Clocks.
>
> See bar 1 here: https://www.youtube.com/watch?v=ufDaECmsXNw
>
>
Being the first bar of a piece, this is not an example of a cancellation
signature, as there is no prior signature to cancel.

In terms of the feature, I agree that adding it probably does little harm.

The biggest issue would likely be that, because it is supported, someone
will decide to use it, assuming that musicians would know what it means.


Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG

> you just want a recent real-world example? Birtwistle: Harrison’s
> Clocks.

Thanks!


Werner


Re: Time signature cancellation

2023-06-04 Thread Mark Knoop


At 14:59 on 04 Jun 2023, Damian leGassick wrote:
> you just want a recent real-world example? Birtwistle: Harrison’s
> Clocks.

See bar 1 here: https://www.youtube.com/watch?v=ufDaECmsXNw

I see this usage occasionally, but not sure that I'd quite call it a
standard. It is however fairly clear, and so long as any LilyPond
implementation is able to be overridden (by the usual methods) I see no
harm in adding it.

>> On 4 Jun 2023, at 14:51, Werner LEMBERG  wrote:
 Has anyone here ever used or seen the X-shaped time-signature
 cancellation sign pictured at [1], or anything similar?
>>>
>>> It's one standard for open meter.
>>>
>>> Here's the Dorico manual info: [...]
>>
>> Thanks, but ideally we would like to see a real-world example that
>> predates recent notation programs – they probably all try to implement
>> the stuff from Gould's book...
>>
>>
>>Werner
--
Mark Knoop



Re: Time signature cancellation

2023-06-04 Thread Damian leGassick
you just want a recent real-world example? Birtwistle: Harrison’s Clocks.

D

> On 4 Jun 2023, at 14:51, Werner LEMBERG  wrote:
> 
> 
>> 
>>> Has anyone here ever used or seen the X-shaped time-signature
>>> cancellation sign pictured at [1], or anything similar?
>> 
>> It's one standard for open meter.
>> 
>> Here's the Dorico manual info: [...]
> 
> Thanks, but ideally we would like to see a real-world example that
> predates recent notation programs – they probably all try to implement
> the stuff from Gould's book...
> 
> 
>Werner



Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG
>> Has anyone here ever used or seen the X-shaped time-signature
>> cancellation sign pictured at [1], or anything similar?
>
> It's one standard for open meter.
>
> Here's the Dorico manual info: [...]

Thanks, but ideally we would like to see a real-world example that
predates recent notation programs – they probably all try to implement
the stuff from Gould's book...


Werner


Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard

It's one standard for open meter.

Here's the Dorico manual info:

Andrew


On 4/06/2023 10:49 pm, Dan Eble wrote:

Has anyone here ever used or seen the X-shaped time-signature cancellation sign 
pictured at [1], or anything similar?


Thanks,
--
Dan

[1]https://gitlab.com/lilypond/lilypond/-/merge_requests/2029



Re: Time signature guide

2022-03-22 Thread Leo Correia de Verdier
I hadn’t seen David’s reply until after I posted, otherwise I wouldn't have 
basically repeated his answer.
A disadvantage of the << … \\ … >> syntax in this case is that it applies 
\voiceTwo to \melody (it has all its stems turned down, for instance). While 
you can reset that with \oneVoice I prefer just placing them in parallell in 
the same explicitly initiated Staff, as I did.

> 22 mars 2022 kl. 10:27 skrev Rip _Mus :
> 
> Thank you so much,
> you offered two similar and valid solutions!
> 
> Regards
> 
> 
> 
> Il giorno lun 21 mar 2022 alle ore 10:19 Leo Correia de Verdier 
>  ha scritto:
> I’m not sure I understood your question right, but I think the usual way to 
> do it would be to write the ”global” variable as a sequence of tempos, time 
> signatures and other events separated by spacers or skips. 
> 
> Something like:
> 
> %%
> 
> \version "2.23.6"
> 
> global = { \time 4/4 \tempo "Allegro" 4 = 144 
>s1
>\time 3/8 \tempo "Adagio" 8 = 76 
>s4.
>\time 5/8 \tempo "" 8 = 92 
>s8*5
>\time 3/2 \tempo "Vivo" 2 = 152 
>s1.
>\bar "|."
> }
> 
> part = { c'1 | d'4. | e'4~ 4. | a'1. }
> 
> \new Staff << \global \part >>
> 
> \layout { ragged-right = ##f }
> 
> %%
> 
> > 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> > 
> > Good morning,
> > I would need advice.
> > In a score with many time signature changes (where I therefore cannot use a 
> > stable global variable of tempo and time signature), there is a way to set 
> > a "guide" in which to set the various time signature changes, without " 
> > dirty "the instrumental variables?
> > Perhaps there is some suitable context for this? Or other strategies?
> > 
> > Thank you very much
> > 
> > Rip_mus
> 




Re: Time signature guide

2022-03-22 Thread Rip _Mus
Thank you so much,
you offered two similar and valid solutions!

Regards



Il giorno lun 21 mar 2022 alle ore 10:19 Leo Correia de Verdier <
leo.correia.de.verd...@gmail.com> ha scritto:

> I’m not sure I understood your question right, but I think the usual way
> to do it would be to write the ”global” variable as a sequence of tempos,
> time signatures and other events separated by spacers or skips.
>
> Something like:
>
> %%
>
> \version "2.23.6"
>
> global = { \time 4/4 \tempo "Allegro" 4 = 144
>s1
>\time 3/8 \tempo "Adagio" 8 = 76
>s4.
>\time 5/8 \tempo "" 8 = 92
>s8*5
>\time 3/2 \tempo "Vivo" 2 = 152
>s1.
>\bar "|."
> }
>
> part = { c'1 | d'4. | e'4~ 4. | a'1. }
>
> \new Staff << \global \part >>
>
> \layout { ragged-right = ##f }
>
> %%
>
> > 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> >
> > Good morning,
> > I would need advice.
> > In a score with many time signature changes (where I therefore cannot
> use a stable global variable of tempo and time signature), there is a way
> to set a "guide" in which to set the various time signature changes,
> without " dirty "the instrumental variables?
> > Perhaps there is some suitable context for this? Or other strategies?
> >
> > Thank you very much
> >
> > Rip_mus
>
>


Re: Time signature guide

2022-03-21 Thread Leo Correia de Verdier
I’m not sure I understood your question right, but I think the usual way to do 
it would be to write the ”global” variable as a sequence of tempos, time 
signatures and other events separated by spacers or skips. 

Something like:

%%

\version "2.23.6"

global = { \time 4/4 \tempo "Allegro" 4 = 144 
   s1
   \time 3/8 \tempo "Adagio" 8 = 76 
   s4.
   \time 5/8 \tempo "" 8 = 92 
   s8*5
   \time 3/2 \tempo "Vivo" 2 = 152 
   s1.
   \bar "|."
}
   
part = { c'1 | d'4. | e'4~ 4. | a'1. }

\new Staff << \global \part >>

\layout { ragged-right = ##f }

%%

> 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> 
> Good morning,
> I would need advice.
> In a score with many time signature changes (where I therefore cannot use a 
> stable global variable of tempo and time signature), there is a way to set a 
> "guide" in which to set the various time signature changes, without " dirty 
> "the instrumental variables?
> Perhaps there is some suitable context for this? Or other strategies?
> 
> Thank you very much
> 
> Rip_mus




Re: Time signature guide

2022-03-21 Thread bobr...@centrum.is



- Original Message -
> From: "Rip _Mus" 
> To: "Lillypond Users Mailing List" 
> Sent: Monday, March 21, 2022 8:51:16 AM
> Subject: Time signature guide

> Good morning,
> I would need advice.
> In a score with many time signature changes (where I therefore cannot use a
> stable global variable of tempo and time signature), there is a way to set
> a "guide" in which to set the various time signature changes, without "
> dirty "the instrumental variables?
> Perhaps there is some suitable context for this? Or other strategies?
> 
> Thank you very much
> 
> Rip_mus


Sure,

I've done this sort of thing to cope with frequent time changes:

%

\version "2.22.0"

global = {
  \time 4/4
  s1
  \time 7/8
  s8*7
  \time 15/16
  s16*15
}

melody = \relative c' {
  c4 d e f
  g8 a b c b a g
  f4 e d c8.
}

\score{
  <<
{\global}
  \\ 
   {\melody}
  >>
}

%



Re: time signature and grace note

2020-11-25 Thread Leo Correia de Verdier
This is a hard-solved issue we have lived with for long time, ant probably the 
most common source of questions on this list.

While Andrew’s solution is perfect in this situation, where the time signatures 
in the second voice are redundant, it may not work everywhere. The solution 
would then be to insert spacers of the same length than the grace notes in the 
other voices, like:

\version "2.20.0"
melody = \relative c'' {
  <<
{\time 4/4 \grace c8 c4 d4 f2
 \time 2/4 \grace c8 c4 d4}
\\
{\time 4/4 \grace s8 a,4 b c2
 \time 2/4 \grace s8 a4 b}
  >>
}
\score {\melody}

This is because ”grace time” is counted backward from its regular note value, 
so in your example the time signature in voice one appears in beat 0 - 1/8 
grace, that is before the grace note, while in voice two it is at beat 0 
(without any grace timing), that is after the grace note. Inserting the spacer 
\grace s8 moves the time signature in voice two back before the grace note.

> 25 nov. 2020 kl. 09:03 skrev Andrew Bernard :
> 
> Some would say you would be better writing this:
> melody = \relative c'' {
> 
>  \new Staff <<
>{
>  \voiceOne
>  \time 4/4
>  \grace {c8} c4 d4 f2
>  \time 2/4
>  \grace {c8} c4 d4
>}
>\new Voice
>{
>  \voiceTwo
>  a,4 b c2
>  a4 b
>}
>>> 
> }
> \score {\melody}
> 




Re: time signature and grace note

2020-11-25 Thread Andrew Bernard
Some would say you would be better writing this:
melody = \relative c'' {

  \new Staff <<
{
  \voiceOne
  \time 4/4
  \grace {c8} c4 d4 f2
  \time 2/4
  \grace {c8} c4 d4
}
\new Voice
{
  \voiceTwo
  a,4 b c2
  a4 b
}
  >>
}
\score {\melody}



Re: time signature and grace note

2020-11-25 Thread Andrew Bernard
Why don't you try something like this:

melody = \relative c'' {
  <<
{
  \time 4/4
  \grace {c8} c4 d4 f2
  \time 2/4
  \grace {c8} c4 d4
}
\\
{
  a,4 b c2
  a4 b
}
  >>
}
\score {\melody}



Re: Time signature ID and implementation

2020-10-08 Thread Graham King
On musicological grounds: certainly C2.  In this period, cut-C and C2 were, in 
practice, equivalent despite the latter implying "modus cum tempore."  Please 
don't ask me about _that_, because I'm at the limit of my understanding!
References for this would include:
Apel: The Notation of Polyphonic Music 900-1600, and
DeFord: Tactus, Mensuration and Rhythm in Renaissance Music

On paleographical grounds: certainly C2.  That's what the arabic numeral "2" 
looked like!  Compare with innumerable other manuscripts of this period.
Reference: Capelli: The elements of abbreviation in medieval Latin paleography, 
translated by Heimann and Kay, at pp.19 and 29.

If you're doing a lot of transcription of renaissance music, I strongly 
recommend equipping yourself with these sources.  DeFord is available for a 
modest price as an e-book.  The others are freely available online.  Capelli is 
invaluable for figuring out the impenetrable system of abbreviations ("sigla") 
used by scribes in underlay.

HTH
-- Graham

> On 8 Oct 2020, at 05:35, Adam Griggs  wrote:
> 
> Hello again lilypond-user,
> 
> Looking for some advice.
> 
> I started with this MS:
> http://www.bl.uk/manuscripts/Viewer.aspx?ref=royal_ms_8_g_vii_fs001r
> 
> Find attached a montage of the time signatures of the four parts.
> 
> That looks like 'C2' to me. Anyone concur?




Re: Time signature ID and implementation

2020-10-08 Thread Andrew Bernard

Wow. Fantastic. Thank you! A treasure.


Andrew

On 8/10/2020 5:58 pm, Brett Duncan wrote:
It could well be a 2, looking at this: 
https://artscimedia.case.edu/wp-content/uploads/sites/135/2020/04/20164113/NotationManual.pdf.






Re: Time signature ID and implementation

2020-10-08 Thread Adam Griggs

—/contratenor/

Until I find a matching font, this will do.

Thanks again!


On 8/10/20 3:24 pm, Aaron Hill wrote:

On 2020-10-07 11:07 pm, Andrew Bernard wrote:

I dont think it's a 2. Looks more like some kind of symbol. I am not a
scholar of that period.


Not a scholar either, but a quick web search turned up this [1].

[1]: 
https://en.wikisource.org/wiki/A_Dictionary_of_Music_and_Musicians/Proportion


C2 seems to be "Lesser Mode Imperfect, with Imperfect Time".



I would suggest using "timesig.C44" as it stylistically matches the 
number two from Emmentaler.  Otherwise, use a two from some other font 
to match mensural C.


To match the alignment, you need to use \vcenter.  Consider:


\override Score.TimeSignature.stencil =
#(lambda (grob)
  (grob-interpret-markup grob #{
    \markup {
  \musicglyph "timesig.C44"
  \vcenter \number 2
    } #}))



-- Aaron Hill





Re: Time signature ID and implementation

2020-10-08 Thread Brett Duncan
It could well be a 2, looking at this: 
https://artscimedia.case.edu/wp-content/uploads/sites/135/2020/04/20164113/NotationManual.pdf.


On 8/10/20 5:24 pm, Aaron Hill wrote:

On 2020-10-07 11:07 pm, Andrew Bernard wrote:

I dont think it's a 2. Looks more like some kind of symbol. I am not a
scholar of that period.


Not a scholar either, but a quick web search turned up this [1].

[1]: 
https://en.wikisource.org/wiki/A_Dictionary_of_Music_and_Musicians/Proportion


C2 seems to be "Lesser Mode Imperfect, with Imperfect Time".



I would suggest using "timesig.C44" as it stylistically matches the 
number two from Emmentaler.  Otherwise, use a two from some other font 
to match mensural C.


To match the alignment, you need to use \vcenter.  Consider:


\override Score.TimeSignature.stencil =
#(lambda (grob)
  (grob-interpret-markup grob #{
    \markup {
  \musicglyph "timesig.C44"
  \vcenter \number 2
    } #}))



-- Aaron Hill





Re: Time signature ID and implementation

2020-10-08 Thread Adam Griggs

How is it that I didn't know about that resource?

Thanks a lot!

Side note: That image I posted earlier should of course say 
/countertenor/, not /cantus/. Ooops.



On 8/10/20 3:24 pm, Aaron Hill wrote:

On 2020-10-07 11:07 pm, Andrew Bernard wrote:

I dont think it's a 2. Looks more like some kind of symbol. I am not a
scholar of that period.


Not a scholar either, but a quick web search turned up this [1].

[1]: 
https://en.wikisource.org/wiki/A_Dictionary_of_Music_and_Musicians/Proportion


C2 seems to be "Lesser Mode Imperfect, with Imperfect Time".



I would suggest using "timesig.C44" as it stylistically matches the 
number two from Emmentaler.  Otherwise, use a two from some other font 
to match mensural C.


To match the alignment, you need to use \vcenter.  Consider:


\override Score.TimeSignature.stencil =
#(lambda (grob)
  (grob-interpret-markup grob #{
    \markup {
  \musicglyph "timesig.C44"
  \vcenter \number 2
    } #}))



-- Aaron Hill





Re: Time signature ID and implementation

2020-10-07 Thread Aaron Hill

On 2020-10-07 11:07 pm, Andrew Bernard wrote:

I dont think it's a 2. Looks more like some kind of symbol. I am not a
scholar of that period.


Not a scholar either, but a quick web search turned up this [1].

[1]: 
https://en.wikisource.org/wiki/A_Dictionary_of_Music_and_Musicians/Proportion


C2 seems to be "Lesser Mode Imperfect, with Imperfect Time".



I would suggest using "timesig.C44" as it stylistically matches the 
number two from Emmentaler.  Otherwise, use a two from some other font 
to match mensural C.


To match the alignment, you need to use \vcenter.  Consider:


\override Score.TimeSignature.stencil =
#(lambda (grob)
  (grob-interpret-markup grob #{
\markup {
  \musicglyph "timesig.C44"
  \vcenter \number 2
} #}))



-- Aaron Hill



Re: Time signature ID and implementation

2020-10-07 Thread Andrew Bernard
I dont think it's a 2. Looks more like some kind of symbol. I am not a
scholar of that period.

Andrew



Re: replace-stencil and overlay-stencil (was: Re: time signature 4 / \breve ?)

2019-10-16 Thread Pierre Perol-Schneider
Thank you for this Aaron!
Cheers,
Pierre

Le jeu. 17 oct. 2019 à 06:42, Aaron Hill  a
écrit :

> On 2019-10-16 7:00 pm, Graham King wrote:
> > \version "2.19.82"
> > {
> >   \once \override Staff.TimeSignature #'stencil =
> > #(lambda (grob)
> >   (grob-interpret-markup
> >grob
> >#{ \markup
> >   \override #'(baseline-skip . 1)
> >   \center-column {
> > \musicglyph "four"
> > \musicglyph "noteheads.sM1" } #}))
> >   \time 8/1
> >   c'\breve c' c' c'
> > }
>
> If you find yourself doing this type of stencil \override on a regular
> basis, you could wrap it up in a more general-purpose helper similar to
> the following:
>
> 
> \version "2.19.83"
>
> replace-stencil = #(define-music-function (grob text) (grob-list?
> markup?)
>(define (stencil grob) (grob-interpret-markup grob text))
>#{ \override $grob . stencil = $stencil #})
>
> {
>\once \replace-stencil Staff.TimeSignature
>  \markup \override #'(baseline-skip . 1)
>\center-column { \musicglyph "four" \musicglyph "noteheads.sM1" }
>\time 8/1 c'\breve c' c' c'
> }
> 
>
> Putting together the function above got me thinking about and working on
> a version that overlays \markup on an existing stencil instead of
> replacing it:
>
> 
> \version "2.19.83"
>
> overlay-stencil = #(define-music-function (grob align text)
>(grob-list? (number-pair? '(0 . 0)) markup?)
>(define stencil (grob-transformer 'stencil (lambda (grob orig)
>  (let ((x (interval-index (ly:stencil-extent orig X) (car align)))
>(y (interval-index (ly:stencil-extent orig Y) (cdr align)))
>(new (grob-interpret-markup grob text)))
>(ly:stencil-add orig (ly:stencil-translate new (cons x y)))
>#{ \override $grob . stencil = $stencil #})
>
> red-x = \markup \with-dimensions-from \null
>\vcenter \center-align \with-color #red "X"
>
> {
>\overlay-stencil Staff.Clef #'(-1 . 1) "Clef"
>b'8 c''
>\temporary \overlay-stencil NoteHead \red-x
>g' a'
>\revert NoteHead.stencil
>b'2
> }
> 
>
> Not sure how useful these would be in practice, but the resulting syntax
> might be preferable for some folks.
>
>
> -- Aaron Hill___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: time signature 4 / \breve ?

2019-10-16 Thread Paul Scott
Graham,

Thank you very much for both your solutions!

Paul

On Oct 16, 2019, at 7:00 PM, Graham King  wrote:

> Another way (slightly different result):
> 
> \version "2.19.82"
> 
> { 
>  \once \override Staff.TimeSignature #'stencil =
>#(lambda (grob)
>  (grob-interpret-markup
>   grob
>   #{ \markup
>  \override #'(baseline-skip . 1) 
>  \center-column {
>\musicglyph "four"
>\musicglyph "noteheads.sM1" } #}))
>  \time 8/1
>  c'\breve c' c' c'
> }
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



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


Re: time signature 4 / \breve ?

2019-10-16 Thread Paul Scott

On Oct 16, 2019, at 6:14 PM, Ben  wrote:

Ben,

Thank you very much!

Paul

> On 10/16/2019 8:59 PM, Paul Scott wrote:
>> Is it possible to write a time signature 4 / \breve ?
>> 
>> This occurs in Carmina Burana.
>> 
>> Thank you for any ideas,
>> 
>> Paul
>> 
> Hi Paul,
> 
> Does this help get you close to what you're looking for?
> 

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


replace-stencil and overlay-stencil (was: Re: time signature 4 / \breve ?)

2019-10-16 Thread Aaron Hill

On 2019-10-16 7:00 pm, Graham King wrote:

\version "2.19.82"
{
  \once \override Staff.TimeSignature #'stencil =
#(lambda (grob)
  (grob-interpret-markup
   grob
   #{ \markup
  \override #'(baseline-skip . 1)
  \center-column {
\musicglyph "four"
\musicglyph "noteheads.sM1" } #}))
  \time 8/1
  c'\breve c' c' c'
}


If you find yourself doing this type of stencil \override on a regular 
basis, you could wrap it up in a more general-purpose helper similar to 
the following:



\version "2.19.83"

replace-stencil = #(define-music-function (grob text) (grob-list? 
markup?)

  (define (stencil grob) (grob-interpret-markup grob text))
  #{ \override $grob . stencil = $stencil #})

{
  \once \replace-stencil Staff.TimeSignature
\markup \override #'(baseline-skip . 1)
  \center-column { \musicglyph "four" \musicglyph "noteheads.sM1" }
  \time 8/1 c'\breve c' c' c'
}


Putting together the function above got me thinking about and working on 
a version that overlays \markup on an existing stencil instead of 
replacing it:



\version "2.19.83"

overlay-stencil = #(define-music-function (grob align text)
  (grob-list? (number-pair? '(0 . 0)) markup?)
  (define stencil (grob-transformer 'stencil (lambda (grob orig)
(let ((x (interval-index (ly:stencil-extent orig X) (car align)))
  (y (interval-index (ly:stencil-extent orig Y) (cdr align)))
  (new (grob-interpret-markup grob text)))
  (ly:stencil-add orig (ly:stencil-translate new (cons x y)))
  #{ \override $grob . stencil = $stencil #})

red-x = \markup \with-dimensions-from \null
  \vcenter \center-align \with-color #red "X"

{
  \overlay-stencil Staff.Clef #'(-1 . 1) "Clef"
  b'8 c''
  \temporary \overlay-stencil NoteHead \red-x
  g' a'
  \revert NoteHead.stencil
  b'2
}


Not sure how useful these would be in practice, but the resulting syntax 
might be preferable for some folks.



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


Re: time signature 4 / \breve ?

2019-10-16 Thread Graham King
Another way (slightly different result):

\version "2.19.82"

{ 
  \once \override Staff.TimeSignature #'stencil =
#(lambda (grob)
  (grob-interpret-markup
   grob
   #{ \markup
  \override #'(baseline-skip . 1) 
  \center-column {
\musicglyph "four"
\musicglyph "noteheads.sM1" } #}))
  \time 8/1
  c'\breve c' c' c'
}

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


Re: time signature 4 / \breve ?

2019-10-16 Thread Graham King
\version "2.19.82"

tsMarkup = \markup {
  \override #'(baseline-skip . 0.5)
  \column { \number 4 \note #"breve" #0 }
}

{
  \override Staff.TimeSignature.style = #'default
  \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob tsMarkup))

  \time 8/1
  c'\breve c' c' c'
}

HTH
-- Graham


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


Re: time signature 4 / \breve ?

2019-10-16 Thread Ben

On 10/16/2019 8:59 PM, Paul Scott wrote:

Is it possible to write a time signature 4 / \breve ?

This occurs in Carmina Burana.

Thank you for any ideas,

Paul


Hi Paul,

Does this help get you close to what you're looking for?

(see attached)

%%%

\version "2.19.83"

#(use-modules (ice-9 regex))

my-format-procedure =
#(define-scheme-function (parser location args)(pair?)
   #{
 \markup
 \concat {
   \number $(car args)
   \raise #-0.9 \huge "/"
   \small
   \override #'(style . default)
   \note $(cdr args) #DOWN
 }
   #})

%% alternative:
%{
my-format-procedure =
#(define-scheme-function (parser location args)(pair?)
#{
\markup
\override #'(baseline-skip . 0.5)
\column {
\number $(car args)
\override #'(style . default)
\note $(cdr args) #DOWN
}
#})
%}
#(define ((format-time-sig-with-note frac trim?) grob)
   (let* ((num (if (pair? frac) (car frac) 4))
  (den (if (pair? frac) (cdr frac) 4))
  (args
   (cond ((string? den)
  (cons (number->string num)
    den))
 ((and (integer? (/ num 3))
   (integer? (/ den 2)))
  (cons (number->string (if trim? (/ num 3) num))
    (if trim?
    (string-append (number->string (/ den 2)) ".")
    (number->string den
 ((and (integer? (/ num 2))
   (integer? (/ den 2)))
  (cons (number->string (if trim? (/ num 2) num))
    (number->string (if trim? (/ den 2) den
 (else
  (cons (number->string num)
    (number->string den))
 (grob-interpret-markup grob #{ \my-format-procedure $args #})))

time =
#(define-music-function (parser location trm vals)((boolean? #t) pair?)

   ;; c/p from define-makups.scm
   (define log2
 (let ((divisor (log 2)))
   (lambda (z) (inexact->exact (/ (log z) divisor)

   ;; c/p from define-makups.scm
   (define (parse-simple-duration duration-string)
 "Parse the `duration-string', eg ''4..'' or ''breve.'',
and return a (log dots) list."
 (let ((match (regexp-exec (make-regexp 
"(breve|longa|maxima|[0-9]+)(\\.*)")

    duration-string)))
   (if (and match (string=? duration-string (match:substring match 0)))
   (let ((len (match:substring match 1))
 (dots (match:substring match 2)))
 (list (cond ((string=? len "breve") -1)
 ((string=? len "longa") -2)
 ((string=? len "maxima") -3)
 (else (log2 (string->number len
   (if dots (string-length dots) 0)))
   (ly:error (_ "not a valid duration string: ~a") 
duration-string


   (let* ((den (cdr vals))
  (num (car vals)))
 (if (string? den)
 (let* ((parsed (parse-simple-duration den)))
   ;; TODO lazy bump ...
   (cond ((and (= -1 (car parsed)) (zero? (cadr parsed)))
  (set! den 1)
  (set! num (* 2 num)))
 ((and (= -1 (car parsed)) (= 1 (cadr parsed)))
  (set! den 1)
  (set! num (* 3 num)))
 ((and (= -2 (car parsed)) (zero? (cadr parsed)))
  (set! den 1)
  (set! num (* 4 num)))
 ((and (= -2 (car parsed)) (= 1 (cadr parsed)))
  (set! den 1)
  (set! num (* 6 num)))
 (else (ly:error "not smart enough to handle ~a" den)

 #{
   \temporary \override Staff.TimeSignature.stencil =
   #(format-time-sig-with-note vals trm)
   $(make-music
 'TimeSignatureMusic
 'beat-structure '()
 'denominator den
 'numerator num)
 #}))

\relative c' {

  \override Staff.TimeSignature.Y-offset = 5

  \time 9/4
  \repeat unfold 9 c4

  \time 3/4
  \repeat unfold 3 c4

  \time ##f 3/4
  \repeat unfold 3 c4

  \time 7/4
  \repeat unfold 7 c4

  \time 12/2
  \repeat unfold 4 c1.

  \time #'(3 . "breve.")
  \repeat unfold 3 c\breve.


  \time #'(3 . "longa")
  \repeat unfold 3 c\longa

  \time #'(4 . "longa.")
  \repeat unfold 4 c\longa.

  \time #(cons 4 "breve")
  \clef bass
  f\breve-> c-> d-> c->

  \bar"|."
}

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


Re: Time signature change in first alternative causes different behavior depending on number of staves

2019-07-26 Thread Palmer Ralph
On Mon, Jul 22, 2019 at 3:12 PM Jörn Eichler  wrote:
>
> Hi to everybody,
>
> this is my first post to this list. I experienced a problem in v2.19.83
> when I tried to produce orchestral parts from a score. Since I couldn't
> find it on the issue tracker, I hope it's OK to post here:
>
> \score {
><<
>\new Staff {\relative c {\repeat volta 2 {\time 2/4 R2 |}
> \alternative {{\time 3/4  R2. |} {r4 r r |
>\new Staff {\relative c {\repeat volta 2 {\time 2/4 R2 |}
> \alternative {{\time 3/4  R2. |} {r4 r r |
>>> }
>
> Both staves are the same and the time signature change in the first
> alternative (to 3/4) is kept for the second alternative (the bar with 3
> quarter rests).
>
> However, if you comment out one of the staves, v2.19.83 gives an error
> and silently continues with 2/4 in the second alternative (which gives
> one bar with 2 quarter rests and another bar with one rest), while
> v2.18.2 still keeps the change to 3/4. So v2.19.83 behaves differently
> when there's only one staff.
>

I believe this should have gone to the user list as well so I'm
forwarding it there.

I see two issues here. The first is the inconsistent behavior. It
looks to me like the default behavior for a single was intentionally
changed for v2.19.83. However, the default behavior for multiple
staves remains unchanged.

The second issue is which behavior is "correct" and/or should be the
default. In my opinion, the default behavior for multiple staves
should have been changed as well, and the new time signature should be
announced in the second alternative as well as the first.

All the best,

Ralph


Ralph Palmer
palmer.r.vio...@gmail.com
Brattleboro, VT 05301
U.S.A.

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


Re: Time signature and beat markers

2018-11-07 Thread Mark Knoop
At 21:16 on 06 Nov 2018, Andrew Bernard wrote:
>Answering my own question, this simple approach works:
>
>  \time 5/4
>  \set Timing.measureLength = #(ly:make-moment 1/4)
>
>I'm happy to make the thincker barlines manually, unless anybody has
>some clever special engraver ideas.

Try something like this:

\version "2.19.21"

barSigs = #(define-music-function
  (numbars timesig)
  (number? fraction?)
  (_i "make empty bars")
  (let* ((tsnumerator (car timesig))
 (tsdenominator (cdr timesig))
 (dotbeats (- tsnumerator 1)))
#{
\time #timesig
\repeat unfold #numbars {
  \repeat unfold #dotbeats { s4 \bar "|" }
  s4 \bar "."
}
#}))

{
  <<
{ % this is your global variable
  \barSigs 3 5/4 % 3 bars of 5/4
  \barSigs 1 3/4 % 1 bar of 3/4
}
{ % this is your music
  \repeat unfold 18 c'4
}
  >>
}

-- 
Mark Knoop

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


Re: Time signature and beat markers

2018-11-06 Thread Karim Haddad
Dear Andrew,


I would do this like that :


\version "2.19.82"  
  

  
music = {   
  
  \scaleDurations 5/1 { 
  
  \time 5/4 
  
  \set Staff.timeSignatureFraction = #'(5 . 4)  
  
c'4 c'16 c' c' c' c'4 c' c' 
  
  \once \set Staff.whichBar = "|"   
  
  c'4 c'8 c' c'4 c' c'  
  
  \once \set Staff.whichBar = "|"   
  
}   
  
}   
  

  
\score {
  
  \new Staff \music 
  
  \layout { 
  
\context{\Score 
  
   defaultBarType = #"" 
  
 }  
  
}   
  
} 


However, this could yield some strange warnings specially if u use non standard 
time signatures like 12/21, etc... But it works perfectly well. I have been 
using this for my polymeter/polytempi scores...

Best
K

> --
> 
> Message: 1
> Date: Tue, 6 Nov 2018 20:10:52 +1100
> From: Andrew Bernard 
> To: lilypond-user Mailinglist 
> Subject: Re: Time signature and beat markers
> Message-ID:
>   
> Content-Type: text/plain; charset="utf-8"
> 
> Here is my MWE. It seems rather naive, and I feel there must be more
> intelligent ways to do this. Here's a basis for help to start with,
> hopefully making clearer what I want.
> 
> The disadvantage here of course is that the heavier barlines have to be
> manually inserted. Not a large effort, but just does not seem smooth.
> 
> %
> 
> \version "2.19.82"
> 
> music = {
>   \time 5/4
>   \scaleDurations 5/1 {
>   c'4 c'16 c' c' c' c'4 c' c'
>   \bar "."
>   c'4 c'8 c' c'4 c' c'
>   \bar "."
>   }
> }
> 
> \score {
>   \new Staff \music
>   \layout {}
> }
> 
> %
> 
> Andrew
> 
> 
-- 
Karim Haddad


webpage : http://karim.haddad.free.fr

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


Re: Time signature and beat markers

2018-11-06 Thread Andrew Bernard
Answering my own question, this simple approach works:

  \time 5/4
  \set Timing.measureLength = #(ly:make-moment 1/4)

I'm happy to make the thincker barlines manually, unless anybody has some
clever special engraver ideas.

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


Re: Time signature and beat markers

2018-11-06 Thread Andrew Bernard
Here is my MWE. It seems rather naive, and I feel there must be more
intelligent ways to do this. Here's a basis for help to start with,
hopefully making clearer what I want.

The disadvantage here of course is that the heavier barlines have to be
manually inserted. Not a large effort, but just does not seem smooth.

%

\version "2.19.82"

music = {
  \time 5/4
  \scaleDurations 5/1 {
  c'4 c'16 c' c' c' c'4 c' c'
  \bar "."
  c'4 c'8 c' c'4 c' c'
  \bar "."
  }
}

\score {
  \new Staff \music
  \layout {}
}

%

Andrew



On Tue, 6 Nov 2018 at 13:44, Andrew Bernard 
wrote:

> My complexity school composer colleague uses what he calls beat markers
> instead of barlines to assist players locating where they are in the
> complex mass of notes. So for example, we have a section of 5/4. but there
> is a barline (actually, we use the old mensural type line system) every
> beat, so I set the music in 1/4. Previously, we have omitted the actual
> time signature for various reaons, but now I want it displayed.
>
> So how can I show 5/4 but have the music be in 1/4 for creating the 'beat
> lines' (just think of them as barlines). And so on for a whole lot of other
> time signatures.
>
> Attached image may make this clearer.
>
> While we are here, how could I get the time signature between the systems,
> as in this manuscript copy?
>
> Andrew
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: time signature is printed after first bar line

2016-09-20 Thread Malte Meyn



Am 20.09.2016 um 17:28 schrieb Roderick Mackenzie:

I am still trying to print bagpipe tunes with Lilypond, with a repeat
bar at the start of each part. I am almost there; my only problem now
is that the time signature is printed after the first bar line (the
repeat bar line).

How do I get the time signature to print before the first bar line?


Just use a newer version of LilyPond ;)

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


Re: Time signature before end of volta repeat

2016-06-26 Thread Thomas Morley
2016-06-26 22:01 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> 2016-06-26 19:58 GMT+02:00 Imanuel Habekotte :
>>>
>>> Thanks for trying to help Federico. Does anyone else know a solution
>>> to the problem below?
>>
>>
>> LilyPond interprets the input successively, repeats are disregarded.
>>
>> So your problem can be reduced to:
>> { \time 3/4 R2. \time 4/4 \time 3/4 R2. }
>> where you want to print two TimeSignatures at the same musical moment.
>> LilyPond will _never_ do this.
>> Honestly, I've never seen this before.
>
> To be fair, it isn't the "same musical moment" at all unless your name
> is LilyPond.
>
>> Anyway, to get it printed as you like you'll have to work around.
>> Here I choosed to hack BreathingSign.
>> Ofcourse it's pure graphical and you have to repeat it in any Staff:
>
> Well, I tend to cheat with the "same musical moment" rather than the
> graphics.  In this case, I'd likely use something like
>
>
>
> The spacing is not perfect but not all that bad.

Yep, \grace { ... } was my first thought as well.
Though, I refrained from it, because of the spacing issue.

> --
> David Kastrup
>

Cheers,
  Harm

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


Re: Time signature before end of volta repeat

2016-06-26 Thread David Kastrup
Thomas Morley  writes:

> 2016-06-26 19:58 GMT+02:00 Imanuel Habekotte :
>>
>> Thanks for trying to help Federico. Does anyone else know a solution
>> to the problem below?
>
>
> LilyPond interprets the input successively, repeats are disregarded.
>
> So your problem can be reduced to:
> { \time 3/4 R2. \time 4/4 \time 3/4 R2. }
> where you want to print two TimeSignatures at the same musical moment.
> LilyPond will _never_ do this.
> Honestly, I've never seen this before.

To be fair, it isn't the "same musical moment" at all unless your name
is LilyPond.

> Anyway, to get it printed as you like you'll have to work around.
> Here I choosed to hack BreathingSign.
> Ofcourse it's pure graphical and you have to repeat it in any Staff:

Well, I tend to cheat with the "same musical moment" rather than the
graphics.  In this case, I'd likely use something like

\new Score \with { \numericTimeSignature }
\repeat volta 2 { c1 }
\alternative { { \time 3/4 c2. \grace { \bar "" \time 4/4 s128 } }
   { \time 3/4 c2. } }

The spacing is not perfect but not all that bad.

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


Re: Re: Time signature before end of volta repeat

2016-06-26 Thread Thomas Morley
2016-06-26 21:30 GMT+02:00 Thomas Morley :
> 2016-06-26 21:27 GMT+02:00 Thomas Morley :
>> 2016-06-26 19:58 GMT+02:00 Imanuel Habekotte :
>>>
>>> Thanks for trying to help Federico. Does anyone else know a solution to the 
>>> problem below?
>>
>>
>> LilyPond interprets the input successively, repeats are disregarded.
>>
>> So your problem can be reduced to:
>> { \time 3/4 R2. \time 4/4 \time 3/4 R2. }
>> where you want to print two TimeSignatures at the same musical moment.
>> LilyPond will _never_ do this.
>> Honestly, I've never seen this before.
>>
>> Anyway, to get it printed as you like you'll have to work around.
>> Here I choosed to hack BreathingSign.
>> Ofcourse it's pure graphical and you have to repeat it in any Staff:
>>
>>
>> \version "2.19.44"
>>
>> insertTime =
>> #(define-music-function (fraction)(fraction?)
>> #{
>
> %% better to add:
> \once
>>   \override BreathingSign.stencil =
>> #(lambda (grob)
>>   (ly:grob-set-property! grob 'fraction fraction)

%% If wanted/needed add:
(ly:grob-set-property! grob 'style 'numbered)
>>   (ly:grob-set-property! grob 'Y-offset '())
>>   (ly:grob-set-nested-property! grob
>> '(space-alist staff-bar) '(extra-space . 1.0))
>>   (ly:time-signature::print grob))
>>   \breathe
>> #})
>>
>> { \time 3/4 R2. \insertTime 4/4 \time 3/4 R2. }
>>
>> HTH,
>>   Harm

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


Re: Re: Time signature before end of volta repeat

2016-06-26 Thread Thomas Morley
2016-06-26 21:27 GMT+02:00 Thomas Morley :
> 2016-06-26 19:58 GMT+02:00 Imanuel Habekotte :
>>
>> Thanks for trying to help Federico. Does anyone else know a solution to the 
>> problem below?
>
>
> LilyPond interprets the input successively, repeats are disregarded.
>
> So your problem can be reduced to:
> { \time 3/4 R2. \time 4/4 \time 3/4 R2. }
> where you want to print two TimeSignatures at the same musical moment.
> LilyPond will _never_ do this.
> Honestly, I've never seen this before.
>
> Anyway, to get it printed as you like you'll have to work around.
> Here I choosed to hack BreathingSign.
> Ofcourse it's pure graphical and you have to repeat it in any Staff:
>
>
> \version "2.19.44"
>
> insertTime =
> #(define-music-function (fraction)(fraction?)
> #{

%% better to add:
\once
>   \override BreathingSign.stencil =
> #(lambda (grob)
>   (ly:grob-set-property! grob 'fraction fraction)
>   (ly:grob-set-property! grob 'Y-offset '())
>   (ly:grob-set-nested-property! grob
> '(space-alist staff-bar) '(extra-space . 1.0))
>   (ly:time-signature::print grob))
>   \breathe
> #})
>
> { \time 3/4 R2. \insertTime 4/4 \time 3/4 R2. }
>
> HTH,
>   Harm

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


Re: Re: Time signature before end of volta repeat

2016-06-26 Thread Thomas Morley
2016-06-26 19:58 GMT+02:00 Imanuel Habekotte :
>
> Thanks for trying to help Federico. Does anyone else know a solution to the 
> problem below?


LilyPond interprets the input successively, repeats are disregarded.

So your problem can be reduced to:
{ \time 3/4 R2. \time 4/4 \time 3/4 R2. }
where you want to print two TimeSignatures at the same musical moment.
LilyPond will _never_ do this.
Honestly, I've never seen this before.

Anyway, to get it printed as you like you'll have to work around.
Here I choosed to hack BreathingSign.
Ofcourse it's pure graphical and you have to repeat it in any Staff:


\version "2.19.44"

insertTime =
#(define-music-function (fraction)(fraction?)
#{
  \override BreathingSign.stencil =
#(lambda (grob)
  (ly:grob-set-property! grob 'fraction fraction)
  (ly:grob-set-property! grob 'Y-offset '())
  (ly:grob-set-nested-property! grob
'(space-alist staff-bar) '(extra-space . 1.0))
  (ly:time-signature::print grob))
  \breathe
#})

{ \time 3/4 R2. \insertTime 4/4 \time 3/4 R2. }

HTH,
  Harm

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


Fwd: Re: Time signature before end of volta repeat

2016-06-26 Thread Imanuel Habekotte
Thanks for trying to help Federico. Does anyone else know a solution to 
the problem below?




 Forwarded message 
Subject:Re: Time signature before end of volta repeat
Date:   Sun, 26 Jun 2016 18:13:24 +0200
From:   Imanuel Habekotte 
To: Federico Bruni 



Hello Federico,

I meant like inside the 1st alternative ending of the repeat. There is a 
3/4 at the beginning and a 4/4 at the end. Do you see it?


When I try to do this in LilyPond:

\alternative {
  { \time 3/4 f8 f( aes16 bes des8~des) des \time 4/4 }
  { _*\time 3/4*_ f,8 f( aes16 bes des8~des) \mark \markup { 
\musicglyph #"scripts.coda" } }

}

... then I don't see the 4/4 time signature at all, but if I delete the 
marked signature (the second \time 3/4), it does show up, though in the 
wrong place (it appears after the bar instead of before it).


Kind regards,
Imanuel

Op 26-6-2016 om 10:14 schreef Federico Bruni:
Il giorno dom 26 giu 2016 alle 9:56, Imanuel Habekotté 
 ha scritto:
I would like to have a time signature printed before the end bar of a 
volta repeat. Here is an example of what I would like to have: 
https://html1-f.scribdassets.com/60ssbtzf5s2k8f21/images/2-88fc29efc8.jpg


Instead I get a time signature printed after the repeat.


Hi Imanuel

Welcome to LilyPond.
LilyPond should print the new time signature before and after a line 
break, just like in the example you linked.

Here's a minimal example:

\version "2.19.43"
{
 \time 2/4
 \repeat volta 2 {
   c2 c c c \break
 }
 \alternative {
   { \time 3/4 d2. }
   { e2. }
 }
}

Can you provide a minimal example showing what's the problem?
http://lilypond.org/tiny-examples.html



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


Re: Time signature before end of volta repeat

2016-06-26 Thread Federico Bruni

Hello Immanuel

Please reply to all, including the mailing list.
I've understand your problem now, but I don't have a solution for you. 
Probably someone here is able to help you.



Il giorno dom 26 giu 2016 alle 18:13, Imanuel Habekotte 
 ha scritto:

Hello Federico,

I meant like inside the 1st alternative ending of the repeat. There 
is a 3/4 at the beginning and a 4/4 at the end. Do you see it?


When I try to do this in LilyPond:

\alternative {
  { \time 3/4 f8 f( aes16 bes des8~des) des \time 4/4 }
  { \time 3/4 f,8 f( aes16 bes des8~des) \mark \markup { 
\musicglyph #"scripts.coda" } }

}

... then I don't see the 4/4 time signature at all, but if I delete 
the marked signature (the second \time 3/4), it does show up, though 
in the wrong place (it appears after the bar instead of before it).


Kind regards,
Imanuel

Op 26-6-2016 om 10:14 schreef Federico Bruni:
Il giorno dom 26 giu 2016 alle 9:56, Imanuel Habekotté 
 ha scritto:
I would like to have a time signature printed before the end bar of 
a volta repeat. Here is an example of what I would like to have: 
https://html1-f.scribdassets.com/60ssbtzf5s2k8f21/images/2-88fc29efc8.jpg


Instead I get a time signature printed after the repeat.


Hi Imanuel

Welcome to LilyPond.
LilyPond should print the new time signature before and after a line 
break, just like in the example you linked.

Here's a minimal example:

\version "2.19.43"
{
 \time 2/4
 \repeat volta 2 {
   c2 c c c \break
 }
 \alternative {
   { \time 3/4 d2. }
   { e2. }
 }
}

Can you provide a minimal example showing what's the problem?
http://lilypond.org/tiny-examples.html






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


Re: Time signature before end of volta repeat

2016-06-26 Thread Federico Bruni
Il giorno dom 26 giu 2016 alle 9:56, Imanuel Habekotté 
 ha scritto:
I would like to have a time signature printed before the end bar of a 
volta repeat. Here is an example of what I would like to have: 
https://html1-f.scribdassets.com/60ssbtzf5s2k8f21/images/2-88fc29efc8.jpg


Instead I get a time signature printed after the repeat.


Hi Imanuel

Welcome to LilyPond.
LilyPond should print the new time signature before and after a line 
break, just like in the example you linked.

Here's a minimal example:

\version "2.19.43"
{
 \time 2/4
 \repeat volta 2 {
   c2 c c c \break
 }
 \alternative {
   { \time 3/4 d2. }
   { e2. }
 }
}

Can you provide a minimal example showing what's the problem?
http://lilypond.org/tiny-examples.html


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


Re: Time signature at end of score.

2016-05-25 Thread Richard Shann
On Wed, 2016-05-25 at 09:44 +, Charles Suncana wrote:
> OK thanks, I´ll do that in future. Weird that it still seems to work.

Well, by chance, you had got nothing in \global that couldn't appear
after the music, else LilyPond would have errored.
I hope you can get to grips with LilyPond syntax, if not try Denemo
which generates the syntax for you. You get the same beautiful score,
but with the caveat that if you want to create advanced notational
features then you will be back to learning LilyPond syntax.

Richard

>  Also I have to say Lilypond has a wonderful sense of community. Best
> -charles- 
> 
>  
> > Subject: Re: Time signature at end of score.
> > From: rich...@rshann.plus.com
> > To: sunc...@hotmail.com
> > CC: lilypond-user@gnu.org
> > Date: Wed, 25 May 2016 09:44:18 +0100
> > 
> > On Wed, 2016-05-25 at 08:30 +, Charles Suncana wrote:
> > > global = {
> > > 
> > > }
> > > 
> > > violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|."
> > > \global
> > > % Music follows here.
> > > 
> > > }
> > 
> > This isn't the idea - you have emptied the \global and still not
> placed
> > the music after the comment "% Music follows here"
> > Instead keep the global = bit and put the music after that comment:
> > 
> > violin = \relative c'' {
> > \global
> > % Music follows here.
> > d4 e f | g f e | d2.\bar "|."
> > }
> > 
> > Perhaps it should have said
> > 
> > % Put your music after this comment
> > 
> > then it might have been clear.
> > 
> > Richard
> > 
> > 
> 



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


Re: Time signature at end of score.

2016-05-25 Thread Richard Shann
On Wed, 2016-05-25 at 08:30 +, Charles Suncana wrote:
> global = {
>   
> }
> 
> violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|."
>   \global
>   % Music follows here.
>   
> }

This isn't the idea - you have emptied the \global and still not placed
the music after the comment "% Music follows here"
Instead keep the global = bit and put the music after that comment:

violin = \relative c'' {
   \global
   % Music follows here.
   d4 e f | g f e | d2.\bar "|."
}

Perhaps it should have said

% Put your music after this comment

then it might have been clear.

Richard



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


Re: Time signature at end of score.

2016-05-25 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm also a beginner at Lily, but as a programmer I'm quite certain you
have found the problem.  Consider the violin stanza:

violin = ... { \time 3/4 ...
  \global
  ...
}

"global" has no special meaning, it is just expanded in line, hence:

violin = ... { \time 3/4 ...
  ...
  \time 3/4
}

so the piece starts with a time signature and ends with one through
the expansion of the global stanza.

Score wizard on my machine produces:

\version "2.18.2"
\language "english"

\header {
  title = "Test"
}

global = {
  \key c \major
  \time 4/4
}

violin = \relative c'' {
  \global
  % Music follows here.

}

\score {
  \new Staff \with {
instrumentName = "Violin"
midiInstrument = "violin"
  } \violin
  \layout { }
  \midi {
\tempo 4=100
  }
}

Note that there is no \time in the violin section, and that notes
should go _after_ the \global invocation.

HTH, Martin

On 25/05/16 09:30, Charles Suncana wrote:
> Hi again, after persevering a bit I think the problem as using the 
> Score wizard in Frescobaldi.
> 
> Here is my tiny problem:
> 
> \version "2.18.2"
> 
> \header {
> 
> }
> 
> \layout { \context { \Voice \consists "Melody_engraver" \override 
> Stem #'neutral-direction = #'() } }
> 
> global = { \key d \major \numericTimeSignature \time 3/4 }
> 
> violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|." 
> \global % Music follows here.
> 
> }
> 
> \score { \new Staff \with { instrumentName = "Violin" 
> shortInstrumentName = "Vl." midiInstrument = "violin" } \violin 
> \layout { } \midi { \tempo 4=100 } }
> 
> and here is my tiny solution
> 
> \version "2.18.2"
> 
> \header {
> 
> }
> 
> \layout { \context { \Voice \consists "Melody_engraver" \override 
> Stem #'neutral-direction = #'() } }
> 
> global = {
> 
> }
> 
> violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|." 
> \global % Music follows here.
> 
> }
> 
> \score { \new Staff \with { instrumentName = "Violin" 
> shortInstrumentName = "Vl." midiInstrument = "violin" } \violin 
> \layout { } \midi { \tempo 4=100 } }
> 
> By deleting the time and key signature in the global block I was 
> able to get rid of the info after the last bar. Thanks for the 
> prompt help and encouragement. Best -charles-
> 
> --
- --
>
>
> 
From: sunc...@hotmail.com
> To: lilypond-user@gnu.org Subject: Time signature at end of score.
>  Date: Mon, 23 May 2016 22:47:48 +
> 
> Hi, I´m a newbie to Lilypond and am using Frescobaldi to help me 
> use it. At the end of each engraving Frescobaldi puts a courtesy 
> time signature for the next expected bar. However when the piece
> is finished AND converted to PDF, the courtesy time signature is
> still there at the end of the score. Does anyone know how to remove
> it? -charlesross-
> 
> 
> ___ lilypond-user 
> mailing list lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJXRWaGAAoJEAF3yXsqtyBla3QP+wZSaA6My09uPg9D6U3XVAy3
3y0U27YVZwYhCw1GaqKrbMrmvslfsyMRI0JVOqeDyM3TH1tS5K22fJZtogJE9z+X
VCsoCwUS6elI+bKblLhJwB85cawqYvt6y1Q0eq5O86G8kOpS6MPfanoMTPDR/VNz
30lc2jt44SVwfLzy52XCn4RrAmCNUXt674DaavqNLu9V861Y4DXb9e6MjIa3F5AE
zIGSOYXztXSMW7VfeuSnUBqGZEHcBCwYRr7C6nSSiYUAireLcCcNJJzQe/pUBi85
zgwKGlek8ZVkloHVqEAupb3j8EviifF/+EJH3u+V7/YWltVi6diAbr2rmecV0GWZ
zHVvS7GGap2jEVWiyApJS8Ofo3HIfRgIGB2ioNOFzvHV4/F7GtzfEjhb2LuUuLex
DX4Xq4HwoAYbP0fklxekEjBmFQ0VBjQ4qDEFTdY7jus4gD/KpRHFlpkzoU700Lqm
NUd6hFtHDedadhrq6cEAQfEgUDW31SS2Kl+pgVhMnWyIDr9XUNqaFqGZ/fdDeCzN
+y1g2ZKyz2vCXcs1wXh28a02hSapRYWDpVHSx063HWJVN+8u6OG2cqaglIx3VK/o
WyMVqwRXma+hY385mcsJVAWI1rBJ71ayUOsYULIDQwZZmeQjj1FC2apm1D+AFtGh
ZdDMDtOwZdAZeyrhuDMN
=gxL4
-END PGP SIGNATURE-

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


RE: Time signature at end of score.

2016-05-25 Thread Charles Suncana
Hi again, after persevering a bit I think the problem as using the Score wizard 
in Frescobaldi.

Here is my tiny problem:

\version "2.18.2"

\header {

}

\layout {
  \context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
  }
}

global = {
  \key d \major
  \numericTimeSignature
  \time 3/4
}

violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|."
  \global
  % Music follows here.
  
}

\score {
  \new Staff \with {
instrumentName = "Violin"
shortInstrumentName = "Vl."
midiInstrument = "violin"
  } \violin
  \layout { }
  \midi {
\tempo 4=100
  }
}

and here is my tiny solution

\version "2.18.2"

\header {

}

\layout {
  \context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
  }
}

global = {
  
}

violin = \relative c'' { \time 3/4 d4 e f | g f e | d2.\bar "|."
  \global
  % Music follows here.
  
}

\score {
  \new Staff \with {
instrumentName = "Violin"
shortInstrumentName = "Vl."
midiInstrument = "violin"
  } \violin
  \layout { }
  \midi {
\tempo 4=100
  }
}
By deleting the time and key signature in the global block I was able to get 
rid of the info after the last bar.
Thanks for the prompt help and encouragement. Best -charles-

From: sunc...@hotmail.com
To: lilypond-user@gnu.org
Subject: Time signature at end of score.
Date: Mon, 23 May 2016 22:47:48 +




Hi, I´m a newbie to Lilypond and am using Frescobaldi to help me use it. At the 
end of each engraving Frescobaldi puts a courtesy time signature for the next 
expected bar. However when the piece is finished AND converted to PDF, the 
courtesy time signature is still there at the end of the score. Does anyone 
know how to remove it? -charlesross-
 ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Time signature at end of score.

2016-05-23 Thread Malte Meyn



Am 24.05.2016 um 00:47 schrieb Charles Suncana:

Hi, I´m a newbie to Lilypond and am using Frescobaldi to help me use it. At the 
end of each engraving Frescobaldi puts a courtesy time signature for the next 
expected bar. However when the piece is finished AND converted to PDF, the 
courtesy time signature is still there at the end of the score. Does anyone 
know how to remove it? -charlesross-   


I’m not sure what you’re talking about: Frescobaldi doesn’t add things 
to the LilyPond code you see. And LilyPond does what you tell it to do. 
So a time signature is only present where you put a \time command.


The following code adds a “C” time signature to the end but only because 
it tells LilyPond to do so:


\version "2.18.2"
{
  b1
  \time 4/4
}

Are you sure you mean “time signature” and not f. e. “bar line”? If so, 
why don’t you want the bar line?


If this doesn’t help please show your code that produces the problem you 
describe (preferrably a tiny example: 
http://lilypond.org/tiny-examples.html).


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


Re: Time signature at end of score.

2016-05-23 Thread Urs Liska
Hi Charles,

welcome to the world of LilyPond. Hopefully you'll get a good start and
stick to it :-)


Am 24.05.2016 um 00:47 schrieb Charles Suncana:
> Hi, I´m a newbie to Lilypond and am using Frescobaldi to help me use
> it. At the end of each engraving Frescobaldi puts a courtesy time
> signature for the next expected bar. However when the piece is
> finished AND converted to PDF, the courtesy time signature is still
> there at the end of the score. Does anyone know how to remove it?
> -charlesross-

I'm sorry but this description doesn't seem to make much sense to me. In
order to get assistance (which you will most likely get from this list)
you should provide us with
- a minimal working code example
- maybe an image of the result (attached, not inline)
- a description what on that page isn't correct in your opinion

This will give us the chance to see what is going wrong.

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


Re: Time signature at end of score.

2016-05-23 Thread tisimst
Hi, Charles!

On Mon, May 23, 2016 at 5:08 PM, Charles Suncana [via Lilypond] <
ml-node+s1069038n190902...@n5.nabble.com> wrote:

> Hi, I´m a newbie to Lilypond and am using Frescobaldi to help me use it.
> At the end of each engraving Frescobaldi puts a courtesy time signature for
> the next expected bar. However when the piece is finished AND converted to
> PDF, the courtesy time signature is still there at the end of the score.
> Does anyone know how to remove it? -charlesross-
>

Welcome to the group!

I'm pretty sure it isn't Frescobaldi that's doing it, but either way, if
you could attach (either inline or as a separate file) a minimal working
code sample that shows this problem, we'd be happy to help.

Best,
Abraham

P.S. Trimming your code down to a "minimal working sample" may help you
find the answer without our help, FYI.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Time-signature-at-end-of-score-tp190902p190903.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: time signature with "DOTTED" note in the denominator

2015-10-29 Thread sunzunki
Hi, Pierre

Thanks so much, it works!!
As I want to use only time signature with dotted note in denominator on the
Libreoffice,
put some comment out, the following pic is what I want.

 

Sunzunki



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/time-signature-with-DOTTED-note-in-the-denominator-tp182879p182915.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: time signature with "DOTTED" note in the denominator

2015-10-29 Thread Pierre Perol-Schneider
Hi Sunzunki,

There's also another snippet that could be helpful:
http://lsr.di.unimi.it/LSR/Item?id=554
So, how about:

\version "2.18.2"
% \version "2.19.30"

\relative {
  \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob #{
  \markup\override #'(baseline-skip . 0.5) {
  \column { \number 2 \tiny\note #"4." #-1 }
  \vcenter "="
  \column { \number 6 \tiny\note #"8" #-1 }
  \vcenter "="
  \column\number { 6 8 }
}
  #}))
  \time 6/8
  \key d\minor
  d''8 a bes
}

Cheers,
Pierre

2015-10-29 10:18 GMT+01:00 Jacques Menu :

> Hello Sunzunki,
>
> From someone’s contribution on this list:
>
>
>
> \version "2.19.15"
>
> #(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
>#:center-column (#:number (number->string num)
>  #:override '(style . default)
>  #:note (number->string den)
>  DOWN
>  (grob-interpret-markup grob m)))
>
> %%%
>
> \relative c' {
>   \override Staff.Flag.stencil = #modern-straight-flag
>   \override Staff.TimeSignature.stencil = #format-time-sig-note
>   \time 3/8
>   \autoBeamOff
>   c8 c8 c8
> }
>
>
> #(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
>  #:center-column (#:number (number->string num)
>#:override '(style . default)
>;; here comes the flag:
>#:override '(flag-style .
> modern-straight-flag)
>#:note (number->string den)
>DOWN
>  (grob-interpret-markup grob m)))
>
> %%%
>
> \relative c' {
>   \override Staff.Flag.stencil = #modern-straight-flag
>   \override Staff.TimeSignature.stencil = #format-time-sig-note
>   \time 3/8
>   \autoBeamOff
>   c8 c8 c8
> }
>
>
> > Le 29 oct. 2015 à 04:20, sunzunki  a écrit :
> >
> > Hello LilyPonders,
> >
> > I'm making music text for school with Lilypond and Libreoffice
> (OOoLilipond)
> >
> > could you any solution about time signature?
> > I want to change the denominator of time signature, number to note.
> > I saw below page and it was worked.
> >
> >
> http://lilypond.1069038.n5.nabble.com/Time-signature-style-with-note-in-the-denominator-td172947.html#a172955
> >
> > Now, I want to put dotted note as denominator.
> > for example, the explain about compound time,
> > there are 2 dotted crotchets in a bar
> > = 2/dotted crotchet note  <--
> > = 6 quavers
> > = 6/quaver note  <-- solved through above address
> > =6/8
> >
> > Is any solution?
> > I want to these lines like as math formula. A = B = C and so on.
> >
> > sunzunki
> >
> >
> >
> > --
> > View this message in context:
> http://lilypond.1069038.n5.nabble.com/time-signature-with-DOTTED-note-in-the-denominator-tp182879.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
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: time signature with "DOTTED" note in the denominator

2015-10-29 Thread Jacques Menu
Hello Sunzunki,

From someone’s contribution on this list:



\version "2.19.15"

#(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
   #:center-column (#:number (number->string num)
 #:override '(style . default)
 #:note (number->string den)
 DOWN
 (grob-interpret-markup grob m)))

%%%

\relative c' {
  \override Staff.Flag.stencil = #modern-straight-flag
  \override Staff.TimeSignature.stencil = #format-time-sig-note
  \time 3/8
  \autoBeamOff
  c8 c8 c8
}


#(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
 #:center-column (#:number (number->string num)
   #:override '(style . default)
   ;; here comes the flag:
   #:override '(flag-style . modern-straight-flag)
   #:note (number->string den)
   DOWN
 (grob-interpret-markup grob m)))

%%%

\relative c' {
  \override Staff.Flag.stencil = #modern-straight-flag
  \override Staff.TimeSignature.stencil = #format-time-sig-note
  \time 3/8
  \autoBeamOff
  c8 c8 c8
}


> Le 29 oct. 2015 à 04:20, sunzunki  a écrit :
> 
> Hello LilyPonders, 
> 
> I'm making music text for school with Lilypond and Libreoffice (OOoLilipond)
> 
> could you any solution about time signature?
> I want to change the denominator of time signature, number to note.
> I saw below page and it was worked.
> 
> http://lilypond.1069038.n5.nabble.com/Time-signature-style-with-note-in-the-denominator-td172947.html#a172955
> 
> Now, I want to put dotted note as denominator.
> for example, the explain about compound time,
> there are 2 dotted crotchets in a bar 
> = 2/dotted crotchet note  <--
> = 6 quavers
> = 6/quaver note  <-- solved through above address
> =6/8
> 
> Is any solution?
> I want to these lines like as math formula. A = B = C and so on.
> 
> sunzunki
> 
> 
> 
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/time-signature-with-DOTTED-note-in-the-denominator-tp182879.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


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


Re: Time signature denominator as a note rather than number?

2015-09-16 Thread Malte Meyn



Am 16.09.2015 um 11:07 schrieb Malte Meyn:

Am 16.09.2015 um 05:02 schrieb Kieren MacMillan:

Have a look at this LSR snippet: http://lsr.di.unimi.it/LSR/Item?id=642


(let* ((frac (ly:grob-property grob 'fraction))
   (num (if (pair? frac) (car frac) 4))
   (den (if (pair? frac) (cdr frac) 4))


I copied these lines from the snippet but I don’t know any case where 
defaulting to 4/4 would be necessary; 'fraction exists even if there is 
no explicite time signature. (So

;;
  (num (car frac))
  (den (cdr frac))
;;
should suffice.)


#:override '(style . default)


I also have no idea what this is and why it should be necessary …

Probably important is the used lilypond version; I use 2.19.27.

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


Re: Time signature denominator as a note rather than number?

2015-09-16 Thread Malte Meyn



Am 16.09.2015 um 05:02 schrieb Kieren MacMillan:

Have a look at this LSR snippet: http://lsr.di.unimi.it/LSR/Item?id=642


Yes! That one suffices — and is more elegant — if you don’t need “strange note 
values” (like dotted notes) in your denominator(s).

And if you do, you can change the function to make f. e. “2/4.” instead 
of 6/8 like this:




\version "2.19.27"

#(define-public (format-time-sig-note grob)
   (let* ((frac (ly:grob-property grob 'fraction))
  (num (if (pair? frac) (car frac) 4))
  (den (if (pair? frac) (cdr frac) 4))
  (m
   (if (and (< 3 num) (= 0 (modulo num 3)))
   (markup #:override '(baseline-skip . 0.5)
 #:center-column
 (#:concat (#:number (number->string (/ num 3)) 
#:hspace 0.8)

   #:override '(style . default)
   #:note (string-append (number->string (/ den 2)) 
".") DOWN))

   (markup #:override '(baseline-skip . 0.5)
 #:center-column
 (#:number (number->string num)
   #:override '(style . default)
   #:note (number->string den) DOWN)
 (grob-interpret-markup grob m)))

\relative c' {
  \override Staff.TimeSignature.stencil = #format-time-sig-note
  \time 2/8
  \repeat unfold 2 c8
  \time 3/8
  \repeat unfold 3 c8
  \time 4/8
  \repeat unfold 4 c8
  \time 5/8
  \repeat unfold 5 c8
  \time 6/8
  \repeat unfold 6 c8
  \time 7/8
  \repeat unfold 7 c8
  \time 9/8
  \repeat unfold 9 c8
  \time 12/8
  \repeat unfold 12 c8
  \time 15/16
  \repeat unfold 15 c16
  \time 6/4
  \repeat unfold 6 c4
  \time 6/2
  \repeat unfold 6 c2
  \bar"|."
}


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


Re: Time signature denominator as a note rather than number?

2015-09-15 Thread Kieren MacMillan
Hi,

> Have a look at this LSR snippet: http://lsr.di.unimi.it/LSR/Item?id=642

Yes! That one suffices — and is more elegant — if you don’t need “strange note 
values” (like dotted notes) in your denominator(s).

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: Time signature denominator as a note rather than number?

2015-09-15 Thread Nathan Ho
On Tue, Sep 15, 2015 at 7:12 PM, ViniWolfling
 wrote:
> Hi everybody,
>
> Anybody know how to put a note instead of a number in the denominator? Or at
> least /if/ it can be done? For example:
>
> 
>
> Thanks in advance!

Hello,

Have a look at this LSR snippet: http://lsr.di.unimi.it/LSR/Item?id=642

Regards,
Nathan

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


Re: time signature magic

2015-05-23 Thread David Nalesnik
Alex,

On Sat, May 23, 2015 at 6:08 PM, Alex Jones 
wrote:

> This worked like a charm, thanks to everyone!
>
>
Great!

Thought of something.  Why specify the numbers of the time signature in
effect?  Not that it saves much time, but you could do this for a slightly
shorter input:

 #(define ((time-parenthesized-time up down) grob)
   (ly:stencil-combine-at-edge
(ly:time-signature::print grob)
X RIGHT
(parenthesize-stencil
 (grob-interpret-markup grob
   (markup #:override '(baseline-skip . 0) #:number #:column (up down)))
 0.1 0.7 0.7 0.1) ; these numbers affect the parentheses
0.0 ; padding between columns
))

\relative c' {
  \override Staff.TimeSignature.stencil = #(time-parenthesized-time "6"
"8")
  \time 3/4
  b8 b8 gis8 gis4 gis8
}


%%

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


Re: time signature magic

2015-05-23 Thread Alex Jones
This worked like a charm, thanks to everyone!

-akj

On May 23, 2015, at 7:05 PM, David Nalesnik  wrote:

> #(define ((time-parenthesized-time up down upp downp) grob)
>(ly:stencil-combine-at-edge
> (grob-interpret-markup grob
>   (markup #:override '(baseline-skip . 0) #:number #:column (up down)))
> X RIGHT
> (parenthesize-stencil
>  (grob-interpret-markup grob 
>(markup #:override '(baseline-skip . 0) #:number #:column (upp downp)))
>  0.1 0.7 0.7 0.1) ; these numbers affect the parentheses
> 0.0 ; padding between columns
> ))
> 

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


Re: time signature magic

2015-05-23 Thread David Nalesnik
Hi Alex,

On Sat, May 23, 2015 at 5:41 PM, Alex Jones 
wrote:

> Thank you, this works!
>
> It does look a little clunky.
>

I agree--there's too much space.  A simple fix is to use \concat, which
puts items directly beside each other, instead of \line in the original
function:

\version "2.18"

#(define ((time-parenthesized-time up down upp downp) grob)
   (grob-interpret-markup grob
 (markup #:override '(baseline-skip . 0) #:number
   (#:concat (
   (#:column (up down))
   #:vcenter "("
   (#:column (upp downp))
   #:vcenter ")" )





>
> I saw this, which gets the parentheses but doesn’t include the first
> non-parenthesized item.  Can these two items be combined?
>
>
> http://www.lilypond.org/doc/v2.19/Documentation/snippets/staff-notation#staff-notation-time-signature-in-parentheses-_002d-method-3
>
>
Yes, and this will allow you control over the shape of the parentheses:

#(define ((time-parenthesized-time up down upp downp) grob)
   (ly:stencil-combine-at-edge
(grob-interpret-markup grob
  (markup #:override '(baseline-skip . 0) #:number #:column (up down)))
X RIGHT
(parenthesize-stencil
 (grob-interpret-markup grob
   (markup #:override '(baseline-skip . 0) #:number #:column (upp
downp)))
 0.1 0.7 0.7 0.1) ; these numbers affect the parentheses
0.0 ; padding between columns
))


\relative c' {
  \override Staff.TimeSignature.stencil = #(time-parenthesized-time "3" "4"
"6" "8")
  \time 3/4
  b8 b8 gis8 gis4 gis8
}



Hope this helps!

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


Re: time signature magic

2015-05-23 Thread Alex Jones
Thank you, this works!

It does look a little clunky.  

I saw this, which gets the parentheses but doesn’t include the first 
non-parenthesized item.  Can these two items be combined?

http://www.lilypond.org/doc/v2.19/Documentation/snippets/staff-notation#staff-notation-time-signature-in-parentheses-_002d-method-3

-akj

On May 23, 2015, at 6:09 PM, ole  wrote:

> maybe this helps?
> 
> http://lsr.di.unimi.it/LSR/Item?id=782
> 
> ole
> 
> 
> 
> Am 23.05.2015 um 23:44 schrieb Alex Jones :
> 
>> Does anyone have a suggestion for a good way to accomplish this in lilypond?
>> 
>> time signature with a second time signature in parentheses?
>> 
>> Thanks in advance!
>> 
>> -akj
>> 
>> 
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 

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


Re: time signature magic

2015-05-23 Thread ole
maybe this helps?

http://lsr.di.unimi.it/LSR/Item?id=782

ole



Am 23.05.2015 um 23:44 schrieb Alex Jones :

> Does anyone have a suggestion for a good way to accomplish this in lilypond?
> 
> time signature with a second time signature in parentheses?
> 
> Thanks in advance!
> 
> -akj
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: time signature magic

2015-05-23 Thread Alex Voice
You need the magic of: http://lsr.di.unimi.it/LSR/Snippet?id=782 - Good Luck!


Alex Jones-2 wrote
> Does anyone have a suggestion for a good way to accomplish this in
> lilypond?
> time signature with a second time signature in parentheses?
> 
> Screen Shot 2015-05-23 at 5.41.47 PM.png (14K)
> ;





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/time-signature-magic-tp176955p176956.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: Time signature style with note in the denominator

2015-03-12 Thread Pierre Perol-Schneider
Hi Gilberto,

Try :

\version "2.19.15"

#(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
 #:center-column (#:number (number->string num)
   #:override '(style . default)
   ;; her comes the flag:
   #:override '(flag-style .
modern-straight-flag)
   #:note (number->string den)
  DOWN
 (grob-interpret-markup grob m)))

%%%

\relative c' {
  \override Staff.Flag.stencil = #modern-straight-flag
  \override Staff.TimeSignature.stencil = #format-time-sig-note
  \time 3/8
  \autoBeamOff
  c8 c8 c8
}


Cheers,
Pierre

2015-03-11 13:52 GMT+01:00 Gilberto Agostinho :

> Hello LilyPonders,
>
> Could someone please give me a hand? I want to use the following snippet
> (from: http://lsr.di.unimi.it/LSR/Item?id=642), but I'd like that the
> notes
> in the denominator to use the straight-modern-flag similarly to the notes
> of
> the score:
>
> \version "2.19.15"
>
> #(define-public (format-time-sig-note 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 '(baseline-skip . 0.5)
>  #:center-column (#:number (number->string num)
>#:override '(style .
> default)
>#:note (number->string den)
> DOWN
>  (grob-interpret-markup grob m)))
>
> %%%
>
> \relative c' {
>   \override Staff.Flag.stencil = #modern-straight-flag
>   \override Staff.TimeSignature.stencil = #format-time-sig-note
>   \time 3/8
>   \autoBeamOff
>   c8 c8 c8
> }
>
> This code above produces:
> 
>
> Any help is very much appreciated.
>
> Best,
> Gilberto
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Time-signature-style-with-note-in-the-denominator-tp172947.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
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Time signature style with note in the denominator

2015-03-11 Thread Gilberto Agostinho
Works perfectly well. Thank you so much, Pierre, I really appreciate your
help!

Best,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Time-signature-style-with-note-in-the-denominator-tp172947p172955.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: Time signature differs from measure length

2014-10-10 Thread Noeck
Hi Simon,

> \time 2/2
> \set Timing.measure-length = #(ly:make-moment 4 2) 

thanks for this code. I like this solution best. To be precise it is
measureLength instead of measure-length:

\version "2.18.2"
{
  \time 2/2
  \set Timing.measureLength = #(ly:make-moment 4 2)
  b2 b b b
}

And thanks for the lesson on alla breve. I also wondered what the reason
for this notation is. It's clearer now.

Cheers,
Joram

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


RE: Time signature differs from measure length

2014-10-10 Thread Mark Stephen Mrotek
I stand corrected.

Mark

-Original Message-
From: Simon Albrecht [mailto:simon.albre...@mail.de] 
Sent: Friday, October 10, 2014 1:23 PM
To: Mark Stephen Mrotek; 'lilypond-user'
Subject: Re: Time signature differs from measure length

Am 10.10.2014 um 21:53 schrieb Mark Stephen Mrotek:
> Simon,
>
> Regarding the snippet you provide, I would be confused in reading it. The "₵" 
> would tell me 2/2, yet there would be four semi-breves.
No, a semi-brevis is what we call „ganze Note” in Germany; the „halbe Note” 
would be a minim (the British English naming is the same as in latin). Thus, 
alla breve means ‘in units of a brevis’, that is 4/2 or 2/1.
And this has been common notation, in the 17th and 18th centuries there are 
countless examples. After all, the cut c comes from a time when there were no 
barlines at all, so it’s a matter of interpretation if modern editors choose to 
insert barlines every 2/2 or 4/2. And the 19th and 20th centuries often 
continue to refer to ancient music also in rhythmic concerns, so today there 
are both meanings, and you won’t be able to determine one measure’s duration 
from the cut c time signature alone.

Yours,
Simon


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


Re: Time signature differs from measure length

2014-10-10 Thread Simon Albrecht

Am 10.10.2014 um 21:53 schrieb Mark Stephen Mrotek:

Simon,

Regarding the snippet you provide, I would be confused in reading it. The "₵" 
would tell me 2/2, yet there would be four semi-breves.
No, a semi-brevis is what we call „ganze Note” in Germany; the „halbe 
Note” would be a minim (the British English naming is the same as in 
latin). Thus, alla breve means ‘in units of a brevis’, that is 4/2 or 2/1.
And this has been common notation, in the 17th and 18th centuries there 
are countless examples. After all, the cut c comes from a time when 
there were no barlines at all, so it’s a matter of interpretation if 
modern editors choose to insert barlines every 2/2 or 4/2. And the 19th 
and 20th centuries often continue to refer to ancient music also in 
rhythmic concerns, so today there are both meanings, and you won’t be 
able to determine one measure’s duration from the cut c time signature 
alone.


Yours,
Simon

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


RE: Time signature differs from measure length

2014-10-10 Thread Mark Stephen Mrotek
Simon,

Regarding the snippet you provide, I would be confused in reading it. The "₵" 
would tell me 2/2, yet there would be four semi-breves.

Does this do what you want?

\version "2.18.0"
timeTwoOne = {
  \once \override Staff.TimeSignature.stencil =
  #(lambda (grob)
 (grob-interpret-markup grob
  #{ \markup { \musicglyph #"timesig.C22" \musicglyph #"timesig.C22" } #}))
  \time 2/1
}
\relative c' {
  \timeTwoOne 
  r2 g g g | f f g b | b a b1
  }

Mark

-Original Message-
From: Simon Albrecht [mailto:simon.albre...@mail.de] 
Sent: Friday, October 10, 2014 12:13 PM
To: Noeck; Mark Stephen Mrotek; lilypond-user
Subject: Re: Time signature differs from measure length

Am 10.10.2014 um 12:45 schrieb Noeck:
>> -Original Message-
>> I want to write a piece with a alla-breve time signature but with 
>> four half notes in a measure (4/2).
>>
>> Is it better to overwrite the time signature stencil and use \time 4/2 or do 
>> it like this:
>>
>> \version "2.18.2"
>>
>> \relative c'' \scaleDurations 1/2 {
>>\time 2/2
>>r2 g g g | f f g b | b a b1
>> }
>> Noeck,
>>
>> http://lists.gnu.org/archive/html/lilypond-user/2014-09/msg00603.html
>> might be of help.
>>
>> Mark
> Thanks. I should have found this.
> My main question which solution is more correct? Scaling the durations 
> or changing the printed time signature?
For the printed output it doesn’t matter. Scaling the durations seems most 
tedious to me, and overriding the stencil is also more complicated than a third 
possibility:
\time 2/2
\set Timing.measure-length = #(ly:make-moment 4 2) But it’s up to which coding 
you prefer, actually. To me, a really "correct" solution would be \override 
TimeSignature.style – but this works only for \time 4/4 and \time 2/2. So you 
need to use something more intrusive.

Best, Simon


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


Re: Time signature differs from measure length

2014-10-10 Thread Simon Albrecht

Am 10.10.2014 um 12:45 schrieb Noeck:

-Original Message-
I want to write a piece with a alla-breve time signature but with four half
notes in a measure (4/2).

Is it better to overwrite the time signature stencil and use \time 4/2 or do it 
like this:

\version "2.18.2"

\relative c'' \scaleDurations 1/2 {
   \time 2/2
   r2 g g g | f f g b | b a b1
}
Noeck,

http://lists.gnu.org/archive/html/lilypond-user/2014-09/msg00603.html
might be of help.

Mark

Thanks. I should have found this.
My main question which solution is more correct? Scaling the durations
or changing the printed time signature?
For the printed output it doesn’t matter. Scaling the durations seems 
most tedious to me, and overriding the stencil is also more complicated 
than a third possibility:

\time 2/2
\set Timing.measure-length = #(ly:make-moment 4 2)
But it’s up to which coding you prefer, actually. To me, a really 
"correct" solution would be \override TimeSignature.style – but this 
works only for \time 4/4 and \time 2/2. So you need to use something 
more intrusive.


Best, Simon

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


RE: Time signature differs from measure length

2014-10-10 Thread Mark Stephen Mrotek
Joram,

For me correct is "what makes more sense to my reading/interpretation of the 
music." I use Lilypond to score music for my own performance (generally 
private), therefore I need not conform to Gould.

My suggestion is to do whatever makes the experience better for you.

Mark

-Original Message-
From: Noeck [mailto:noeck.marb...@gmx.de] 
Sent: Friday, October 10, 2014 3:46 AM
To: Mark Stephen Mrotek; lilypond-user
Subject: Re: Time signature differs from measure length

> -Original Message-
> I want to write a piece with a alla-breve time signature but with four 
> half notes in a measure (4/2).
> 
> Is it better to overwrite the time signature stencil and use \time 4/2 or do 
> it like this:
> 
> \version "2.18.2"
> 
> \relative c'' \scaleDurations 1/2 {
>   \time 2/2
>   r2 g g g | f f g b | b a b1
> }
> Noeck,
>
> http://lists.gnu.org/archive/html/lilypond-user/2014-09/msg00603.html
> might be of help.
>
> Mark

Thanks. I should have found this.
My main question which solution is more correct? Scaling the durations or 
changing the printed time signature?

Joram


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


Re: Time signature differs from measure length

2014-10-10 Thread Noeck
> -Original Message-
> I want to write a piece with a alla-breve time signature but with four half
> notes in a measure (4/2).
> 
> Is it better to overwrite the time signature stencil and use \time 4/2 or do 
> it like this:
> 
> \version "2.18.2"
> 
> \relative c'' \scaleDurations 1/2 {
>   \time 2/2
>   r2 g g g | f f g b | b a b1
> }
> Noeck,
>
> http://lists.gnu.org/archive/html/lilypond-user/2014-09/msg00603.html
> might be of help.
>
> Mark

Thanks. I should have found this.
My main question which solution is more correct? Scaling the durations
or changing the printed time signature?

Joram

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


RE: Time signature differs from measure length

2014-10-09 Thread Mark Stephen Mrotek
Noeck,

http://lists.gnu.org/archive/html/lilypond-user/2014-09/msg00603.html
might be of help.

Mark

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Noeck
Sent: Thursday, October 09, 2014 4:14 PM
To: lilypond-user
Subject: Time signature differs from measure length

Hi,

I want to write a piece with a alla-breve time signature but with four half
notes in a measure (4/2).

Is it better to overwrite the time signature stencil and use \time 4/2 (if
yes, how?) or do it like this:

\version "2.18.2"

\relative c'' \scaleDurations 1/2 {
  \time 2/2
  r2 g g g | f f g b | b a b1
}

Cheers,
Joram

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


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


Re: Time signature fonts

2014-07-31 Thread Phil Holmes
Thanks, Mark.  PostAntiqua does a pretty good job, IMHO.

--
Phil Holmes


  - Original Message - 
  From: Mark Polesky 
  To: Phil Holmes 
  Cc: LilyPond User Group 
  Sent: Wednesday, July 30, 2014 8:31 PM
  Subject: Re: Time signature fonts


  On Wed, Jul 30, 2014 at 7:46 AM, Phil Holmes  wrote:

I'm typesetting some madrigals from book 2 of the Musica Transalpina.  Part 
of one of them has the passage attached.  This looks like a brief 3/2 passage 
that reverts to 4/4 (or their perfect/imperfect mensural equivalents).

I'd like to use a font for the signature that has this characteristic 3 
shape.  Can anyone suggest one, please?



  For free I find Post-Antiqua:
  http://www.searchfreefonts.com/free/postantiqua.htm

  If you're willing to pay, you could look into these on myfonts.com
  Jubilee
  Kingsrow
  Stanhope
  Pannartz
  Poor Richard
  Antique Ancienne



--


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


Re: Time signature fonts

2014-07-30 Thread Mark Polesky
On Wed, Jul 30, 2014 at 7:46 AM, Phil Holmes  wrote:

> I'm typesetting some madrigals from book 2 of the Musica Transalpina.
>  Part of one of them has the passage attached.  This looks like a brief 3/2
> passage that reverts to 4/4 (or their perfect/imperfect mensural
> equivalents).
>
> I'd like to use a font for the signature that has this characteristic 3
> shape.  Can anyone suggest one, please?
>

For free I find Post-Antiqua:
http://www.searchfreefonts.com/free/postantiqua.htm

If you're willing to pay, you could look into these on myfonts.com
Jubilee
Kingsrow
Stanhope
Pannartz
Poor Richard
Antique Ancienne
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Time signature in TabStaff

2012-09-08 Thread Peter Crighton
Thank you, that’s great!
It’s wonderful that LilyPond is so good already, but keeps getting
even better constantly. Every time I run into a problem it is already
going to be fixed in one of the next versions, I like that!

--
Peter Crighton | Musician & Music Engraver based in Mainz/Wiesbaden, Germany
http://www.petercrighton.de


2012/9/7 David Kastrup :
> Peter Crighton  writes:
>
>> Hi all,
>>
>> when having included \tabFullNotation in a TabStaff, the time
>> signature is not centered vertically with an even number of lines in
>> the staff. This is because a time signature is anchored at a line, not
>> the space between lines. Is there any way to change this behaviour and
>> have the time signature centered?
>>
>>
>> \version "2.15.41"
>>
>> \new TabStaff {
>>   \tabFullNotation
>>   R1
>> }
>
> Cf http://code.google.com/p/lilypond/issues/detail?id=2783>.  This
> will be fixed in 2.17.2, and I plan a backport into 2.16.1 as well.  If
> you take a look at the length and breadth of the discussion on this
> issue as well as the parent issues, you'll see that a lot of work is
> going into assuring the best experience possible when using LilyPond.
> In this particular case, it took several iterations to get this right,
> but I believe that the time signature has not been centered in
> four/six-string tablatures for a _long_ time by now (like, since 2002 or
> so).  You can for now use something like
>
> \override Staff.TimeSignature #'Y-offset = -2
>
> as a temporary fix, but don't forget to remove it when upgrading to
> 2.17.2 or 2.16.1.
>
> --
> David Kastrup
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

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


Re: Time signature in TabStaff

2012-09-07 Thread David Kastrup
Peter Crighton  writes:

> Hi all,
>
> when having included \tabFullNotation in a TabStaff, the time
> signature is not centered vertically with an even number of lines in
> the staff. This is because a time signature is anchored at a line, not
> the space between lines. Is there any way to change this behaviour and
> have the time signature centered?
>
>
> \version "2.15.41"
>
> \new TabStaff {
>   \tabFullNotation
>   R1
> }

Cf http://code.google.com/p/lilypond/issues/detail?id=2783>.  This
will be fixed in 2.17.2, and I plan a backport into 2.16.1 as well.  If
you take a look at the length and breadth of the discussion on this
issue as well as the parent issues, you'll see that a lot of work is
going into assuring the best experience possible when using LilyPond.
In this particular case, it took several iterations to get this right,
but I believe that the time signature has not been centered in
four/six-string tablatures for a _long_ time by now (like, since 2002 or
so).  You can for now use something like

\override Staff.TimeSignature #'Y-offset = -2

as a temporary fix, but don't forget to remove it when upgrading to
2.17.2 or 2.16.1.

-- 
David Kastrup


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


Re: time signature question

2012-02-28 Thread Kieren MacMillan
Hi James,

> Could we add it here?
> http://lilypond.org/productions.html

All of my scores since 2003 have been happily Lily-pounded.  =)

Here are some recent highlights (compositions only, as the arrangements would 
be far too numerous). Feel free to put up there whatever you deem worthy. If 
you have questions or want more details about any specific items, just ask.

Live Performances:
Go Thy Way — Salt Lake Choral Artists, Utah, 2012
Just Out of Reach Suite — Chrysalis Duo, Huntington, 2012
Twelfth Night — Classical Theatre Project, American Tour, 2012; CTP, 
Toronto, 2011; CTP, Toronto, 2010
Round 7:30 — Musique 21, Lansing, 2011
A Musical Called ‘Robin Hood’ — Shakespeare by the Sea, Halifax, 2011; 
Toronto Youth Theatre, Toronto, 2008; TYT, Toronto, 2007
thrafsmata — Pittsburgh New Music Ensemble, Pittsburgh, 2011
Just Out of Reach (excerpts) — Pittsburgh New Music Ensemble, 
Pittsburgh, 2011
Metamorphosis from Just Out of Reach — The Phoenix Concerts, New York, 
2011
Tango from Drunken Moon — Symphonic Salon Series, Kansas City, 2011
Fairy Tale Ending — NextStage Theatre Festival, Toronto, 2011; Best of 
the Fringe & Best of the Fringe Uptown, Toronto, 2010; Toronto Fringe Festival 
FringeKids!, Toronto, 2010
Fantasy Variations on a Theme by Charpentier — ASU Faculty Chamber 
Music Series, Tempe, 2011; Rocky Mountain Summer Conservatory, Steamboat 
Springs, 2010; Le Domaine Forget International Festival, Saint-Irénée, 2009
ToboR the RoboT — Toronto Youth Theatre, Toronto, 2009
Just Out of Reach — Edinburgh Fringe Festival, Edinburgh, 2008
When You Are Old and Grey — ACDA National Convention, Miami, 2007
Drunken Moon — Pittsburgh New Music Ensemble, Pittsburgh, 2006

Studio Recordings:
Suite No. 1 for unaccompanied violin — Suite Inspiration (Soundset 
Recordings), 2012
Fantasy Variations on a Theme by Charpentier — Groteske (Soundset 
Recordings), 2011
Fairy Tale Ending — Fairy Tale Ending Cast Recording (Role Your Own 
Theatre), 2010
Drunken Moon — 30th Anniversary Argosy Recording, (Lime Green 
Productions), 2007
When You Are Old and Grey — 2007 ACDA National Convention (ACDA), 2007

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


Re: time signature question

2012-02-28 Thread James
Kieren,

On 28 February 2012 18:27, Kieren MacMillan
 wrote:
> Hi Neil,
>
>> Can I just say to Kieren: This is awesome (your brief replies below, I mean).
>> You're a great example.
>
> Aw, gee, thanks!  =)
>
> Best regards,
> Kieren.
>
> p.s. I note you're at BYU… One of my [Lilypond-engraved] choral pieces will 
> get its world premiere on March 24 in Sandy, UT 
> (http://www.saltlakechoralartists.org/concerts_events), which isn't too far 
> away — maybe you'll have a chance to see it?

Could we add it here?

http://lilypond.org/productions.html


James

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


Re: time signature question

2012-02-28 Thread Kieren MacMillan
Hi Neil,

> Can I just say to Kieren: This is awesome (your brief replies below, I mean).
> You're a great example.

Aw, gee, thanks!  =)

Best regards,
Kieren.

p.s. I note you're at BYU… One of my [Lilypond-engraved] choral pieces will get 
its world premiere on March 24 in Sandy, UT 
(http://www.saltlakechoralartists.org/concerts_events), which isn't too far 
away — maybe you'll have a chance to see it?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: time signature question

2012-02-28 Thread David Kastrup
Neil Thornock  writes:

> On Mon, Feb 27, 2012 at 6:41 PM, Kieren MacMillan 
>  wrote:
>> Hi David,
>>
>>> if you think a bounty is exaggerated
>>
>> I thought nothing of the sort.
>>
>>> In short, it was a five-minute job because of work I did
>>
>> I had no doubt that was true.
>>
>> I'm going to be sending you a payment soon.
>>
>> Thanks again,
>> Kieren.
>
> Can I just say to Kieren: This is awesome (your brief replies below, I
> mean).
>
> You're a great example.

Isn't it great that this list has such a rich variety of role models to
offer?

-- 
David Kastrup


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


Re: time signature question

2012-02-28 Thread Neil Thornock
Can I just say to Kieren: This is awesome (your brief replies below, I mean).

You're a great example.

On Mon, Feb 27, 2012 at 6:41 PM, Kieren MacMillan
 wrote:
> Hi David,
>
>> if you think a bounty is exaggerated
>
> I thought nothing of the sort.
>
>> In short, it was a five-minute job because of work I did
>
> I had no doubt that was true.
>
> I'm going to be sending you a payment soon.
>
> Thanks again,
> Kieren.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



-- 
Neil Thornock, D.M.
No Stopping, Standing, or Parking:
http://neilthornock.net/mp3s/nostopping.mp3
Assistant Professor of Music
Composition/Theory
Brigham Young University

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


Re: time signature question

2012-02-27 Thread Kieren MacMillan
Hi David,

> if you think a bounty is exaggerated

I thought nothing of the sort.

> In short, it was a five-minute job because of work I did

I had no doubt that was true.

I'm going to be sending you a payment soon.

Thanks again,
Kieren.

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


Re: time signature question

2012-02-27 Thread David Kastrup
David Kastrup  writes:

> Kieren MacMillan  writes:

>> It works resonably well… However, I would *LOVE* to be able to replace
>>
>> \tsFunky #"7" #"16." \time 21/32
>>
>> with something more like
>>
>> \tsFunky s16.*7
>>
>> and have the function figure out the correct measure length for me (in this 
>> case, 21 thirty-second notes), and then display the correct 
>> "number-over-note" time signature (in this case, a '7' over a 
>> dotted-sixteenth note). Is this possible?
>
> Hey, this is almost cute enough for a bounty:
>
> \version "2.15.29"
>
> tsFunky =
>   #(define-music-function
> (parser location dur)
> (ly:duration?)
> #{
>   \once \override Staff.TimeSignature #'stencil = 
> #ly:text-interface::print
>   \once \override Staff.TimeSignature #'text =
> \markup \override #'(baseline-skip . 0.5) \center-column {
>  \number #(number->string (car (ly:duration-factor dur)))
>  \note-by-number #(ly:duration-log dur) #(ly:duration-dot-count dur) 
> #DOWN }
>\time #(cons (ly:moment-main-numerator (ly:duration-length dur))
>(ly:moment-main-denominator (ly:duration-length dur)))
>   #})
>
> theMusic = {
>   \tsFunky 16.*7 R16.*7 |
> }
>
> { \theMusic }

And if you think a bounty is exaggerated because that was a 5 minute
job:

The music function can take a duration argument because of work I did.
\number can take a normal Scheme argument because of work I did
(admittedly, using $ instead of # would have been easy enough).  \time
is a music function that can take its value as a computed cons because
of work I did.  Using dur throughout the #{ ... #} is as straightforward
because of work I did (admittedly, juggling with the right kind of $
would have worked as well).

In short, it was a five-minute job because of work I did, and you have a
reasonable chance to get similar jobs done yourself if needed: the
construct is not really significantly more complex than what you already
came up with.

-- 
David Kastrup


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


Re: time signature question

2012-02-26 Thread Hans Aberg
On 26 Feb 2012, at 20:06, David Kastrup wrote:

>>> this is almost cute enough for a bounty:
>> 
>> It works exactly as I had hoped.
>> What's a reasonable fee for your effort?
> 
> Hard to say.  Writing this up now was good for about €18 (5 minutes was
> a bit boastful as an estimate, even though this went through without
> major puzzlers).  If you want to show your appreciation that I was
> responsible for a lot of the infrastructure actually turning this into a
> straightforward job, you can take your pick of either
> 
> a) doubling the amount
> 
> b) creating and "issueing" a nice snippet from it (probably using
>   something like \repeat unfold 7 c'8. or so as a somewhat more
>   illustrative content) and going through all the motions until it has
>   made its way into the LilyPond documentation.
> 
> I think that this code would make for a nice snippet.  It exercises a
> fair bit of functionality without major distractions in between.

It would be nice if it would make it into the LilyPond distribution.

The snippet is equivalent to
  \time 21/16
  \set beatStructure = #'(3 3 3 3 3 3 3)
and then set time signature style (which I think possibly is called "visual"). 
(Just count sequences of equal notes, and put a count number above.)

If there in the future is an extension to more complex meters, this style would 
fit nicely. WP says that though only few composers use it, it is more common in 
music education.

Carl Orff, in Carmina Burana, actually wrote it with a slash "/" above, once 
for the whole orchestral score. Also, for some reason, in the music, he write 
the stems always to the right, for some reason, but it is not typeset that way.

As for other styles, one might just write the 21/16 and let the beaming tell 
the metric grouping, but a nice variation someone here had was to write the 
decomposition above the time signature. In this case, this would have been the 
"+" notation 3+3+3+3+3+3+3, which tends to be long. So this "visual" style 
might be used here, too.

Hans



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


Re: time signature question

2012-02-26 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> this is almost cute enough for a bounty:
>
> It works exactly as I had hoped.
> What's a reasonable fee for your effort?

Hard to say.  Writing this up now was good for about €18 (5 minutes was
a bit boastful as an estimate, even though this went through without
major puzzlers).  If you want to show your appreciation that I was
responsible for a lot of the infrastructure actually turning this into a
straightforward job, you can take your pick of either

a) doubling the amount

b) creating and "issueing" a nice snippet from it (probably using
   something like \repeat unfold 7 c'8. or so as a somewhat more
   illustrative content) and going through all the motions until it has
   made its way into the LilyPond documentation.

I think that this code would make for a nice snippet.  It exercises a
fair bit of functionality without major distractions in between.

-- 
David Kastrup

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


Re: time signature question

2012-02-26 Thread Kieren MacMillan
Hi David,

> this is almost cute enough for a bounty:

It works exactly as I had hoped.
What's a reasonable fee for your effort?

Thanks,
Kieren.

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


Re: time signature question

2012-02-26 Thread David Kastrup
Kieren MacMillan  writes:

> Hello again,
>
> So I was able to work out the following function:
>
> \version "2.15.29"
>
> tsFunky =
>   #(define-music-function
> (parser location numerNum denomNote)
> (string? string?)
> #{
>   \once \override Staff.TimeSignature #'stencil = 
> #ly:text-interface::print
>   \once \override Staff.TimeSignature #'text =
> \markup \override #'(baseline-skip . 0.5) \center-column { \number 
> #numerNum \note #denomNote #DOWN }
> #})
>
> theMusic = {
>   \tsFunky #"7" #"16." \time 21/32 R16.*7 |
> }
>
> \score { \theMusic }
>
> It works resonably well… However, I would *LOVE* to be able to replace
>
> \tsFunky #"7" #"16." \time 21/32
>
> with something more like
>
> \tsFunky s16.*7
>
> and have the function figure out the correct measure length for me (in this 
> case, 21 thirty-second notes), and then display the correct 
> "number-over-note" time signature (in this case, a '7' over a 
> dotted-sixteenth note). Is this possible?

Hey, this is almost cute enough for a bounty:

\version "2.15.29"

tsFunky =
  #(define-music-function
(parser location dur)
(ly:duration?)
#{
  \once \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \once \override Staff.TimeSignature #'text =
\markup \override #'(baseline-skip . 0.5) \center-column {
 \number #(number->string (car (ly:duration-factor dur)))
 \note-by-number #(ly:duration-log dur) #(ly:duration-dot-count dur) #DOWN }
   \time #(cons (ly:moment-main-numerator (ly:duration-length dur))
 (ly:moment-main-denominator (ly:duration-length dur)))
  #})

theMusic = {
  \tsFunky 16.*7 R16.*7 |
}

{ \theMusic }

-- 
David Kastrup

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


Re: time signature question

2012-02-26 Thread Kieren MacMillan
Hello again,

So I was able to work out the following function:

\version "2.15.29"

tsFunky =
  #(define-music-function
(parser location numerNum denomNote)
(string? string?)
#{
  \once \override Staff.TimeSignature #'stencil = #ly:text-interface::print
  \once \override Staff.TimeSignature #'text =
\markup \override #'(baseline-skip . 0.5) \center-column { \number 
#numerNum \note #denomNote #DOWN }
#})

theMusic = {
  \tsFunky #"7" #"16." \time 21/32 R16.*7 |
}

\score { \theMusic }

It works resonably well… However, I would *LOVE* to be able to replace

\tsFunky #"7" #"16." \time 21/32

with something more like

\tsFunky s16.*7

and have the function figure out the correct measure length for me (in this 
case, 21 thirty-second notes), and then display the correct "number-over-note" 
time signature (in this case, a '7' over a dotted-sixteenth note). Is this 
possible?

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


Re: time signature between staves

2011-09-28 Thread Jan-Peter Voigt

Yes it is possible!
You could use a Dynamics context. I usaly have a meta-var containing the 
run of the music. So I can put it in the whole partitura and in the 
single voice sheets.

So my setup has a structure like this:
--snip--
\version "2.14.2"

meta = {
  \time 3/4 s2. | \time 4/4 s1 | \time 5/4 s4*5 | \time 4/4 s1 \bar "|."
}
blindmusic = \relative c'' {
  c4 b a | b c d c | g a b c d | c g e c |
}

\score {
  \new StaffGroup <<
\new Staff <<
  \meta
  \blindmusic
>>
\new Staff <<
  \meta
  \blindmusic
>>
% add a Dynamics context with time sig engraver
\new Dynamics \with {
  \consists "Time_signature_engraver"
} <<
  \meta
  \blindmusic
>>
\new Staff <<
  \meta
  \blindmusic
>>
\new Staff <<
  \meta
  \blindmusic
>>
>>
  \layout {
\context {
  \Staff
  % switch off time signature in Staff
  \override TimeSignature #'stencil = ##f
}
  }
}
--snip--

You might also put tempo information in that context with an extra engraver:
#(define-public tempo_engraver (lambda (context)
  `((listeners
 (tempo-change-event
   . ,(lambda (engraver event)
   (let ((text (ly:engraver-make-grob engraver 
'TextScript event)))
(ly:grob-set-property! text 'text (markup 
#:normal-text (ly:event-property event 'text)))

(ly:grob-set-property! text 'direction UP)
   
)))
and \consists \tempo_engraver.
Here it uses TextScript events ... you might need to tweak the 
positions. But this is probably not what you where looking for ;-)


Cheers,
Jan-Peter

Am 27.09.2011 21:33, schrieb Peter O'Doherty:

Hi,

I have a system with 4 staves and instead of each stave having a time 
signature (which changes regularly) I would like to place the time 
signature between the second and third stave only. Is this possible? 
And if so, how?


Many thanks,
Peter




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


Re: time signature between staves

2011-09-27 Thread Marek Klein
Hello,

2011/9/27 Peter O'Doherty 

> Hi,
>
> I have a system with 4 staves and instead of each stave having a time
> signature (which changes regularly) I would like to place the time signature
> between the second and third stave only. Is this possible? And if so, how?
>

this could help you (I guess):
http://lsr.dsi.unimi.it/LSR/Item?id=272

HTH

Marek
--
Marek Klein
http://gregoriana.sk
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Time signature change within bars

2011-02-14 Thread -Eluze


Kieren MacMillan wrote:
> 
> 
> 
> \relative c' {
>   \clef bass
>   \time 6/8
>   b b, b b b b |
>   b4. s4 \set Timing.measurePosition = #(ly:make-moment 6 8)  \time 4/4
> g'8. g16 |
>   a4 g
> }
> 
> Same as an in-bar key signature: the composer has the choice of waiting
> until the bar to change the key (resp. time) signature and deal with the
> accidentals (resp. timing) in the current bar, or change the key (resp.
> time) signature mid-bar and not have to deal with any accidentals (resp.
> timing issues).
> 
> 
thanks, Kieren, for bringing me back to the real logic!

another small improvement concerns the spacing problem; with

\textLengthOn 
b4. - \markup {\hspace #5 " "} \set Timing.measurePosition =
#(ly:make-moment 6 8) 
\textLengthOff

you can easily choose the distance from the last note to the time key.

cheers
Eluze
-- 
View this message in context: 
http://old.nabble.com/Time-signature-change-within-bars-tp30908938p30919683.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Time signature change within bars

2011-02-13 Thread Arne Peters

hello Kieren,



Kieren MacMillan wrote:
> 
> .
>   b b, b b b b |
>   b4. s4 \set Timing.measurePosition = #(ly:make-moment 6 8)  \time 4/4
> g'8. g16 |
> .
> 
> Hope this helps!
> Kieren
> 
> 


thanks for pointing that out,
it might have raised some eyebrows if I'd delivered the score with the
"reduced" bar numbering ...
I have been transcribing music with a computer since the days of Notator SL
(about 1988), and Lilypond is still new to me ( since 2.10.xx ) and so far I
have been asked to provide sheet music in Fin or Sib... 

Arne



-- 
View this message in context: 
http://old.nabble.com/Time-signature-change-within-bars-tp30908938p30918786.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Time signature change within bars

2011-02-13 Thread Kieren MacMillan
Hi Ed,

> Kudos to Eluze for figuring out such a work-around.

Another improvement (on a great workaround!) would be to fix the bar numbering 
problem it introduces:

\version "2.13.46"
\include "english.ly"

\layout {
  \context {
\Score
 \override BarNumber #'break-visibility = #'#(#t #t #t)
 barNumberVisibility = #(every-nth-bar-number-visible 1)
  }
}

\relative c' {
  \clef bass
  \time 6/8
  b b, b b b b |
  b4. s4 \set Timing.measurePosition = #(ly:make-moment -2 8)  \time 4/4
g'8. g16 |
  a4 g
}

\relative c' {
  \clef bass
  \time 6/8
  b b, b b b b |
  b4. s4 \set Timing.measurePosition = #(ly:make-moment 6 8)  \time 4/4
g'8. g16 |
  a4 g
}

> Heck, I've been a musician 40 of my 45 years, and can't even understand what 
> an in-bar time signature change really means.

Same as an in-bar key signature: the composer has the choice of waiting until 
the bar to change the key (resp. time) signature and deal with the accidentals 
(resp. timing) in the current bar, or change the key (resp. time) signature 
mid-bar and not have to deal with any accidentals (resp. timing issues).

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Time signature change within bars

2011-02-13 Thread Ed Ardzinski


 

Despite being in the stone age wrt to LP versions, I think "apologizing"is not 
necessary.  It takes some effort to apply new ideas, and it's a testiment to 
tenacity that you looked over the snippet and found that you were making a 
mistake.  Kudos to you!
 
Kudos to Eluze for figuring out such a work-around.  I can't be sure if it was 
ever encountered before, but the speed that it was presented was incredible.  
As is LP, and this group.
 
Heck, I've been a musician 40 of my 45 years, and can't even understand what an 
in-bar time signature change really means.  That LP can handle it is amazing, 
similar to an instance some years ago about unusual time signatures like 5/9, 
and how LP can handle that type of rhythmic oddity right out the box.
 
The folks who give up on this program are obviously not cut out for it.  It is 
clear they are just not trying hard enough to break through the first stages of 
the learning curve.  Apparently there is no real end to the learning curve.  
Maybe that spooks some people; if that's the case, too bad.  Their loss!
 
And despite still using the 2.6 series, I still find useful discussion here, 
even if sometimes it's on a more philosphic level.  Thanks all!
 
> I have to apologize ... I looked over my code with the snippet again after
> breakfast this morning, and I had one spacer note too many in my code (with
> \global and \music in separate +.ily-files included into one layout.ly ...)
> 
> Now everything works just fine as you suggested, thanks again 
>   ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   >