Re: multi measure rests

2013-05-03 Thread bobr...@centrum.is


- Original Message -
From: "Sarah k Alawami" 
To: "lilly pond discuss discuss" 
Sent: Friday, May 3, 2013 4:13:44 PM
Subject: multi measure rests

I read the docs on how to do this but is there an easier way to memorize how to 
do this? the fractions confuse the heck out of me lol! I'm in 12/8 so I'll have 
4 doted quarter notes so would the multi measure rest look like this for one 
measure

R4. R4. R4. R4. |
for example?

Thanks all. and sorry for all of the questions.

Take care.

For one measure rest in 12/8:

R1.

Several measures rest in 12/8, for example, 8 measures:

R1.*8

-David

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


multi measure rests

2013-05-03 Thread Sarah k Alawami
I read the docs on how to do this but is there an easier way to memorize how to 
do this? the fractions confuse the heck out of me lol! I'm in 12/8 so I'll have 
4 doted quarter notes so would the multi measure rest look like this for one 
measure

R4. R4. R4. R4. |
for example?

Thanks all. and sorry for all of the questions.

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


Re: Multi measure rests vertical positioning

2013-01-15 Thread Kieren MacMillan
Hi Werner,

> I must solve everything for R manually while r works fine.
> Any ideas to solve that?

Can you write a callback function to determine the position of the r and apply 
it to the R?

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


Multi measure rests vertical positioning

2013-01-14 Thread Werner
Hallo,

I often used just r1 instead of R1 in 4/4 and 2/2 time.

Now I thought, it would be good, to use the horizontally centered full-measure 
rests. BUT:

I write two voices in one staff. For a while the lower voice plays quite high, 
the higher voice rests for some measures.
The r1-rests are printed always "a quint higher" than the lower voice's notes.
The R1-rests are printed always at the top line of the staff, but that makes 
collisions with the notes of the lower voice.

Unfortunately it seems, that the lilypond default is ugly in that situation.
also threads 
http://thread.gmane.org/gmane.comp.gnu.lilypond.general/76997
http://thread.gmane.org/gmane.comp.gnu.lilypond.general/16000
didn't help me so much. (There is a hint, but I think, its bad, if I must solve 
everything for R manually while r works fine.)

Any ideas to solve that?

Werner


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


Re: Multi-measure rests and counter in piano staff

2012-10-21 Thread Marc Hohl

Am 21.10.2012 15:51, schrieb Helge Kruse:

[...]

This measure counter allows a start and a stop. I did not find an 
option to start at a specific number. Image you start at rehearsel 
mark H, have a multi-measure rest of 16 bars. In the 17th measure you 
have some cue notes. It would be nice to start the measure counter 
hear at 17 to count until your intstrument has to play. Therefore the 
start at a specific number would be great. Do you think this can be added?


This is implemented in David's patch already:

\override Staff.MeasureCounter #'count-from = #17

should do the trick.

HTH,

Marc


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


Re: Multi-measure rests and counter in piano staff

2012-10-21 Thread Helge Kruse
2012/10/19 David Nalesnik 
>
> to comment #21 at
> http://code.google.com/p/lilypond/issues/detail?id=2445 .  Understand
> that this version might cause problems if you're running a batch of
> files (which won't happen with the version that's in the review
> process.) The engraver could be added to a Dynamics context, or you
> could put it in one of the Staff contexts and adjust the positioning.
>

This looks very intresting. In the first try I get some errors when I add
it to my more complex score. I will break it down to see, what I did wrong.

This measure counter allows a start and a stop. I did not find an option to
start at a specific number. Image you start at rehearsel mark H, have a
multi-measure rest of 16 bars. In the 17th measure you have some cue notes.
It would be nice to start the measure counter hear at 17 to count until
your intstrument has to play. Therefore the start at a specific number
would be great. Do you think this can be added?

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


Re: Multi-measure rests and counter in piano staff

2012-10-19 Thread David Nalesnik
Hi Helge,

On Thu, Oct 18, 2012 at 10:58 PM, Helge Kruse  wrote:
> Do you  have any idea how to combine the two multi-rest bar counts in a
> piano staff?
>
> Helge
>
> 2012/10/17 Helge Kruse 
>>
>> When playing in an orchestra it's important to count rests. To make this
>> tasks easier you can write numbers into rest measures.
>>
>> Especially for a piano staff it gives a calm picture when the empty space
>> between the staves is used. The attached picture shows this starting at
>> Allegretto. Further it would be good to have the number of multi-measure
>> rests between the staves.
>>
>> How can I write _one_ multi measure rest number in piano staff between the
>> staff lines?

This is the topic of a recent thread, which you might find helpful:
http://www.mail-archive.com/lilypond-user@gnu.org/msg74895.html

>> How can I add a counter starting at a measure n and counting to measure
>> n+x? This should not be the current bar number but an arbitrary counter. If
>> this is not supported, how can I place the counter numbers to the middle of
>> the piano staff?

There is a measure counter currently in the review process, so
hopefully at some point it will make it into the code base.  In the
meantime, you can find a version of this code which can be included in
your .ly file in the discussion of that issue. See the file attached
to comment #21 at
http://code.google.com/p/lilypond/issues/detail?id=2445 .  Understand
that this version might cause problems if you're running a batch of
files (which won't happen with the version that's in the review
process.) The engraver could be added to a Dynamics context, or you
could put it in one of the Staff contexts and adjust the positioning.

Hope this helps.
David

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


Re: Multi-measure rests and counter in piano staff

2012-10-19 Thread Helge Kruse
Do you  have any idea how to combine the two multi-rest bar counts in a
piano staff?

Helge

2012/10/17 Helge Kruse 

> When playing in an orchestra it's important to count rests. To make this
> tasks easier you can write numbers into rest measures.
>
> Especially for a piano staff it gives a calm picture when the empty space
> between the staves is used. The attached picture shows this starting at
> Allegretto. Further it would be good to have the number of multi-measure
> rests between the staves.
>
> How can I write _one_ multi measure rest number in piano staff between the
> staff lines?
> How can I add a counter starting at a measure n and counting to measure
> n+x? This should not be the current bar number but an arbitrary counter. If
> this is not supported, how can I place the counter numbers to the middle of
> the piano staff?
>
> Regards
> Helge
>
> \version "2.16.0"
>
> up = \relative c' {
>   R1*20 \mark "E" R1*26 | R1*3
>   \time 6/4
>   \tempo Allegretto
>   a'2.\ppp r | r a | r a
> }
>
> down = \relative c {
>   \clef bass
>   R1*20  R1*26 | R1*3^\markup{rall.}
>   \time 6/4
>   a'2. r | r a | r a
> }
>
> \score {
>   \new PianoStaff  {
> <<
>   \new Staff { \compressFullBarRests \up }
>   \new Staff { \compressFullBarRests \down }
> >>
>   }
> }
>
>
>
> ___
> 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


Multi-measure rests and counter in piano staff

2012-10-16 Thread Helge Kruse
When playing in an orchestra it's important to count rests. To make this 
tasks easier you can write numbers into rest measures.


Especially for a piano staff it gives a calm picture when the empty 
space between the staves is used. The attached picture shows this 
starting at Allegretto. Further it would be good to have the number of 
multi-measure rests between the staves.


How can I write _one_ multi measure rest number in piano staff between 
the staff lines?
How can I add a counter starting at a measure n and counting to measure 
n+x? This should not be the current bar number but an arbitrary counter. 
If this is not supported, how can I place the counter numbers to the 
middle of the piano staff?


Regards
Helge

\version "2.16.0"

up = \relative c' {
  R1*20 \mark "E" R1*26 | R1*3
  \time 6/4
  \tempo Allegretto
  a'2.\ppp r | r a | r a
}

