Re: Compressing percent repeats.

2016-01-22 Thread Michael Gerdau
> Well actually I've hesitated to do that. It depends on how you read it. I > finally choose to stick to : > > \version "2.19.35" > > \relative c'' { > \set countPercentRepeats = ##t > \repeat percent 8 { c1 } > } I see - in light of that it makes sense. > But ok, it's a personal choice, ma

Re: Compressing percent repeats.

2016-01-22 Thread Pierre Perol-Schneider
Hi Michae, Well actually I've hesitated to do that. It depends on how you read it. I finally choose to stick to : \version "2.19.35" \relative c'' { \set countPercentRepeats = ##t \repeat percent 8 { c1 } } But ok, it's a personal choice, maybe not the best. Cheers, Pierre 2016-01-22 23:5

Re: Compressing percent repeats.

2016-01-22 Thread Michael Gerdau
Hi Pierre, > \version "2.19.35" > > compressPercentRepeat = > #(define-music-function (repeats notes) (integer? ly:music?) > (let* ( >(mea (ly:music-length notes)) >(num (ly:moment-main-numerator mea)) >(den (ly:moment-main-denominator mea)) >(dur (ly:make-dura

Re: Compressing percent repeats.

2016-01-22 Thread Hwaen Ch'uqi
Greetings Pierre, Thank you so much for your solutions! It took me a while to realize that I in fact needed to upgrade to 2.19.35 in order to implement them, but once squared away, they worked magnificently. True, the latter approach is especially hackish, but I did find it much easier to compreh

Re: Compressing percent repeats.

2016-01-21 Thread Pierre Perol-Schneider
E.g.: \version "2.19.35" compressPercentRepeat = #(define-music-function (repeats notes) (integer? ly:music?) (let* ( (mea (ly:music-length notes)) (num (ly:moment-main-numerator mea)) (den (ly:moment-main-denominator mea)) (dur (ly:make-duration 0 0 (* num (1- rep

Re: Compressing percent repeats.

2016-01-19 Thread Pierre Perol-Schneider
BTW, another hacky solution would be to use \compressFullBarRests and simply change its stencil with the 'percent' sign. Not nice though. ~Pierre 2016-01-19 12:27 GMT+01:00 Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com>: > Hi Hwaen Ch'uqi, > > Far from being perfect but it's a start:

Re: Compressing percent repeats.

2016-01-19 Thread Pierre Perol-Schneider
Hi Hwaen Ch'uqi, Far from being perfect but it's a start: \version "2.19.35" compressPercent = #(define-music-function (repeats notes) (integer? ly:music?) #{ \tag Orch { %% Optional: %\set countPercentRepeats = ##t \repeat percent #repeats \absolute { #notes } } \tag S

Compressing percent repeats.

2016-01-18 Thread Hwaen Ch'uqi
Greetings All, I am generating parts from an orchestral score and am wondering if there is any way of handling percent repeats in the same manner as \compressFullBarRests does for multimeasure rests? That is, a number would be placed above, say, an isolated repeat informing the player how many tim