Re: Aleatoric Elements with barlines

2019-01-09 Thread Ben

On 1/9/2019 5:39 PM, Aaron Hill wrote:

On 2019-01-09 2:19 pm, Ben wrote:

Thanks for the function! I'm still a little confused about the
value(s) that you use with the function. I see it looks like it takes
a duration value, right? Like 1, 4, 16? But I can't see how it would
work on the music. Maybe I just put the wrong example music code in
mine, but can you share an example where you input " % some music " to
show how the function works?

Do you always use one number or does the function also allow/need like
1 4 or 1 8, etc.


The function expects a ly:duration.  That can be as simple as "1" for 
whole or something more complex like "\longa*2/3".


See the following example usage:


\version "2.19.82"

scaleToLength =
#(define-music-function (dur mus) (ly:duration? ly:music?)
    (let* ((real-len (ly:music-length mus))
   (mom (ly:duration-length dur))
   (ratio-mom (ly:moment-div mom real-len))
   (ratio (cons (ly:moment-main-numerator ratio-mom)
    (ly:moment-main-denominator ratio-mom
  #{ \scaleDurations #ratio #mus #}))

\paper { ragged-right = ##f }
\layout {
  \context { \Score
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"
  }
  \context { \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }
}

<< \new Staff \scaleToLength \longa*1/2 \relative c'' {
  r1*17/13\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
}
\new Staff \scaleToLength \breve \relative c'' {
  \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
}
\new Staff \scaleToLength 1*2 \relative c'' {
  r1*7/11\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
} >>


What I've done is specify that each music section is to be two 
measures via a few means: "1*2", "\breve", and "\longa*1/2".  One 
system has no rest leading it at all, and the other two are very 
unusual lengths indeed.  Each section has only a fixed half note 
spacer rest at the end, so their lengths are all unique.


Note that since I removed \cadenzaOn, there will be a default bar line 
every measure, which we can see in the output.  But this proves that 
the alignment of notes is correctly scaled by \scaleToLength.



Aaron that isSO awesome! Thanks for explaining that. I'm going to be 
using that function a lot for sure. :)



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


Re: Aleatoric Elements with barlines

2019-01-09 Thread Aaron Hill

On 2019-01-09 2:19 pm, Ben wrote:

Thanks for the function! I'm still a little confused about the
value(s) that you use with the function. I see it looks like it takes
a duration value, right? Like 1, 4, 16? But I can't see how it would
work on the music. Maybe I just put the wrong example music code in
mine, but can you share an example where you input " % some music " to
show how the function works?

Do you always use one number or does the function also allow/need like
1 4 or 1 8, etc.


The function expects a ly:duration.  That can be as simple as "1" for 
whole or something more complex like "\longa*2/3".


See the following example usage:


\version "2.19.82"

scaleToLength =
#(define-music-function (dur mus) (ly:duration? ly:music?)
(let* ((real-len (ly:music-length mus))
   (mom (ly:duration-length dur))
   (ratio-mom (ly:moment-div mom real-len))
   (ratio (cons (ly:moment-main-numerator ratio-mom)
(ly:moment-main-denominator ratio-mom
  #{ \scaleDurations #ratio #mus #}))

\paper { ragged-right = ##f }
\layout {
  \context { \Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
  }
  \context { \Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
  }
}

<< \new Staff \scaleToLength \longa*1/2 \relative c'' {
  r1*17/13\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
}
\new Staff \scaleToLength \breve \relative c'' {
  \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
}
\new Staff \scaleToLength 1*2 \relative c'' {
  r1*7/11\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s2 \bar "||"
} >>


What I've done is specify that each music section is to be two measures 
via a few means: "1*2", "\breve", and "\longa*1/2".  One system has no 
rest leading it at all, and the other two are very unusual lengths 
indeed.  Each section has only a fixed half note spacer rest at the end, 
so their lengths are all unique.


Note that since I removed \cadenzaOn, there will be a default bar line 
every measure, which we can see in the output.  But this proves that the 
alignment of notes is correctly scaled by \scaleToLength.



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


Re: Aleatoric Elements with barlines

2019-01-09 Thread Ben

On 1/9/2019 10:11 AM, Martin Neubauer wrote:

On 09/01/2019 14:06, Ben wrote:

On 1/8/2019 10:43 PM, Martin Neubauer wrote:

On 07/01/2019 17:29, Reggie wrote:

Aaron you are a great teacher thank you. Just a couple few more
questions
please. First how did you know that it had to equal 2 full measures?
I did
not see how you arrived. Second please tell me is there any negative
effect
of moving the barline from score to staff I didn't want to do that on a
global scale because this alignment is just one small section of a
"normal"
composition, but if it's safe? Then ok. Any caveats with moving to
staff?
Thank you. I don't understand the math of 2 full bars.

In situations like these I might use the \scaleToLength function. That
way it's possible to control the horizontal placement of the music in
the different staves by judicious use of spacer rests and still not
having to worry about getting the synchronisation points right between
the staves. Also in that case there would be no need to use
\cadenzaOn/\cadenzaOff.

Hi Martin!

How do you use the scaleToLength function? I can't find much about it
when searching the documentation for it. Sounds interesting from how you
describe it. Thanks!

http://lilypond.org/doc/v2.19/Documentation/notation/index.html

It turns out I've forgotten I took it from this list some time ago
(apparently written by Malte Meyn). It's basically just a wrapper for
\scaleDurations but provides just the right interface for the mentioned
use case. Before I used an own variation (because it's just that
useful), but since it was written quite clumsily compared to Malte's, it
just vanished into the mists of time...

Anyway, here's the function:

scaleToLength =
#(define-music-function (dur mus) (ly:duration? ly:music?)
(let* ((real-len (ly:music-length mus))
   (mom (ly:duration-length dur))
   (ratio-mom (ly:moment-div mom real-len))
   (ratio (cons (ly:moment-main-numerator ratio-mom)
(ly:moment-main-denominator ratio-mom
  #{
\scaleDurations #ratio #mus
  #}))

And using it is simple enough:
\scaleToLength 1 {
   % some music
}

Try it, it's great!


Martin,

Thanks for the function! I'm still a little confused about the value(s) 
that you use with the function. I see it looks like it takes a duration 
value, right? Like 1, 4, 16? But I can't see how it would work on the 
music. Maybe I just put the wrong example music code in mine, but can 
you share an example where you input " % some music " to show how the 
function works?


Do you always use one number or does the function also allow/need like 1 
4 or 1 8, etc.


Thanks!


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


Re: Aleatoric Elements with barlines

2019-01-09 Thread Martin Neubauer
On 09/01/2019 14:06, Ben wrote:
> On 1/8/2019 10:43 PM, Martin Neubauer wrote:
>> On 07/01/2019 17:29, Reggie wrote:
>>> Aaron you are a great teacher thank you. Just a couple few more
>>> questions
>>> please. First how did you know that it had to equal 2 full measures?
>>> I did
>>> not see how you arrived. Second please tell me is there any negative
>>> effect
>>> of moving the barline from score to staff I didn't want to do that on a
>>> global scale because this alignment is just one small section of a
>>> "normal"
>>> composition, but if it's safe? Then ok. Any caveats with moving to
>>> staff?
>>> Thank you. I don't understand the math of 2 full bars.
>> In situations like these I might use the \scaleToLength function. That
>> way it's possible to control the horizontal placement of the music in
>> the different staves by judicious use of spacer rests and still not
>> having to worry about getting the synchronisation points right between
>> the staves. Also in that case there would be no need to use
>> \cadenzaOn/\cadenzaOff.
> 
> Hi Martin!
> 
> How do you use the scaleToLength function? I can't find much about it
> when searching the documentation for it. Sounds interesting from how you
> describe it. Thanks!
> 
> http://lilypond.org/doc/v2.19/Documentation/notation/index.html
It turns out I've forgotten I took it from this list some time ago
(apparently written by Malte Meyn). It's basically just a wrapper for
\scaleDurations but provides just the right interface for the mentioned
use case. Before I used an own variation (because it's just that
useful), but since it was written quite clumsily compared to Malte's, it
just vanished into the mists of time...

Anyway, here's the function:

scaleToLength =
#(define-music-function (dur mus) (ly:duration? ly:music?)
   (let* ((real-len (ly:music-length mus))
  (mom (ly:duration-length dur))
  (ratio-mom (ly:moment-div mom real-len))
  (ratio (cons (ly:moment-main-numerator ratio-mom)
   (ly:moment-main-denominator ratio-mom
 #{
   \scaleDurations #ratio #mus
 #}))

And using it is simple enough:
\scaleToLength 1 {
  % some music
}

Try it, it's great!
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aleatoric Elements with barlines

2019-01-09 Thread Ben

On 1/8/2019 10:43 PM, Martin Neubauer wrote:

On 07/01/2019 17:29, Reggie wrote:

Aaron you are a great teacher thank you. Just a couple few more questions
please. First how did you know that it had to equal 2 full measures? I did
not see how you arrived. Second please tell me is there any negative effect
of moving the barline from score to staff I didn't want to do that on a
global scale because this alignment is just one small section of a "normal"
composition, but if it's safe? Then ok. Any caveats with moving to staff?
Thank you. I don't understand the math of 2 full bars.

In situations like these I might use the \scaleToLength function. That
way it's possible to control the horizontal placement of the music in
the different staves by judicious use of spacer rests and still not
having to worry about getting the synchronisation points right between
the staves. Also in that case there would be no need to use
\cadenzaOn/\cadenzaOff.


Hi Martin!

How do you use the scaleToLength function? I can't find much about it 
when searching the documentation for it. Sounds interesting from how you 
describe it. Thanks!


http://lilypond.org/doc/v2.19/Documentation/notation/index.html

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


Re: Aleatoric Elements with barlines

2019-01-08 Thread Martin Neubauer
On 07/01/2019 17:29, Reggie wrote:
> Aaron you are a great teacher thank you. Just a couple few more questions
> please. First how did you know that it had to equal 2 full measures? I did
> not see how you arrived. Second please tell me is there any negative effect
> of moving the barline from score to staff I didn't want to do that on a
> global scale because this alignment is just one small section of a "normal"
> composition, but if it's safe? Then ok. Any caveats with moving to staff?
> Thank you. I don't understand the math of 2 full bars.
In situations like these I might use the \scaleToLength function. That
way it's possible to control the horizontal placement of the music in
the different staves by judicious use of spacer rests and still not
having to worry about getting the synchronisation points right between
the staves. Also in that case there would be no need to use
\cadenzaOn/\cadenzaOff.



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aleatoric Elements with barlines

2019-01-07 Thread Flaming Hakama by Elaine
> - Forwarded message --
> From: Aaron Hill 
> To: lilypond-user@gnu.org
> Date: Mon, 07 Jan 2019 08:59:20 -0800
> Subject: Re: Aleatoric Elements with barlines
>


> If it turns out to be unacceptable to move the engravers for the
> majority of your project, you could consider engraving this cadenza
> section as its own score which allows it to have an independent layout
> block.  This alternate strategy means subdividing your one score into
> multiple scores, so you would need to adjust things like measure
> numbering, indentation, and other spacing variables to get the final
> output to appear seamless.
>
>
> -- Aaron Hill
>


Also, unless there is more flexibility with score layout than I'm familiar
with, if you break things into multiple scores, each score must start on a
new line, as I don't think you can change mid-line from score to score.

For actual multi-stave scores, that is probably not at all a problem.

But if the parts are also organized this way, then each part will have to
have a line break before and after this cadenza.  Whereas typically for the
instruments resting during the cadenza (unless you are putting the cadenza
cue in each part) the cadenza measure would probably just a whole bar rest,
that occupies only part of a line, and has other content before and/or
after it.

I guess if this is an actual limitation, you coulduse the multi-score
approach for the actual score, and a single-score approach for parts.


HTH,

Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \newEngraverSection (was "Re: Aleatoric Elements with barlines")

2019-01-07 Thread Aaron Hill

On 2019-01-07 9:18 am, Kieren MacMillan wrote:

Would it be technically possible to add a \newEngraverSection —
analogous to \newSpacingSection — which would allow a single
contiguous score to have different engravers "active" in different
sections?

This isn’t even yet at the level of "feature request": right now, I’m
just curious to hear an answer like "can’t happen without a total
re-write of the entire C++ codebase" or "technically possible, but the
interface isn’t clear" or "even though it’s dead simple to achieve,
here’s why that’s the stupidest idea we’ve ever heard".


I might approach this by seeing if it is possible to create a "meta" 
engraver that is able to delegate to another engraver and selectively 
remain "silent" over a specified range of time.  In this way, the 
\Score-level engravers could be active except for the cadenza section.  
And the \Staff-level engravers are only active during the cadenza.


The concept seems like it could work, but I do not know the underlying 
details of LilyPond well enough to say if this is actually madness.



-- Aaron Hill

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


\newEngraverSection (was "Re: Aleatoric Elements with barlines")

2019-01-07 Thread Kieren MacMillan
Hi all,

> If it turns out to be unacceptable to move the engravers for the majority of 
> your project, you could consider engraving this cadenza section as its own 
> score which allows it to have an independent layout block.  This alternate 
> strategy means subdividing your one score into multiple scores, so you would 
> need to adjust things like measure numbering, indentation, and other spacing 
> variables to get the final output to appear seamless.

This "must include/remove all engravers once and for all at the beginning of 
the score" has always seemed to me to be an unfortunate fundamental reality in 
Lilypond. With certain grobs (e.g., BarNumber), it’s easy enough to use \hide 
or \omit (and revert) to vary the engraver’s apparent *output*… but with other 
elements (e.g., Timing stuff, SystemStart stuff, etc.), it’s impossible (as far 
as I know) to do anything except what you’re suggesting above.

Would it be technically possible to add a \newEngraverSection — analogous to 
\newSpacingSection — which would allow a single contiguous score to have 
different engravers "active" in different sections?

This isn’t even yet at the level of "feature request": right now, I’m just 
curious to hear an answer like "can’t happen without a total re-write of the 
entire C++ codebase" or "technically possible, but the interface isn’t clear" 
or "even though it’s dead simple to achieve, here’s why that’s the stupidest 
idea we’ve ever heard".

Thanks,
Kieren.


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


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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Aaron Hill

On 2019-01-07 8:59 am, Aaron Hill wrote:

As for moving the engravers from \Score to \Staff, it would require
that any specified bar lines be duplicated across the staves manually.
 Normally, it is sufficient for one staff to say something like \bar
"||" and that will automatically propagate to the other staves.


And I forgot, things like time signatures would need to be duplicated as 
well.  But again, a common, shared "\global" variable that contains 
these details should make this scenario easier to handle if you do end 
up opting to move the engravers to the \Staff level.



-- Aaron Hill

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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Aaron Hill

On 2019-01-07 8:29 am, Reggie wrote:
Aaron you are a great teacher thank you. Just a couple few more 
questions
please. First how did you know that it had to equal 2 full measures? I 
did
not see how you arrived. Second please tell me is there any negative 
effect

of moving the barline from score to staff I didn't want to do that on a
global scale because this alignment is just one small section of a 
"normal"
composition, but if it's safe? Then ok. Any caveats with moving to 
staff?

Thank you. I don't understand the math of 2 full bars.


The two measures was just an arbitrary choice.  You don't need to it to 
be precisely that; but for whatever amount you do decide on, all staves 
will need to agree with one another so things line up.


As for moving the engravers from \Score to \Staff, it would require that 
any specified bar lines be duplicated across the staves manually.  
Normally, it is sufficient for one staff to say something like \bar "||" 
and that will automatically propagate to the other staves.


It seems to be a recommended practice to prefer specifying elements like 
bar lines in a common, shared "\global" variable.  If you do this and 
reference the variable for each staff, then technically you are already 
specifying the bar lines on each staff.  The redundancy means that the 
score should work just fine with the engravers moved.


If it turns out to be unacceptable to move the engravers for the 
majority of your project, you could consider engraving this cadenza 
section as its own score which allows it to have an independent layout 
block.  This alternate strategy means subdividing your one score into 
multiple scores, so you would need to adjust things like measure 
numbering, indentation, and other spacing variables to get the final 
output to appear seamless.



-- Aaron Hill

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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Reggie
Aaron Hill wrote
> On 2019-01-07 7:55 am, Reggie wrote:
>> Hi Aaron thank you for that help. I don't like to use indepedant meters
>> however since this section I believe should be cadenza for easy input.
>> However, I add spacer rests like you said but it makes everything way 
>> wrong
>> too many repeats and breaks everything. I don't see what you mean to 
>> add.
>> Can you give one example of a pairing of spacer and r1* to move one 
>> repeat
>> barline successfully? Many thanks. My error image.  error.png
> 
> The article I linked covers more than just meter, specifically it covers 
> how to have independent bar lines.  You need to follow it to ensure that 
> your bar lines do not "bleed" into the other staves.
> 
> See the following:
> 
> 
> \version "2.19.82"
> 
> \paper { ragged-right = ##f }
> \layout {
>\context { \Score
>  \remove "Timing_translator"
>  \remove "Default_bar_line_engraver"
>}
>\context { \Staff
>  \consists "Timing_translator"
>  \consists "Default_bar_line_engraver"
>}
> }
> 
> << \new Staff \relative c'' {
>\cadenzaOn
>r1*5/4\fermata \bar ".|:"
>< d e f >1\> r1\!\fermata \bar ":|."
>s1*3/4 \bar "||"
> }
> \new Staff \relative c'' {
>\cadenzaOn
>r1\fermata \bar ".|:"
>< d e f >1\> r1\!\fermata \bar ":|."
>s1 \bar "||"
> }
> \new Staff \relative c'' {
>\cadenzaOn
>r1*3/4\fermata \bar ".|:"
>< d e f >1\> r1\!\fermata \bar ":|."
>s1*5/4 \bar "||"
> } >>
> 
> 
> Regarding the spacer rests (or actual rests if you wanted them to be 
> printed), the beginning and ending rests must add up to the same total 
> across all staves.  So, for the above example, we need the rests to be 
> equivalent to two full measures.  In the first staff, scaling the 
> leading rest by 5/4 requires a corresponding scaling of the final 
> spacing rest to 3/4.  The middle staff is trivial, and the final staff 
> is just the opposite of the first.
> 
> -- Aaron Hill
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> aleatoric.cropped.png (43K)
> ;

Aaron you are a great teacher thank you. Just a couple few more questions
please. First how did you know that it had to equal 2 full measures? I did
not see how you arrived. Second please tell me is there any negative effect
of moving the barline from score to staff I didn't want to do that on a
global scale because this alignment is just one small section of a "normal"
composition, but if it's safe? Then ok. Any caveats with moving to staff?
Thank you. I don't understand the math of 2 full bars.



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Aaron Hill

On 2019-01-07 7:55 am, Reggie wrote:

Hi Aaron thank you for that help. I don't like to use indepedant meters
however since this section I believe should be cadenza for easy input.
However, I add spacer rests like you said but it makes everything way 
wrong
too many repeats and breaks everything. I don't see what you mean to 
add.
Can you give one example of a pairing of spacer and r1* to move one 
repeat

barline successfully? Many thanks. My error image.  error.png


The article I linked covers more than just meter, specifically it covers 
how to have independent bar lines.  You need to follow it to ensure that 
your bar lines do not "bleed" into the other staves.


See the following:


\version "2.19.82"

\paper { ragged-right = ##f }
\layout {
  \context { \Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
  }
  \context { \Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
  }
}

<< \new Staff \relative c'' {
  \cadenzaOn
  r1*5/4\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s1*3/4 \bar "||"
}
\new Staff \relative c'' {
  \cadenzaOn
  r1\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s1 \bar "||"
}
\new Staff \relative c'' {
  \cadenzaOn
  r1*3/4\fermata \bar ".|:"
  < d e f >1\> r1\!\fermata \bar ":|."
  s1*5/4 \bar "||"
} >>


Regarding the spacer rests (or actual rests if you wanted them to be 
printed), the beginning and ending rests must add up to the same total 
across all staves.  So, for the above example, we need the rests to be 
equivalent to two full measures.  In the first staff, scaling the 
leading rest by 5/4 requires a corresponding scaling of the final 
spacing rest to 3/4.  The middle staff is trivial, and the final staff 
is just the opposite of the first.


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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Reggie
Aaron Hill wrote
> On 2019-01-07 6:04 am, Reggie wrote:
>> Please can someone show me in Lilypond how possibly can you adjust or 
>> change
>> the space before the first repeats in order to acheive the attached 
>> image? I
>> don't know if you move padding or add hidden to padding but I'm 
>> confused.
>> Thank you. My best effort
>> 
>> [ . . . ]
> 
> Since you are going to have bar lines that do not line up, you need to 
> follow the advice in this post[1] by Urs.
> 
> Otherwise, it should be easy enough to change the relative duration of 
> the leading rests using the scaling operator.  That is, "r1*2" or 
> "r1*1/2".  You will need to have a corresponding spacer rest (with 
> appropriate scaling) on each staff to compensate for the variable 
> lengths at the start so that the final bar lines will line up.
> 
> [1]: http://lilypondblog.org/2014/05/independent-meters/
> 
> -- Aaron Hill
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Aaron thank you for that help. I don't like to use indepedant meters
however since this section I believe should be cadenza for easy input.
However, I add spacer rests like you said but it makes everything way wrong
too many repeats and breaks everything. I don't see what you mean to add.
Can you give one example of a pairing of spacer and r1* to move one repeat
barline successfully? Many thanks. My error image.  error.png
  



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Aleatoric Elements with barlines

2019-01-07 Thread Aaron Hill

On 2019-01-07 6:04 am, Reggie wrote:
Please can someone show me in Lilypond how possibly can you adjust or 
change
the space before the first repeats in order to acheive the attached 
image? I
don't know if you move padding or add hidden to padding but I'm 
confused.

Thank you. My best effort

[ . . . ]


Since you are going to have bar lines that do not line up, you need to 
follow the advice in this post[1] by Urs.


Otherwise, it should be easy enough to change the relative duration of 
the leading rests using the scaling operator.  That is, "r1*2" or 
"r1*1/2".  You will need to have a corresponding spacer rest (with 
appropriate scaling) on each staff to compensate for the variable 
lengths at the start so that the final bar lines will line up.


[1]: http://lilypondblog.org/2014/05/independent-meters/

-- Aaron Hill

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


Aleatoric Elements with barlines

2019-01-07 Thread Reggie
Please can someone show me in Lilypond how possibly can you adjust or change
the space before the first repeats in order to acheive the attached image? I
don't know if you move padding or add hidden to padding but I'm confused.
Thank you. My best effort

\version "2.19.82"

<<
  \new Staff
  \relative c' {
\cadenzaOn
r1\fermata
\bar ".|:"
< d' e f >1\>
r1\!\fermata
\bar ":|."
s1 \bar "||"



  }


  \new Staff
  \relative c' {
\cadenzaOn
r1\fermata
\bar ".|:"
< d' e f >1\>
r1\!\fermata
\bar ":|."
s1 \bar "||"


  }

  \new Staff
  \relative c' {
\cadenzaOn
r1\fermata
\bar ".|:"
< d' e f >1\>
r1\!\fermata
\bar ":|."
s1 \bar "||"

  }


  \new Staff
  \relative c' {
\cadenzaOn
r1\fermata
\bar ".|:"
< d' e f >1\>
r1\!\fermata
\bar ":|."
s1 \bar "||"


  }
>>

\paper {

  ragged-right = ##f
}

my_example.jpg
  



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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