down = \relative c {
  \clef bass
  R1*20  R1*26 | R1*3^\markup{rall.}
  \time 6/4
  a'2. r | r a | r a
}

\score {
  \new PianoStaff  {
<<
  \new Staff { \compressFullBarRests \up }
  \new Staff { \compressFullBarRests \down }
>>
  }
}




IMG.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shorthand notation for multi-measure rests in music with frequent meter changes ?

2011-02-16 Thread Michael Ellis
Thanks Neil, those are good tips.  I'm a long time vim user so
shortcuts are certainly a possibility.  OTOH, I've recently found that
JEdit + LilyPondTool makes a real difference in my productivity
compared to vim + some helper scripts I had put together.

I know JEdit has its own Java-based macro language but if I'm going to
let coding distract me from music (happens waaayyy too often) I might
as well put the time into getter better at Scheme.

Anyway, I do appreciate the suggestions and may put them to use if
creating a music-function looks like too big a time-sink.

Cheers,
Mike



On Wed, Feb 16, 2011 at 2:24 PM, Neil Thornock  wrote:
> I can't answer your question, but I have two responses to the dilemma.
>  First, R2. is more compact than R1*3/4, and R1*2 is better than
> R1*8/4.  Same with R4*5 vs R1*5/4.
>
> Also, if you happen to use Vim -- I keep all my time signatures in a
> separate file from the notes.  It's then simple to map time signatures
> to keystrokes; entering time signatures can be very very fast.  So I
> hit the letter "A" and I get "\time 1/4 s4".
>
> Quick and maybe not helpful answer, but there you go.
>
> On Wed, Feb 16, 2011 at 11:53 AM, Michael Ellis
>  wrote:
>> I'm currently transcribing parts from music with frequently changing
>> meters and segments where a part is resting.  The sequence below is
>> typical.
>>
>>     \time 3/4 R1*3/4 |
>>     \time 3/8 R1*3/8 |
>>     \time 4/4 R1*8/4 |  % 2 bars
>>     \time 3/8 R1*3/8 |
>>
>> Does anyone know how to write a music function that will support a
>> more compact notation? Being able specify the time signature changes
>> and rests shown above with a syntax like the following would be a nice
>> timesaver.
>>
>> mmr = #(define-music-function )
>>
>> \mmr  3/4  3/8  2*4/4  3/8  ...
>>
>> The best I've been able to cobble together is too messy to be useful
>> because of the need to use the # sign before arguments, etc.  In
>> particular, I haven't found any way to pass a bare fraction like 3/4
>> into a music function.
>>
>>
>> Thanks,
>> Mike
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>
>
> --
> Neil Thornock, D.M.
> The recent BYU Symphony Orchestra performance of Plutoids:
> http://neilthornock.net/mp3s/plutoids.mp3
> Assistant Professor of Music
> Composition/Theory
> Brigham Young University
>

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


Re: Shorthand notation for multi-measure rests in music with frequent meter changes ?

2011-02-16 Thread Neil Thornock
I can't answer your question, but I have two responses to the dilemma.
 First, R2. is more compact than R1*3/4, and R1*2 is better than
R1*8/4.  Same with R4*5 vs R1*5/4.

Also, if you happen to use Vim -- I keep all my time signatures in a
separate file from the notes.  It's then simple to map time signatures
to keystrokes; entering time signatures can be very very fast.  So I
hit the letter "A" and I get "\time 1/4 s4".

Quick and maybe not helpful answer, but there you go.

On Wed, Feb 16, 2011 at 11:53 AM, Michael Ellis
 wrote:
> I'm currently transcribing parts from music with frequently changing
> meters and segments where a part is resting.  The sequence below is
> typical.
>
>     \time 3/4 R1*3/4 |
>     \time 3/8 R1*3/8 |
>     \time 4/4 R1*8/4 |  % 2 bars
>     \time 3/8 R1*3/8 |
>
> Does anyone know how to write a music function that will support a
> more compact notation? Being able specify the time signature changes
> and rests shown above with a syntax like the following would be a nice
> timesaver.
>
> mmr = #(define-music-function )
>
> \mmr  3/4  3/8  2*4/4  3/8  ...
>
> The best I've been able to cobble together is too messy to be useful
> because of the need to use the # sign before arguments, etc.  In
> particular, I haven't found any way to pass a bare fraction like 3/4
> into a music function.
>
>
> Thanks,
> Mike
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Neil Thornock, D.M.
The recent BYU Symphony Orchestra performance of Plutoids:
http://neilthornock.net/mp3s/plutoids.mp3
Assistant Professor of Music
Composition/Theory
Brigham Young University

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


Shorthand notation for multi-measure rests in music with frequent meter changes ?

2011-02-16 Thread Michael Ellis
I'm currently transcribing parts from music with frequently changing
meters and segments where a part is resting.  The sequence below is
typical.

    \time 3/4 R1*3/4 |
    \time 3/8 R1*3/8 |
    \time 4/4 R1*8/4 |  % 2 bars
    \time 3/8 R1*3/8 |

Does anyone know how to write a music function that will support a
more compact notation? Being able specify the time signature changes
and rests shown above with a syntax like the following would be a nice
timesaver.

mmr = #(define-music-function )

\mmr  3/4  3/8  2*4/4  3/8  ...

The best I've been able to cobble together is too messy to be useful
because of the need to use the # sign before arguments, etc.  In
particular, I haven't found any way to pass a bare fraction like 3/4
into a music function.


Thanks,
Mike

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


Re: Multi-Measure Rests: Adding to what gets printed?

2010-01-27 Thread rasAK

Alexander,

Yes, I've got what I need for now, so no rush on the fix.  Whenever you do
get to it, let me know and I'll be happy to test.

Randy



Alexander Kobel wrote:
> 
> rasAK wrote:
>> I don't have time to look into this, but wanted you to be aware: I went
>> ahead and used the BarNumberStaff rather than the BarNumberVoice.  In
>> trying
>> to adjust the Y-Offset of the BarNumberVoice, it moves the lyrics down as
>> well.  The BarNumberStaff does not.
> 
> Ah, I think I see the problem.  A MMRNumber is added under every MMR; 
> it's just a "" string for the single measure rests, but even this 
> affects the spacing.  No clue why this does not seem to hurt with the 
> BarNumberStaff approach.
> 
> Maybe I should take the time and test whether an empty stencil instead 
> of the null text helps, but it's not quite on top of my priority queue 
> if you're fine with your current solution.
> 
> 
> Cheers,
> Alexander
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27348877.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: Multi-Measure Rests: Adding to what gets printed?

2010-01-27 Thread Alexander Kobel

rasAK wrote:

I don't have time to look into this, but wanted you to be aware: I went
ahead and used the BarNumberStaff rather than the BarNumberVoice.  In trying
to adjust the Y-Offset of the BarNumberVoice, it moves the lyrics down as
well.  The BarNumberStaff does not.


Ah, I think I see the problem.  A MMRNumber is added under every MMR; 
it's just a "" string for the single measure rests, but even this 
affects the spacing.  No clue why this does not seem to hurt with the 
BarNumberStaff approach.


Maybe I should take the time and test whether an empty stencil instead 
of the null text helps, but it's not quite on top of my priority queue 
if you're fine with your current solution.



Cheers,
Alexander


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


Re: Multi-Measure Rests: Adding to what gets printed?

2010-01-27 Thread rasAK

Alexander,

I don't have time to look into this, but wanted you to be aware: I went
ahead and used the BarNumberStaff rather than the BarNumberVoice.  In trying
to adjust the Y-Offset of the BarNumberVoice, it moves the lyrics down as
well.  The BarNumberStaff does not.

