Re: How to add the number of repetitions above a bar
On Tue, Aug 27, 2013 at 4:38 PM, Gilberto Agostinho < gilbertohasn...@googlemail.com> wrote: > Hi David! > > I can't thank you enough for this! It works beautifully :) I already made > some tests now and this is exactly what I needed. > I'm glad to hear this! Just be aware that this workaround has its limitations. Aside from the fact that the number doesn't really denote repeats (which would only be an issue with playback, I suppose): (1) I didn't deal with the situation of a bar broken across a line; (2) This will only work with single-bar repeats. Limitation (1) really wouldn't be much of a problem. Number (2), on the other hand, would involve changes to the engraver itself. (The code for it is in scm/scheme-engravers.scm.) I don't think this would be particularly complex. If you need this kind of functionality, just let me know! Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
Hi David! I can't thank you enough for this! It works beautifully :) I already made some tests now and this is exactly what I needed. Thanks again and take care! Gilberto On Tue, Aug 27, 2013 at 11:31 PM, David Nalesnik wrote: > Hi Gilberto, Harm-- > > > On Tue, Aug 27, 2013 at 4:06 PM, Gilberto Agostinho < > gilbertohasn...@googlemail.com> wrote: > >> Hi Thomas, >> >> Thanks for your answer. About the 1st proposition, it looks great! It is >> just a pity I was not able (so far) to write anything but pure numbers >> above the bars. It would be great if I manage to add the "x" after the >> number. >> > > (See below.) > > [...] > > On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley > wrote: >> >>> > [...] > > >> >>> Hi Gilberto, >>> >>> the following two possibilities are not exactly what you want. Maybe >>> you can adapt one >>> >>> >>> 1.) >>> You could try to use \startMeasureCount, \stopMeasureCount while >>> consisting "Measure_counter_engraver" in Score-layout. >>> This is quite new functionality, implemented somewhere 2.17.x, pending >>> its documentation. >>> >> > There is no write-up yet in the Notation Reference, but there are two > snippets in the documentation: "Numbering groups of measures" and "Centered > measure numbers." > > I went ahead and hacked the stencil for MeasureCounter to show how this > might be done. Of course, the number has no relation to the repeat > structure of the music, but it looks OK! > > >> >>> } >>> >>> >>> 2.)-- >>> Maybe the frame-engraver is worth a second look: >>> See here: >>> >>> http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html >>> (it's not in the source). >>> >>> >>> >>> Thanks to David Nalesnik for both! >>> >> > You're welcome! > > --David > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
Hi Gilberto, Harm-- On Tue, Aug 27, 2013 at 4:06 PM, Gilberto Agostinho < gilbertohasn...@googlemail.com> wrote: > Hi Thomas, > > Thanks for your answer. About the 1st proposition, it looks great! It is > just a pity I was not able (so far) to write anything but pure numbers > above the bars. It would be great if I manage to add the "x" after the > number. > (See below.) [...] On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley wrote: > >> [...] > >> Hi Gilberto, >> >> the following two possibilities are not exactly what you want. Maybe >> you can adapt one >> >> >> 1.) >> You could try to use \startMeasureCount, \stopMeasureCount while >> consisting "Measure_counter_engraver" in Score-layout. >> This is quite new functionality, implemented somewhere 2.17.x, pending >> its documentation. >> > There is no write-up yet in the Notation Reference, but there are two snippets in the documentation: "Numbering groups of measures" and "Centered measure numbers." I went ahead and hacked the stencil for MeasureCounter to show how this might be done. Of course, the number has no relation to the repeat structure of the music, but it looks OK! > >> } >> >> >> 2.)-- >> Maybe the frame-engraver is worth a second look: >> See here: >> >> http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html >> (it's not in the source). >> >> >> >> Thanks to David Nalesnik for both! >> > You're welcome! --David centered-reps.ly Description: Binary data <>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
Hi Thomas, Thanks for your answer. About the 1st proposition, it looks great! It is just a pity I was not able (so far) to write anything but pure numbers above the bars. It would be great if I manage to add the "x" after the number. About the 2nd proposition, those discussions in that link are way above my level at Lilypond, I really could not understand much of what was going on :( I am experimenting now with analysis brackets plus the centralized bar numbers, let's see how they work together. Thanks a lot for all the help! Gilberto On Tue, Aug 27, 2013 at 9:05 PM, Thomas Morley wrote: > 2013/8/27 Gilberto Agostinho : > > Hi Carl, > > > > I had a look on those, and I was able to get the brackets, but they > didn't > > look very nice because they were extending from a note to a note, not > fro ma > > bar line to a bar line. On top of that, the main issue for me here is to > > have the "3x" centralized above the bar; the brackets will just make it > look > > prettier :) > > > > Nevertheless, I will check again the analysis brackets and see if I > missed > > something out. > > > > Take care! > > Gilberto > > > > > > On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson > > wrote: > >> > >> On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho > >> wrote: > >>> > >>> Hello everyone, > >>> > >>> I am working with a score in Lilypond that has a lot of repetitions, > >>> where basically every bar has to be repeated a certain number of > times. I > >>> would like to be able to write the number of repeats above every bar, > >>> similar to the score below (which was not created in Lilypond): > >>> > >>> http://i.stack.imgur.com/GLzuk.jpg > >>> > >>> It would be great to be able to have some brackets above the bar and > also > >>> to have the "3x" centralized, just like in the example above. So far, > the > >>> only (temporary) solution I was able to come up with in Lilypond was > to add > >>> repeat bars and then simply write "3x" above the first note of every > bar > >>> (since I could not have it centralized on the bar either). It does not > look > >>> very good, but gets the job done. This temporary solution looks like > this: > >>> > >>> http://i.stack.imgur.com/jcCh2.jpg > >>> > >>> Do you have any suggestions of how to make this last example look more > >>> similar to the first in Lilypond? > >>> > >>> Thanks a lot! Take care, > >>> Gilberto > >>> > >> > >> Off hand, I would suggest looking up analysis brackets in the Notation > >> Reference. I don't recall at the moment how those work with text, but it > >> will get you something approaching the brackets you're looking for. > >> > >> Carl > > > > > > > > ___ > > lilypond-user mailing list > > lilypond-user@gnu.org > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > Hi Gilberto, > > the following two possibilities are not exactly what you want. Maybe > you can adapt one > > > 1.) > You could try to use \startMeasureCount, \stopMeasureCount while > consisting "Measure_counter_engraver" in Score-layout. > This is quite new functionality, implemented somewhere 2.17.x, pending > its documentation. > I quote the example from our regtests, 'measure-counter.ly': > > \version "2.17.25" > > \relative c' { > \startMeasureCount > \repeat unfold 5 { > a4 b c d > } > \stopMeasureCount > a'4 b c d > \override Staff.MeasureCounter.count-from = #2 > \startMeasureCount > \repeat unfold 4 { > a4 b c d > } > \stopMeasureCount\startMeasureCount > \revert Staff.MeasureCounter.count-from > \clef bass > \key fis \major > \time 3/4 > \repeat unfold 3 { > R2. > } > \stopMeasureCount > } > > \layout { > \context { > \Staff > \consists #Measure_counter_engraver > } > } > > > 2.)-- > Maybe the frame-engraver is worth a second look: > See here: > > http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html > (it's not in the source). > > > > Thanks to David Nalesnik for both! > > > Cheers, > Harm > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
2013/8/27 Gilberto Agostinho : > Hi Carl, > > I had a look on those, and I was able to get the brackets, but they didn't > look very nice because they were extending from a note to a note, not fro ma > bar line to a bar line. On top of that, the main issue for me here is to > have the "3x" centralized above the bar; the brackets will just make it look > prettier :) > > Nevertheless, I will check again the analysis brackets and see if I missed > something out. > > Take care! > Gilberto > > > On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson > wrote: >> >> On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho >> wrote: >>> >>> Hello everyone, >>> >>> I am working with a score in Lilypond that has a lot of repetitions, >>> where basically every bar has to be repeated a certain number of times. I >>> would like to be able to write the number of repeats above every bar, >>> similar to the score below (which was not created in Lilypond): >>> >>> http://i.stack.imgur.com/GLzuk.jpg >>> >>> It would be great to be able to have some brackets above the bar and also >>> to have the "3x" centralized, just like in the example above. So far, the >>> only (temporary) solution I was able to come up with in Lilypond was to add >>> repeat bars and then simply write "3x" above the first note of every bar >>> (since I could not have it centralized on the bar either). It does not look >>> very good, but gets the job done. This temporary solution looks like this: >>> >>> http://i.stack.imgur.com/jcCh2.jpg >>> >>> Do you have any suggestions of how to make this last example look more >>> similar to the first in Lilypond? >>> >>> Thanks a lot! Take care, >>> Gilberto >>> >> >> Off hand, I would suggest looking up analysis brackets in the Notation >> Reference. I don't recall at the moment how those work with text, but it >> will get you something approaching the brackets you're looking for. >> >> Carl > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > Hi Gilberto, the following two possibilities are not exactly what you want. Maybe you can adapt one 1.) You could try to use \startMeasureCount, \stopMeasureCount while consisting "Measure_counter_engraver" in Score-layout. This is quite new functionality, implemented somewhere 2.17.x, pending its documentation. I quote the example from our regtests, 'measure-counter.ly': \version "2.17.25" \relative c' { \startMeasureCount \repeat unfold 5 { a4 b c d } \stopMeasureCount a'4 b c d \override Staff.MeasureCounter.count-from = #2 \startMeasureCount \repeat unfold 4 { a4 b c d } \stopMeasureCount\startMeasureCount \revert Staff.MeasureCounter.count-from \clef bass \key fis \major \time 3/4 \repeat unfold 3 { R2. } \stopMeasureCount } \layout { \context { \Staff \consists #Measure_counter_engraver } } 2.)-- Maybe the frame-engraver is worth a second look: See here: http://lilypond.1069038.n5.nabble.com/aleatoric-box-frameEngraver-td147962.html (it's not in the source). Thanks to David Nalesnik for both! Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
Hi Carl, I had a look on those, and I was able to get the brackets, but they didn't look very nice because they were extending from a note to a note, not fro ma bar line to a bar line. On top of that, the main issue for me here is to have the "3x" centralized above the bar; the brackets will just make it look prettier :) Nevertheless, I will check again the analysis brackets and see if I missed something out. Take care! Gilberto On Tue, Aug 27, 2013 at 8:07 PM, Carl Peterson wrote: > On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho < > gilbertohasn...@googlemail.com> wrote: > >> Hello everyone, >> >> I am working with a score in Lilypond that has a lot of repetitions, >> where basically every bar has to be repeated a certain number of times. I >> would like to be able to write the number of repeats above every bar, >> similar to the score below (which was not created in Lilypond): >> >> http://i.stack.imgur.com/GLzuk.jpg >> >> It would be great to be able to have some brackets above the bar and also >> to have the "3x" centralized, just like in the example above. So far, the >> only (temporary) solution I was able to come up with in Lilypond was to add >> repeat bars and then simply write "3x" above the first note of every bar >> (since I could not have it centralized on the bar either). It does not look >> very good, but gets the job done. This temporary solution looks like this: >> >> http://i.stack.imgur.com/jcCh2.jpg >> >> Do you have any suggestions of how to make this last example look more >> similar to the first in Lilypond? >> >> Thanks a lot! Take care, >> Gilberto >> >> > Off hand, I would suggest looking up analysis brackets in the Notation > Reference. I don't recall at the moment how those work with text, but it > will get you something approaching the brackets you're looking for. > > Carl > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to add the number of repetitions above a bar
On Tue, Aug 27, 2013 at 2:04 PM, Gilberto Agostinho < gilbertohasn...@googlemail.com> wrote: > Hello everyone, > > I am working with a score in Lilypond that has a lot of repetitions, where > basically every bar has to be repeated a certain number of times. I would > like to be able to write the number of repeats above every bar, similar > to the score below (which was not created in Lilypond): > > http://i.stack.imgur.com/GLzuk.jpg > > It would be great to be able to have some brackets above the bar and also > to have the "3x" centralized, just like in the example above. So far, the > only (temporary) solution I was able to come up with in Lilypond was to add > repeat bars and then simply write "3x" above the first note of every bar > (since I could not have it centralized on the bar either). It does not look > very good, but gets the job done. This temporary solution looks like this: > > http://i.stack.imgur.com/jcCh2.jpg > > Do you have any suggestions of how to make this last example look more > similar to the first in Lilypond? > > Thanks a lot! Take care, > Gilberto > > Off hand, I would suggest looking up analysis brackets in the Notation Reference. I don't recall at the moment how those work with text, but it will get you something approaching the brackets you're looking for. Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to add the number of repetitions above a bar
Hello everyone, I am working with a score in Lilypond that has a lot of repetitions, where basically every bar has to be repeated a certain number of times. I would like to be able to write the number of repeats above every bar, similar to the score below (which was not created in Lilypond): http://i.stack.imgur.com/GLzuk.jpg It would be great to be able to have some brackets above the bar and also to have the "3x" centralized, just like in the example above. So far, the only (temporary) solution I was able to come up with in Lilypond was to add repeat bars and then simply write "3x" above the first note of every bar (since I could not have it centralized on the bar either). It does not look very good, but gets the job done. This temporary solution looks like this: http://i.stack.imgur.com/jcCh2.jpg Do you have any suggestions of how to make this last example look more similar to the first in Lilypond? Thanks a lot! Take care, Gilberto ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user