\new BarNumberVoice \with {
\override MultiMeasureRestNumber #'Y-offset = #-7
\override MultiMeasureRestNumber #'font-size = #-2 }
{ \compressFullBarRests \global \TemplateMelody } 

Randy


Alexander Kobel wrote:
> 
> me - stanford wrote:
>> 2) Also, do you think #'outside-staff-priority = #150 is a reasonable 
>> priority setting for the MMR Text?  I'm not sure what most objects' 
>> settings are for this property.  I was just trying to get it to win over 
>> the Lyrics setting.
> 
> Oh, and just a few words about this before I leave for today.
> 
> AFAICS, the Lyrics as well as the BarNumberStaff form a vertically
> aligned group (Is this a VerticalAxisGroup? I'm not sure here...) of
> their own - I think of them as normal staves, basically.
> I _think_ that it should not be possible for grobs of those neighboring
> groups to "cross"; you're merely pushing the MultiMeasureRestNumbers far
> above the center baseline of the BarNumberStaff, and since there are no
> lyrics under a MMR, the skylines of the two squeeze together.  So I
> wonder why 'outside-staff-priority should change anything at all (and
> also didn't test it, to be honest).
> 
> That's why I prefer the approach with an additional voice a single
> staff:  Both MMRNumbers belong to voices in the same staff (read:
> vertical group), just with different directions in which they are
> attached. Thus, your settings are unaffected by, say, a second stanza,
> larger lyrics, dynamics between staff and lyrics, and so on.  An in this
> case, you could also use 'outside-staff-priority and '...-padding, but
> I'm almost certain you won't need them.
> 
> 
> Cheers,
> Alexander
> 
> 
> 
> _______
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27337870.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: Multi-Measure Rests: Adding to what gets printed?

2010-01-26 Thread Alexander Kobel

me - stanford wrote:
2) Also, do you think #'outside-staff-priority = #150 is a reasonable 
priority setting for the MMR Text?  I'm not sure what most objects' 
settings are for this property.  I was just trying to get it to win over 
the Lyrics setting.


Oh, and just a few words about this before I leave for today.

AFAICS, the Lyrics as well as the BarNumberStaff form a vertically
aligned group (Is this a VerticalAxisGroup? I'm not sure here...) of
their own - I think of them as normal staves, basically.
I _think_ that it should not be possible for grobs of those neighboring
groups to "cross"; you're merely pushing the MultiMeasureRestNumbers far
above the center baseline of the BarNumberStaff, and since there are no
lyrics under a MMR, the skylines of the two squeeze together.  So I
wonder why 'outside-staff-priority should change anything at all (and
also didn't test it, to be honest).

That's why I prefer the approach with an additional voice a single
staff:  Both MMRNumbers belong to voices in the same staff (read:
vertical group), just with different directions in which they are
attached. Thus, your settings are unaffected by, say, a second stanza,
larger lyrics, dynamics between staff and lyrics, and so on.  An in this
case, you could also use 'outside-staff-priority and '...-padding, but
I'm almost certain you won't need them.


Cheers,
Alexander



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


Re: Multi-Measure Rests: Adding to what gets printed?

2010-01-26 Thread Alexander Kobel

rasAK wrote:

Alexander,

The only remaining issue is the positioning of the text that results from
your function.  It is currently being placed above the number (which is
above the MMR).  I tried to adjust some of the Y-offset and Y-extent
numbers, but could only get the text to move up.  I would like for it to
print below the MMR (but keeping the number of measures in the MMR above the
MMR).  Something like the following:

 6
 |-|
 ( 121 - 126 )

Thoughts?



Hi, Randy,

I assume you're using a two-voices approach then, where one of the 
voices only contains the MMRs for the measure numbers?
In this case, I _believe_ it should be enough to \override 
MultiMeasureRestNumber #'direction = #DOWN.


If this should not work, can you post your current code?  It should be 
easier to find the tweaks if I see what's going on behind the masks.



Cheers,
Alexander


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


Re: Multi-Measure Rests: Adding to what gets printed?

2010-01-26 Thread rasAK

Alexander,

One other thing.  Your code does solve the "additional wrinkle" I referred
to.  In the attached, at letter I, you will see that a 20 MMR is broken up
by Rehearsal Letter "I" and your function calcs the 2 contiguous MMR ranges
correctly and attaches them.

Randy

http://old.nabble.com/file/p27319831/Bach_Singet_dem_Herrn_04_choir_I_bassoon_pg_2.pdf
Bach_Singet_dem_Herrn_04_choir_I_bassoon_pg_2.pdf 


Alexander Kobel wrote:
> 
> rasAK wrote:
>> In my orchestral parts, I would like Multi-Measure Rests to have both:
>> (1) an integer representing the number of measures in the current MMR,
>> centered above (default behavior)
>> (2) a second text indicating which measures are included in the given
>> MMR,
>> in parentheses and centered BELOW the MMR.
>> 
>> (1) happens automatically.  (2) is what I don't know how to do.
> 
> Hi, Randy,
> 
> http://lsr.dsi.unimi.it/LSR/Item?id=651 includes what you're after, just 
> that it writes a bar number on every single measure by default.  But in 
> principle you can copy most of the overrides concerning 
> MultiMeasureRestNumbers from BarNumberStaff into a second voice (for 
> (2)), which shares but the MMRs with your given voices (which do (1)).
> 
> To add the parentheses, replace lines 99 to 102 by:
> (if (= start-measure end-measure)
>  (string-append "(" (number->string start-measure) ")")  ;; or only 
> "" in this line if you don't want single bars numbered at all
>  (string-append
>   "(" (number->string start-measure) " – " (number->string 
> end-measure) ")"
> 
> If you just want to plug in a BarNumberStaff as shown in the LSR 
> snippet, you just have to write "" in line 100, as stated above, and 
> you're basically done, since single measures won't have a visible 
> BarNumber text in this case.
> 
>> As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm.
>> 9,
>> Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )"
>> and
>> "( 8 - 13 )" below.
> 
> Sorry, no idea on this one.
> 
> 
> Cheers,
> Alexander
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27319831.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: Multi-Measure Rests: Adding to what gets printed?

2010-01-25 Thread rasAK

Alexander,

I've modified the BarNumberStaff code as you suggested.  I also changed one
line in your \layout block.  I commented out the Mark_engraver as I was
getting double boxed rehearsal letters:

%\consists Mark_engraver

The only remaining issue is the positioning of the text that results from
your function.  It is currently being placed above the number (which is
above the MMR).  I tried to adjust some of the Y-offset and Y-extent
numbers, but could only get the text to move up.  I would like for it to
print below the MMR (but keeping the number of measures in the MMR above the
MMR).  Something like the following:

 6
 |-|
 ( 121 - 126 )

Thoughts?

Thanks,

Randy
 


Alexander Kobel wrote:
> 
> rasAK wrote:
>> In my orchestral parts, I would like Multi-Measure Rests to have both:
>> (1) an integer representing the number of measures in the current MMR,
>> centered above (default behavior)
>> (2) a second text indicating which measures are included in the given
>> MMR,
>> in parentheses and centered BELOW the MMR.
>> 
>> (1) happens automatically.  (2) is what I don't know how to do.
> 
> Hi, Randy,
> 
> http://lsr.dsi.unimi.it/LSR/Item?id=651 includes what you're after, just 
> that it writes a bar number on every single measure by default.  But in 
> principle you can copy most of the overrides concerning 
> MultiMeasureRestNumbers from BarNumberStaff into a second voice (for 
> (2)), which shares but the MMRs with your given voices (which do (1)).
> 
> To add the parentheses, replace lines 99 to 102 by:
> (if (= start-measure end-measure)
>  (string-append "(" (number->string start-measure) ")")  ;; or only 
> "" in this line if you don't want single bars numbered at all
>  (string-append
>   "(" (number->string start-measure) " – " (number->string 
> end-measure) ")"
> 
> If you just want to plug in a BarNumberStaff as shown in the LSR 
> snippet, you just have to write "" in line 100, as stated above, and 
> you're basically done, since single measures won't have a visible 
> BarNumber text in this case.
> 
>> As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm.
>> 9,
>> Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )"
>> and
>> "( 8 - 13 )" below.
> 
> Sorry, no idea on this one.
> 
> 
> Cheers,
> Alexander
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27318719.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: Multi-Measure Rests: Adding to what gets printed?

2010-01-23 Thread rasAK

Alexander,

Thanks so much.  I'll take a look at your suggestion in detail.

Randy



rasAK wrote:
> 
> In my orchestral parts, I would like Multi-Measure Rests to have both:
> (1) an integer representing the number of measures in the current MMR,
> centered above (default behavior)
> (2) a second text indicating which measures are included in the given MMR,
> in parentheses and centered BELOW the MMR.
> 
> (1) happens automatically.  (2) is what I don't know how to do.  I'm
> thinking I would have to figure out how to write a Scheme function to do
> this, but as I have never written one before, I wanted to know whether
> there was an existing, non-Scheme solution.
> 
> As an example, given the following input:
> 
> %EXAMPLE 1a
> \time 4/4
> \key c \major
> c4 d e f
> R1*10
> c d e f
> 
> ...output will generate "10" above the MMR.  I would like "( 2 - 11 )"
> generated automatically and centered below it.
> 
> If the input were changed to:
> 
> %EXAMPLE 1b
> \time 4/4
> \key c \major
> c4 d e f
> c d e f
> c d e f
> R1*10
> c d e f
> 
> ...then the output should remain "10" above but change to "( 4 - 13 )"
> below the MMR.
> 
> As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm.
> 9, Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )"
> and "( 8 - 13 )" below.
> 
> Thanks,
> 
> Randy
> 

-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27292508.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: Multi-Measure Rests: Adding to what gets printed?

2010-01-23 Thread Alexander Kobel

rasAK wrote:

In my orchestral parts, I would like Multi-Measure Rests to have both:
(1) an integer representing the number of measures in the current MMR,
centered above (default behavior)
(2) a second text indicating which measures are included in the given MMR,
in parentheses and centered BELOW the MMR.

(1) happens automatically.  (2) is what I don't know how to do.


Hi, Randy,

http://lsr.dsi.unimi.it/LSR/Item?id=651 includes what you're after, just 
that it writes a bar number on every single measure by default.  But in 
principle you can copy most of the overrides concerning 
MultiMeasureRestNumbers from BarNumberStaff into a second voice (for 
(2)), which shares but the MMRs with your given voices (which do (1)).


To add the parentheses, replace lines 99 to 102 by:
   (if (= start-measure end-measure)
(string-append "(" (number->string start-measure) ")")  ;; or only 
"" in this line if you don't want single bars numbered at all

(string-append
 "(" (number->string start-measure) " – " (number->string 
end-measure) ")"


If you just want to plug in a BarNumberStaff as shown in the LSR 
snippet, you just have to write "" in line 100, as stated above, and 
you're basically done, since single measures won't have a visible 
BarNumber text in this case.



As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm. 9,
Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )" and
"( 8 - 13 )" below.


Sorry, no idea on this one.


Cheers,
Alexander


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


Multi-Measure Rests: Adding to what gets printed?

2010-01-23 Thread rasAK

In my orchestral parts, I would like Multi-Measure Rests to have both:
(1) an integer representing the number of measures in the current MMR,
centered above (default behavior)
(2) a second text indicating which measures are included in the given MMR,
in parentheses and centered BELOW the MMR.

(1) happens automatically.  (2) is what I don't know how to do.  I'm
thinking I would have to figure out how to write a Scheme function to do
this, but as I have never written one before, I wanted to know whether there
was an existing, non-Scheme solution.

As an example, given the following input:

%EXAMPLE 1a
\time 4/4
\key c \major
c4 d e f
R1*10
c d e f

...output will generate "10" above the MMR.  I would like "( 2 - 11 )"
generated automatically and centered below it.

If the input were changed to:

%EXAMPLE 1b
\time 4/4
\key c \major
c4 d e f
c d e f
c d e f
R1*10
c d e f

...then the output should remain "10" above but change to "( 4 - 13 )" below
the MMR.

As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm. 9,
Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )" and
"( 8 - 13 )" below.

Thanks,

Randy
-- 
View this message in context: 
http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27288983.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: Markup with multi-measure rests

2009-06-21 Thread David H


...
The second example can easily be modified to get what you want.
Just add \fatText before the first spacer note.

   /Mats

\fatText has now been replaced (V2.12.0) with \textLengthOn
But it doesn't solve the problem completely

I have a multi-voice orchestral piece, needing tempo markings at various
points through the score, so I have put these in a separate voice containing
spacer rests, which is then combined with each of the instruments in turn to
print out their parts.

If the instrument has a multi-measure rest coinciding with the tempo
marking, then everything works fine.  But if the instrument has notes, these
are spaced out unacceptably.  See below.  I can't use textLengthOn and Off
in the 'tempos' voice, because some instruments will be playing at a
particular point, while others will not be.  

Is there some way to have \textLengthOn apply only to multi-measure rests ?
And it would be good if I could get the rehearsal marks all printed at the
same vertical height as well

\version "2.12.0"
notes =  \relative c'' {
R1*3/4*3
c2. d2. e 2.
R1*3/4*6
c2. d2. f2.
}

tempos =  {
\set Score.skipBars = ##t
\time 3/4
\textLengthOn
s2.*0^\markup {fast}

s2.*3\mark \default s2.*0^\markup {a bit faster by bar 4}

s2.*3\mark \default s2.*0^\markup {really fast at bar 7}

s2.*3\mark \default

s2.*3\mark \default
}

\score {
  \context Staff = "test" {
 <<
\tempos
\notes
 >>
  }
   }



-- 
View this message in context: 
http://www.nabble.com/Markup-with-multi-measure-rests-tp13294812p24133834.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


Multi-measure rests and \partcombine

2007-11-06 Thread Joris Grouwels
Hi,

When several voices are combined on one staff with \partcombine,
multi-measure rests in the first voice are only printed in the first
measure of their span if voiceTwo contains skips. The following measures
are empty.

Am I doing something wrong or is this a bug?

When voiceTwo contains rests too, the expected rests are printed (one
rest for both voices).
When voiceTwo contains notes, the rests in voiceOne are note printed: as
expected, only voiceTwo is printed with the "Solo II" indication.

I include an example file which illustrates the three different behaviours:

\version "2.10.25"

testOne={
\time 2/4
R2*4
}
testTwo={s2 s s s}
testThree= \relative c'{c2 d e f}

%supposedly buggy one
\score{
\partcombine
\testOne
\testTwo
}

\score{
\partcombine
\testOne
\testOne
}

\score{
\partcombine
\testOne
\testThree
}

\version "2.10.25"

testOne={
\time 2/4
R2*4
}
testTwo={s2 s s s}
testThree= \relative c'{c2 d e f}

\score{
\partcombine
\testOne
\testTwo
}

\score{
\partcombine
\testOne
\testOne
}

\score{
\partcombine
\testOne
\testThree
}

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


Re: Markup with multi-measure rests

2007-10-19 Thread Graham Percival

Thanks, this first item has been added as
http://code.google.com/p/lilypond/issues/detail?id=495

Cheers,
- Graham


Mats Bengtsson wrote:

To me it seems a bug that you get collisions in your first example.
The second example can easily be modified to get what you want.
Just add \fatText before the first spacer note.

  /Mats

Trevor Daniels wrote:

In the following example of writing a typical part
containing multi-measure rests, the annotation of the rests
in 2.11.34 collides if more notes are added to fill the line
(to simulate this, I've added ragged-right = ##t).  This
seems to be a bug.

The collisions can be avoided in 2.11 by attaching the
annotation to zero-length skip notes at the start of the
bar, but only by displacing some of the annotations
vertically (see second example).  This results in confusing
annotations.  IIRC, in 2.10.20 the bars automatically
expanded to avoid collisions of text attached to skip notes,
keeping the annotation all on one level.  This was much
better in this context.  Is there a way of doing this in
2.11?

% Example of R markup colliding
\version "2.11.34"
\paper { ragged-right = ##t }
{
 \set Score.skipBars = ##t
 R1*4^"Intrumental"
 R1*24^"Solo"
 R1*4^"Instrumental"
 b'2^"Tutti" b'4 a'4
}

% Example of R markup displacing vertically
\version "2.11.34"
\paper { ragged-right = ##t }
{
\set Score.skipBars = ##t
 s1*0^"Intrumental" R1*4
 s1*0^"Solo" R1*24
 s1*0^"Instrumental" R1*4
 b'2^"Tutti" b'4 a'4
}

Trevor D



___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
  





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


Re: Markup with multi-measure rests

2007-10-19 Thread Mats Bengtsson

To me it seems a bug that you get collisions in your first example.
The second example can easily be modified to get what you want.
Just add \fatText before the first spacer note.

  /Mats

Trevor Daniels wrote:

In the following example of writing a typical part
containing multi-measure rests, the annotation of the rests
in 2.11.34 collides if more notes are added to fill the line
(to simulate this, I've added ragged-right = ##t).  This
seems to be a bug.

The collisions can be avoided in 2.11 by attaching the
annotation to zero-length skip notes at the start of the
bar, but only by displacing some of the annotations
vertically (see second example).  This results in confusing
annotations.  IIRC, in 2.10.20 the bars automatically
expanded to avoid collisions of text attached to skip notes,
keeping the annotation all on one level.  This was much
better in this context.  Is there a way of doing this in
2.11?

% Example of R markup colliding
\version "2.11.34"
\paper { ragged-right = ##t }
{
 \set Score.skipBars = ##t
 R1*4^"Intrumental"
 R1*24^"Solo"
 R1*4^"Instrumental"
 b'2^"Tutti" b'4 a'4
}

% Example of R markup displacing vertically
\version "2.11.34"
\paper { ragged-right = ##t }
{
\set Score.skipBars = ##t
 s1*0^"Intrumental" R1*4
 s1*0^"Solo" R1*24
 s1*0^"Instrumental" R1*4
 b'2^"Tutti" b'4 a'4
}

Trevor D



___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
  


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



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


Markup with multi-measure rests

2007-10-19 Thread Trevor Daniels

In the following example of writing a typical part
containing multi-measure rests, the annotation of the rests
in 2.11.34 collides if more notes are added to fill the line
(to simulate this, I've added ragged-right = ##t).  This
seems to be a bug.

The collisions can be avoided in 2.11 by attaching the
annotation to zero-length skip notes at the start of the
bar, but only by displacing some of the annotations
vertically (see second example).  This results in confusing
annotations.  IIRC, in 2.10.20 the bars automatically
expanded to avoid collisions of text attached to skip notes,
keeping the annotation all on one level.  This was much
better in this context.  Is there a way of doing this in
2.11?

% Example of R markup colliding
\version "2.11.34"
\paper { ragged-right = ##t }
{
 \set Score.skipBars = ##t
 R1*4^"Intrumental"
 R1*24^"Solo"
 R1*4^"Instrumental"
 b'2^"Tutti" b'4 a'4
}

% Example of R markup displacing vertically
\version "2.11.34"
\paper { ragged-right = ##t }
{
\set Score.skipBars = ##t
 s1*0^"Intrumental" R1*4
 s1*0^"Solo" R1*24
 s1*0^"Instrumental" R1*4
 b'2^"Tutti" b'4 a'4
}

Trevor D



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


Re: Multi-measure rests again again

2003-09-26 Thread Paul Scott
Han-Wen Nienhuys wrote:

[EMAIL PROTECTED] writes:
 

Han-Wen Nienhuys wrote:

   

Added this to the doco:

If you want to have a text on the left end of a multi-measure rest,
attach the text to a zero-length skip note, i.e.
@example
s1*0^"Allegro"
R1*4 
@end example

 

This makes the multimeasure excessively wide and actually steals space 
from a following MM rest.
   

Ah, that seems to be a bug. I fixed it partially in 2.0 CVS.
For the moment, you might want to put the "allegro" atop the 72 \mark.
I tried this again with Ferenc's 2.0.0 deb's and don't see an improvement.

Also after the above example from the doco did you mean to show the
graphic for the example?
Thanks,

Paul


\score {
<<
\property Score.skipBars = ##t
\context Staff = clarinet <<
{ 
\notes {
\time 3/4 \mark "72"
<< s1*0^\markup{ Largo } R4*3*11 >>
\mark "73" R4*3*11 \mark "74" R4*3*2
d'2\pp\fermata r4 \bar "||"
}
}
>>
>>
\paper {}
}



mmtest2.pdf
Description: Adobe PDF document
___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-24 Thread Paul Scott
Han-Wen Nienhuys wrote:

[EMAIL PROTECTED] writes:
 

This makes the multimeasure excessively wide and actually steals space 
from a following MM rest.
   

Ah, that seems to be a bug. I fixed it partially in 2.0 CVS.
For the moment, you might want to put the "allegro" atop the 72 \mark.
Excellent!  Thanks,

Paul



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-24 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> Han-Wen Nienhuys wrote:
> 
> >Added this to the doco:
> >
> >If you want to have a text on the left end of a multi-measure rest,
> >attach the text to a zero-length skip note, i.e.
> >
> >@example
> >  s1*0^"Allegro"
> >  R1*4 
> >@end example
> >
> This makes the multimeasure excessively wide and actually steals space 
> from a following MM rest.

Ah, that seems to be a bug. I fixed it partially in 2.0 CVS.
For the moment, you might want to put the "allegro" atop the 72 \mark.

-- 

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


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-23 Thread Paul Scott
Paul Scott wrote:

(Lily 1.8.1 on Debian unstable)

This makes the multimeasure excessively wide and actually steals space 
from a following MM rest.

Paul



\score {
   <
	\property Score.skipBars = ##t
	\context Staff = clarinet <
	{ 
		\notes {
		\time 3/4 \mark "72"
		< s1^\markup{ Largo } R4*3*11 >
		\mark "73" R4*3*11 \mark "74" R4*3*2
		d'2\pp\fermata r4 \bar "||"
		}
	}
	>
   >
   \paper {}
}
   



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user
 





___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-23 Thread Paul Scott
Han-Wen Nienhuys wrote:

Added this to the doco:

If you want to have a text on the left end of a multi-measure rest,
attach the text to a zero-length skip note, i.e.
@example
 s1*0^"Allegro"
 R1*4 
@end example

This makes the multimeasure excessively wide and actually steals space 
from a following MM rest.

Paul

\score {
<
\property Score.skipBars = ##t
\context Staff = clarinet <
{ 
\notes {
\time 3/4 \mark "72"
< s1^\markup{ Largo } R4*3*11 >
\mark "73" R4*3*11 \mark "74" R4*3*2
d'2\pp\fermata r4 \bar "||"
}
}
>
>
\paper {}
}


mmtest2.ps
Description: PostScript document
___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


RE: Multi-measure rests again again

2003-09-23 Thread Ralph Little
That's funky!
Thanks, I'll give it a try!

Ralph

-Original Message-
From: Han-Wen Nienhuys [mailto:[EMAIL PROTECTED] 
Sent: 23 September 2003 10:28
To: [EMAIL PROTECTED]
Cc: Ralph Little; [EMAIL PROTECTED]
Subject: Re: Multi-measure rests again again


[EMAIL PROTECTED] writes:
> Ralph Little wrote:
> 
> >Hi 
> >Looking through the archives, there seems to be a lot of issues relating
to
> >attaching text markup to MultiMeasure rests.
> >One general solutions seems to be along the lines of
> >
> > 
> >
> >...or somesuch.
> >
> >I'm running 1.8.2 now. 
> >What's the recommended way of attaching text to multi-measure rests now?
> >Is there a better way?
> >
> The answer should be R1*2^\markup{ Allegro } but the markup hides the 
> measure count.  I am waiting for a comment on that problem.

Added this to the doco:


If you want to have a text on the left end of a multi-measure rest,
attach the text to a zero-length skip note, i.e.

@example
  s1*0^"Allegro"
  R1*4 
@end example


-- 

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

-- 
Our communications with you matter to us. This e-mail and any attachments
are confidential and are sent on the basis of our copyright, e-mail and
security policy which can be inspected by visiting
http://www.tribaldata.co.uk/contact_index.asp. and clicking on the print
friendly link. If you are not the intended recipient, please notify the
sender and delete this message.  Thank you. 
-- 



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


RE: Multi-measure rests again again

2003-09-23 Thread Ralph Little
Hi,
This is exactly the issue that I am having!
Same goes for:

R1*2_\markup{ Allegro }

..I guess.

Regards,
Ralph

-Original Message-
From: Paul Scott [mailto:[EMAIL PROTECTED] 
Sent: 23 September 2003 10:09
To: Ralph Little
Cc: [EMAIL PROTECTED]
Subject: Re: Multi-measure rests again again


Ralph Little wrote:

>Hi 
>Looking through the archives, there seems to be a lot of issues relating to
>attaching text markup to MultiMeasure rests.
>One general solutions seems to be along the lines of
>
>   
>
>...or somesuch.
>
>I'm running 1.8.2 now. 
>What's the recommended way of attaching text to multi-measure rests now?
>Is there a better way?
>
The answer should be R1*2^\markup{ Allegro } but the markup hides the 
measure count.  I am waiting for a comment on that problem.

Paul Scott


-- 
Our communications with you matter to us. This e-mail and any attachments
are confidential and are sent on the basis of our copyright, e-mail and
security policy which can be inspected by visiting
http://www.tribaldata.co.uk/contact_index.asp. and clicking on the print
friendly link. If you are not the intended recipient, please notify the
sender and delete this message.  Thank you. 
-- 



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-23 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> Ralph Little wrote:
> 
> >Hi 
> >Looking through the archives, there seems to be a lot of issues relating to
> >attaching text markup to MultiMeasure rests.
> >One general solutions seems to be along the lines of
> >
> > 
> >
> >...or somesuch.
> >
> >I'm running 1.8.2 now. 
> >What's the recommended way of attaching text to multi-measure rests now?
> >Is there a better way?
> >
> The answer should be R1*2^\markup{ Allegro } but the markup hides the 
> measure count.  I am waiting for a comment on that problem.

Added this to the doco:


If you want to have a text on the left end of a multi-measure rest,
attach the text to a zero-length skip note, i.e.

@example
  s1*0^"Allegro"
  R1*4 
@end example


-- 

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


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-measure rests again again

2003-09-23 Thread Paul Scott
Ralph Little wrote:

Hi 
Looking through the archives, there seems to be a lot of issues relating to
attaching text markup to MultiMeasure rests.
One general solutions seems to be along the lines of

	

...or somesuch.

I'm running 1.8.2 now. 
What's the recommended way of attaching text to multi-measure rests now?
Is there a better way?

The answer should be R1*2^\markup{ Allegro } but the markup hides the 
measure count.  I am waiting for a comment on that problem.

Paul Scott



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Multi-measure rests again again

2003-09-23 Thread Ralph Little
Hi 
Looking through the archives, there seems to be a lot of issues relating to
attaching text markup to MultiMeasure rests.
One general solutions seems to be along the lines of



...or somesuch.

I'm running 1.8.2 now. 
What's the recommended way of attaching text to multi-measure rests now?
Is there a better way?

Cheers (in advance),
Ralph

-- 
Our communications with you matter to us. This e-mail and any attachments
are confidential and are sent on the basis of our copyright, e-mail and
security policy which can be inspected by visiting
http://www.tribaldata.co.uk/contact_index.asp. and clicking on the print
friendly link. If you are not the intended recipient, please notify the
sender and delete this message.  Thank you. 
-- 



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: text markup for long multi-measure rests

2003-03-29 Thread John Williams
Yes, I'm aware of that workaround.  I'm trying to use it now, but the
results are rather less-than-satisfactory.

Including a time on the 's' separates the measure with the textscript from
the rest of the multi-measure rest.

 < R1*18 s1_"Allegro" >

Omitting the time on the 's' makes the textscript appear under the entire
multi-measure rest, which is exactly what is wanted.  However it can also
cause very severe horizontal spacing problems, beginning on the line of
the rest, and continuing to the end of the score.  (I can send an example
of this, if anyone is interested.)

 < R1*18 s_"Allegro" >

So I wonder why the effort to add textscripts to multi-measures rests if
they only work with single-measure multi-measure rests, and the < R s >
workaround already provides more (although somewhat flawed) funtionality?

~ John Williams


On Sat, 29 Mar 2003, Graham Percival wrote:

> On Sat, 29 Mar 2003 13:13:17 -0700 (MST)
> John Williams <[EMAIL PROTECTED]> wrote:
> > How to I attach text markup to long multi-measure rests?
>
> You do a quick search in the mailist archives, at:
> http://mail.gnu.org/archive/html/lilypond-user/
>
> and find this thread:
> http://mail.gnu.org/archive/html/lilypond-user/2002-11/msg00155.html
>
> - Graham
>



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: text markup for long multi-measure rests

2003-03-29 Thread Graham Percival
On Sat, 29 Mar 2003 13:13:17 -0700 (MST)
John Williams <[EMAIL PROTECTED]> wrote:
> How to I attach text markup to long multi-measure rests?

You do a quick search in the mailist archives, at:
http://mail.gnu.org/archive/html/lilypond-user/

and find this thread:
http://mail.gnu.org/archive/html/lilypond-user/2002-11/msg00155.html

- Graham


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


text markup for long multi-measure rests

2003-03-29 Thread John Williams
How to I attach text markup to long multi-measure rests?

I've looked at multi-measure-rest-text.ly, but it only contains examples
for *single-measure* multi-measure rests.  I want to do something like
this:

 \property Score.skipBars = ##t
   R2.*20_"Tacet"

Perhaps something like that should be added to multi-measure-rest-text.ly.

~ John Williams






___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Re: Modifying multi-measure rests

2002-10-09 Thread Kim Shrier

I have made some source patches against multi-measure-rest-engraver.cc and
multi-measure-rest.cc to modify the rest used to represent 1 measure in a
multi-measure rest.  It uses the value of the measureLength property to
determine if it should use a whole or breve rest.  If the length of the
a measure is a breve or more, it uses a breve.  Otherwise it uses a whole
rest like it normally does.  I am including patches against both 1.6.5 and
1.7.2 as well as mmrest_test.ly which shows the behaviour.  I would 
appreciate
any feedback you might have on these changes.

One other question.  In measure 206, the dotted whole rest places the dot
in the space above the rest.  This is how lilypond typeset this before I
made any changes.  Is this the desired result?  Shouldn't the dot be in
the space next to the rest?

Thanks
Kim


Kim Shrier wrote:

> Hello,
>I am new to LilyPond and I have a question about the best way to 
> approach
> a problem.  I am typesetting some music and the time signature is 4/2.  I
> would like to modify the behaviour of multi-measure rests to use a breve
> rest to represent 1 measure instead of a whole rest since the duration of
> 1 measure is a breve.  I have looked at the church_rest method in
> multi-measure-rest.cc and I think I see how to modify it as well as the
> symbol_molecule method.  I would also have to define a parameter to get
> the information to these methods so they would know whether they were 
> using
> a whole or breve rest as their base.  This seems like a lot of work.
>
> Since one of the nice things about LilyPond is how flexible it is and you
> have hooks to get at almost everything, I was wondering if there is a 
> better
> way to approach this problem.  As I said earlier, I am new to LilyPond 
> and
> I don't have a good feel for what is possible without modifying the 
> source.
>
> Thanks,
> Kim
>


-- 
 Kim Shrier - principal, Shrier and Deihl - mailto:[EMAIL PROTECTED]
Remote Unix Network Admin, Security, Internet Software Development
  Tinker Internet Services - Superior FreeBSD-based Web Hosting
 http://www.tinker.com/




--- lily/multi-measure-rest-engraver.cc.origSun Aug  4 11:56:18 2002
+++ lily/multi-measure-rest-engraver.cc Wed Oct  9 10:19:02 2002
@@ -162,6 +162,9 @@
   int cur = gh_scm2int (get_property ("currentBarNumber"));
   lastrest_->set_grob_property ("measure-count",
 gh_int2scm (cur - start_measure_));
+  SCM sml = get_property ("measureLength");
+  lastrest_->set_grob_property ("measure-length", sml);
+
   mmrest_ = 0;
 }
 }
@@ -178,9 +181,10 @@
 
 ENTER_DESCRIPTION(Multi_measure_rest_engraver,
 /* descr */   "Engraves multi-measure rests that are produced with @code{R}.  
Reads
-measurePosition and currentBarNumber to determine what number to print over the 
MultiMeasureRest
+measurePosition and currentBarNumber to determine what number to print over the 
+MultiMeasureRest.
+Reads measureLength to determine if it should use a whole rest or a breve rest to 
+represent 1 measure
 ",
 /* creats*/   "MultiMeasureRest",
 /* acks  */   "",
-/* reads */   "currentBarNumber currentCommandColumn measurePosition",
+/* reads */   "currentBarNumber currentCommandColumn measurePosition 
+measureLength",
 /* write */   "");
--- lily/multi-measure-rest.cc.orig Sun Aug  4 11:56:18 2002
+++ lily/multi-measure-rest.cc  Wed Oct  9 11:12:00 2002
@@ -15,6 +15,7 @@
 #include "rest.hh"
 #include "molecule.hh"
 #include "misc.hh"
+#include "moment.hh"
 #include "spanner.hh"
 #include "staff-symbol-referencer.hh"
 #include "text-item.hh"
@@ -163,19 +164,33 @@
   Font_metric *musfont
 = Font_interface::get_font (me,style_chain);
 
+  SCM sml = me->get_grob_property ("measure-length");
+  Moment ml = (unsmob_moment (sml)) ? *unsmob_moment (sml) : Moment (0);
+
   if (measures == 1)
 {
-  Molecule s = musfont->find_by_name (Rest::glyph_name (me, 0, ""));
+  if (ml.main_part_ < Rational (2))
+   {
+ Molecule s = musfont->find_by_name (Rest::glyph_name (me, 0, ""));
 
-  /*
-   ugh.
-   */
-  if (Staff_symbol_referencer::get_position (me) == 0.0)
-   s.translate_axis (staff_space, Y_AXIS);
+  /*
+   ugh.
+   */
+ if (Staff_symbol_referencer::get_position (me) == 0.0)
+   s.translate_axis (staff_space, Y_AXIS);
+
+  s.translate_axis ((space - s.extent (X_AXIS).length ())/2, X_AXIS);
+  
+  return s ;
+   }
+  else
+   {
+ Molecule s = musfont->find_by_name (Rest::glyph_name (me, -1, ""));
 
-  s.translate_axis ((sp

Modifying multi-measure rests

2002-10-07 Thread Kim Shrier

Hello,
I am new to LilyPond and I have a question about the best way to 
approach
a problem.  I am typesetting some music and the time signature is 4/2.  I
would like to modify the behaviour of multi-measure rests to use a breve
rest to represent 1 measure instead of a whole rest since the duration of
1 measure is a breve.  I have looked at the church_rest method in
multi-measure-rest.cc and I think I see how to modify it as well as the
symbol_molecule method.  I would also have to define a parameter to get
the information to these methods so they would know whether they were using
a whole or breve rest as their base.  This seems like a lot of work.

Since one of the nice things about LilyPond is how flexible it is and you
have hooks to get at almost everything, I was wondering if there is a better
way to approach this problem.  As I said earlier, I am new to LilyPond and
I don't have a good feel for what is possible without modifying the source.

Thanks,
Kim

-- 
 Kim Shrier - principal, Shrier and Deihl - mailto:[EMAIL PROTECTED]
Remote Unix Network Admin, Security, Internet Software Development
  Tinker Internet Services - Superior FreeBSD-based Web Hosting
 http://www.tinker.com/




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: multi-measure rests

2002-10-06 Thread Mats Bengtsson

The bad news: you have hit a bug, Lilypond doesn't understand that
  the multi-measure rests  need a certain minimal width.

The good news: as soon as you add a couple of more bars of music, 
  Lilypond will break the music into several lines and you won't
  suffer from the problem any more. 

The easiest solution for you (if your piece isn't longer than this)
is to add a line break manually. Just insert a \break where you
want the first line to end. 

The next time you send a question, don't forget to tell what
Lilypond version you use.

   /Mats

> The manual gives something like this for multi-measure rests.  It works 
> if I don't try the 5 bar rest before '\mark "1"'.  With that rest 
> included I get everything on one line.  I tried various combinations of 
> turning Score.skipBars on and off with no success.
> 
> Any ideas?
> 
> TIA,
> 
> Paul Scott
> 
> 
> \score {
>  \notes {
>   \relative c'' {
>   \time 2/4 {
>   \property Score.skipBars = ##t R2*4
>   r8 b4\p ( c8~)c  a-. f-. d-. b-. r8 r4
>  R2*5
>   \mark "1"
>   r2 r8 b'\p~b16 g-. g-. e-. c8-. r8 r4
>   r8 d'8~d16 b-. b-. g-. e8-. r4.
>  R2*5
>   r8 c'8 ( b16 a g f e8 g f16 e d ) e c4 () d c () d
>   }
>   }
>  }
>\paper {
>  indent = 0.4 \in
>}
> }
> 
> 
> 
> ___
> Lilypond-user mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/lilypond-user



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



multi-measure rests

2002-10-05 Thread Paul Scott

The manual gives something like this for multi-measure rests.  It works 
if I don't try the 5 bar rest before '\mark "1"'.  With that rest 
included I get everything on one line.  I tried various combinations of 
turning Score.skipBars on and off with no success.

Any ideas?

TIA,

Paul Scott


\score {
 \notes {
\relative c'' {
\time 2/4 {
\property Score.skipBars = ##t R2*4
r8 b4\p ( c8~)c  a-. f-. d-. b-. r8 r4
 R2*5
\mark "1"
r2 r8 b'\p~b16 g-. g-. e-. c8-. r8 r4
r8 d'8~d16 b-. b-. g-. e8-. r4.
 R2*5
r8 c'8 ( b16 a g f e8 g f16 e d ) e c4 () d c () d
}
}
 }
   \paper {
 indent = 0.4 \in
   }
}



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Multi-measure rests

2002-10-04 Thread Mats Bengtsson

This is a known limitation. The workaround could be used in most
situations, but if you for example want a fermata centered exactly
above the rest, it's extremely clumsy. 
This fairly high on my wish list for new features.

   /Mats

> It doesn't seem to be possible to attach articulations to multi-measure 
> rests.
> Is this by design?  Although it is possible to work around this by using 
> skips.
> 
> \score {
> \notes {
> \time 3/4
>  R2.^"Allegro" |   | r2.^"Allegro"
> }
> }
> 
> 
> 
> 
> ___
> Lilypond-user mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/lilypond-user




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Multi-measure rests

2002-10-03 Thread Chris Jackson

It doesn't seem to be possible to attach articulations to multi-measure 
rests.
Is this by design?  Although it is possible to work around this by using 
skips.

\score {
\notes {
\time 3/4
 R2.^"Allegro" |   | r2.^"Allegro"
}
}




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Minimum length of multi-measure rests?

2002-08-29 Thread Han-Wen Nienhuys

[EMAIL PROTECTED] writes:
> > [EMAIL PROTECTED] writes:
> > > I tried to increase the minimum length of multi-measure 
> > > rests, but the minimum-length property doesn't work as
> > > I expected. How to do it? Bug?
> > 
> > See  Multi_measure_rest::set_spacing_rods ().
> 
> Hmm, especially the first line of that function is 
> interesting! :)

:)

> Any objections if I change to Spanner::set_spacing_rods 
> also for MultiMeasureRest and PercentRepeat? I tried it
> and it seems to work well.

I would adapt Multi_measure_rest::set_spacing_rods() to function
again. If you use Spanner::set_spacing_rods(), you have to adjust
minimum-width for the width of prefatory matter (i.e. keysigs and the
like).

-- 

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



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Minimum length of multi-measure rests?

2002-08-29 Thread Mats Bengtsson

> [EMAIL PROTECTED] writes:
> > I tried to increase the minimum length of multi-measure 
> > rests, but the minimum-length property doesn't work as
> > I expected. How to do it? Bug?
> 
> See  Multi_measure_rest::set_spacing_rods ().

Hmm, especially the first line of that function is 
interesting! :)

Any objections if I change to Spanner::set_spacing_rods 
also for MultiMeasureRest and PercentRepeat? I tried it
and it seems to work well.

   /Mats




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Minimum length of multi-measure rests?

2002-08-29 Thread Han-Wen Nienhuys

[EMAIL PROTECTED] writes:
> I tried to increase the minimum length of multi-measure 
> rests, but the minimum-length property doesn't work as
> I expected. How to do it? Bug?

See  Multi_measure_rest::set_spacing_rods ().

-- 

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



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Minimum length of multi-measure rests?

2002-08-29 Thread Mats Bengtsson

I tried to increase the minimum length of multi-measure 
rests, but the minimum-length property doesn't work as
I expected. How to do it? Bug?

Example:

\score{\notes\relative c'{
  c1 R1*12 c1 }
\paper{
  linewidth = -1.
  \translator{
\ScoreContext
skipBars = ##t
% Why doesn't this work?
MultiMeasureRest \override #'minimum-length = #60
  }
}
}


   /Mats




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: multi measure rests

2002-06-15 Thread Simon Bailey

On Fri, 2002-06-14 at 21:23, Mats Bengtsson wrote:
> The only problem with your attempt it that you changed the 
> padding of text scripts, but not of the multi-measure rests or
> rehearsal marks that you wanted to affect. 
> Try 
> \property Staff.MultiMeasureRest \override #'padding = #3
> or
> \property Staff.MultiMeasureRest \override #'padding = #3

thanks. i didn't know that rehearsal marks are viewed internally as a
different type of text. i got it working now. 

thankyou again,
simon.
-- 
Confucius say, man who live in glass house shower in basement.

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: multi measure rests

2002-06-14 Thread Mats Bengtsson

The only problem with your attempt it that you changed the 
padding of text scripts, but not of the multi-measure rests or
rehearsal marks that you wanted to affect. 
Try 
\property Staff.MultiMeasureRest \override #'padding = #3
or
\property Staff.MultiMeasureRest \override #'padding = #3

   /Mats


> hi all,
> 
> how can i tweak the depiction of multi-measure rests? i need to change
> the position of the numbers.
> 
> enclosed a file that should show my problem. it's been cut and pasted
> from an arrangement of the hornpipe from the water music that i was
> working on, and should show my problem.
> 
> this problem is also related to a problem mentioned earlier on the list,
> namely text above staves, but none of the tips or tricks given helped me
> (as can be seen in the \score part of the enclosed file). if anybody can
> give me any tips for solving this problem, i'd be very grateful. if
> somebody knows of a way to right-justify text to the following bar line,
> then that would be very helpful too (for FINE and Da Capo markings for
> instance).

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



multi measure rests

2002-06-14 Thread Simon Bailey

hi all,

how can i tweak the depiction of multi-measure rests? i need to change
the position of the numbers.

enclosed a file that should show my problem. it's been cut and pasted
from an arrangement of the hornpipe from the water music that i was
working on, and should show my problem.

this problem is also related to a problem mentioned earlier on the list,
namely text above staves, but none of the tips or tricks given helped me
(as can be seen in the \score part of the enclosed file). if anybody can
give me any tips for solving this problem, i'd be very grateful. if
somebody knows of a way to right-justify text to the following bar line,
then that would be very helpful too (for FINE and Da Capo markings for
instance).

thanx for any help,
greetings, simon.
-- 
Confucius say, man who live in glass house shower in basement.


% Wassermusik von Georg Friedrich Händel
% Arr. by Simon Bailey, 12/06/2002
% Quartet for 2 Trumpets and 2 Trombones
% Kettle Drum

% for german pitch names...
\include "deutsch.ly"

% \include "globals.ly"
% content of globals.ly file follows:
\header  {
title = "Wassermusik"
subtitle = "Alla Hornpipe"
composer = "Georg Friedrich Händel"
arranger = "Arr: S. Bailey"
tagline = "Bearbeitet von S. Bailey, 12.06.2002"
}

global = {
\time 3/2
\skip 2*116 \mark #'(roman (columns("  " "FINE")))
\skip 2*1 \bar ":|"
\skip 2*104 \mark #'(bold (roman "Da capo al Fine"))
\skip 2*1 \bar "|."
}

Key = \notes \key c \major


% END OF globals.ly

pauke = \notes \relative c' {
c2 c g'
c,4 c2 g'4 c, c
g' g2 g4 c, c
g' g2 g4 c, c
g' g2 r4 r2   % 5
R1.*1
r2 r4 c, c c
c2 r4 c c c
g'2. g4 c,2
c g' g% 10
c, r1
R1.*6 % 12 - 17

r2 r4 c c c
c2 r4 c c c
g'2 c, r  % 20
R1.*1
r2 r4 c c c
c2 r1
R1.*7 % 24 - 30

r2 r4 c c c
c2 r4 c c c
g'2. g4 c,2
c g' g
c, r4 c c c   % 35
c2 r4 c c c
g'2. g4 c,2
c g' g
c,1.  % 39 FINE

R1.*35% 40 - 74 D.C al FINE
}

\score {
  \context Staff <
\property Score.skipBars = ##t
\property Staff.TextScript \override #'padding = #20
\global
\pauke
  >

\header {
instrument = "Pauke in C + G"
}
}


<    1   2