Re: vertical spacing of rests

2015-08-25 Thread Peter Selinger
Phil Holmes wrote: > > - Original Message - > From: "Michael Gerdau" > To: > Sent: Tuesday, August 25, 2015 3:27 PM > Subject: Re: vertical spacing of rests > > > >> >> \override Rest.voiced-position = 0 > >> > >> Yes

Re: vertical spacing of rests

2015-08-25 Thread Michael Gerdau
> Why would you want to use odd values here? I was just playing with values. If only even numbers are supposed to be used since they are the only "sensible" choices, then why not have all values doubled internally anyway ? > > W/o a documentation I can't judge whether that's intended, but it > >

Re: vertical spacing of rests

2015-08-25 Thread Phil Holmes
- Original Message - From: "Michael Gerdau" To: Sent: Tuesday, August 25, 2015 3:27 PM Subject: Re: vertical spacing of rests >> \override Rest.voiced-position = 0 Yes, first available in 2.19.15, courtesy of Keith O'Hara. Yet to be documented in the NR, I b

Re: vertical spacing of rests

2015-08-25 Thread Trevor Daniels
Michael Gerdau wrote Tuesday, August 25, 2015 3:27 PM >> >> \override Rest.voiced-position = 0 >> >> Yes, first available in 2.19.15, courtesy of Keith O'Hara. >> Yet to be documented in the NR, I believe. > > I have used Peter's example code and tried various parameter to > voiced-position (s

Re: vertical spacing of rests

2015-08-25 Thread David Kastrup
Michael Gerdau writes: >> >> \override Rest.voiced-position = 0 >> >> Yes, first available in 2.19.15, courtesy of Keith O'Hara. >> Yet to be documented in the NR, I believe. > > I have used Peter's example code and tried various parameter to > voiced-position (see attached). It is my impression

Re: vertical spacing of rests

2015-08-25 Thread Trevor Daniels
Peter Selinger wrote Tuesday, August 25, 2015 2:28 PM > >> I think using >> >> \override Rest.voiced-position = 0 >> >> in the voice in which you have rests might do the trick for you. >> >> Trevor > > This shows that I should read my emails in the correct order. Thanks > for the tip about voi

Re: vertical spacing of rests

2015-08-25 Thread Peter Selinger
Trevor Daniels wrote: > > selin...@mathstat.dal.ca (Peter Selinger) writes: > > > this is a true newbie question. I am trying to engrave two polyphonic > > voices on a single staff. Since the two voices have all their rests in > > common, I only want to typeset each rest once, so I use spacer res

Re: vertical spacing of rests

2015-08-25 Thread Peter Selinger
70147pers...@telia.com wrote: > > Hello, > There might be another aspect of positioning (common) rests from > different voices. This is beside all the technical solutions presented > earlier in this thread. All these work more or less fine for half rests > as well as full rests. But when it com

Re: vertical spacing of rests

2015-08-25 Thread 70147persson
Den 2015-08-23 00:01, skrev Peter Selinger: Hello again, this is a true newbie question. I am trying to engrave two polyphonic voices on a single staff. Since the two voices have all their rests in common, I only want to typeset each rest once, so I use spacer rests in the second voice. Still th

Re: vertical spacing of rests

2015-08-24 Thread Trevor Daniels
selin...@mathstat.dal.ca (Peter Selinger) writes: > this is a true newbie question. I am trying to engrave two polyphonic > voices on a single staff. Since the two voices have all their rests in > common, I only want to typeset each rest once, so I use spacer rests > in the second voice. Still th

Re: vertical spacing of rests

2015-08-24 Thread Ralph Palmer
On Mon, Aug 24, 2015 at 2:56 PM, David Kastrup wrote: > selin...@mathstat.dal.ca (Peter Selinger) writes: > > > > > this is a true newbie question. I am trying to engrave two polyphonic > > voices on a single staff. Since the two voices have all their rests in > > common, I only want to typeset e

Re: vertical spacing of rests

2015-08-24 Thread David Kastrup
selin...@mathstat.dal.ca (Peter Selinger) writes: > > this is a true newbie question. I am trying to engrave two polyphonic > voices on a single staff. Since the two voices have all their rests in > common, I only want to typeset each rest once, so I use spacer rests > in the second voice. Still t

Re: vertical spacing of rests

2015-08-24 Thread David Kastrup
Paul Morris writes: >> On Aug 23, 2015, at 4:29 PM, Peter Selinger wrote: >> >> - (ly:grob-set-property! rest 'stencil #f) >> + (ly:grob-set-property! rest 'Y-offset offset) > > I wonder if this might work instead: > > (ly:grob-set-property! rest 'stencil empty-stencil) You'd want

Re: vertical spacing of rests

2015-08-23 Thread Thomas Morley
2015-08-23 22:29 GMT+02:00 Peter Selinger : > Point taken. So I was wrong: it's not possible to remove the stencils > for redundant rests, or else fermatas in that voice don't have > anything to attach to. Well, wait a little. I'd say we need to do something with grobs belonging to removed ones. M

Re: vertical spacing of rests

2015-08-23 Thread Peter Selinger
I tried this on the two test cases, and there seems to be no difference between the behavior of empty-stencil and #f (i.e., it doesn't work). -- Peter Paul Morris wrote: > > > On Aug 23, 2015, at 4:29 PM, Peter Selinger wr= > ote: > >=20 > > - (ly:grob-set-property! rest 'stencil #f) > >

Re: vertical spacing of rests

2015-08-23 Thread Paul Morris
> On Aug 23, 2015, at 4:29 PM, Peter Selinger wrote: > > - (ly:grob-set-property! rest 'stencil #f) > + (ly:grob-set-property! rest 'Y-offset offset) I wonder if this might work instead: (ly:grob-set-property! rest 'stencil empty-stencil) Just an untested idea… -Paul _

Re: vertical spacing of rests

2015-08-23 Thread Peter Selinger
Point taken. So I was wrong: it's not possible to remove the stencils for redundant rests, or else fermatas in that voice don't have anything to attach to. So the behavior of Jay's original code was the better one, i.e., to force all the redundant rests to the same coordinates, but to retain their

Re: vertical spacing of rests

2015-08-23 Thread Thomas Morley
2015-08-23 21:21 GMT+02:00 Peter Selinger : > Thomas Morley wrote: >> >> Anyway, if you want to have the dots for rests affected as well, you >> need to adress them through the Rest: >> >> \version "2.19.25" >> >> omit-rest-and-dots = >> \override Rest.after-line-breaking = >> #(lambda (grob) >>

Re: vertical spacing of rests

2015-08-23 Thread Peter Selinger
Thomas Morley wrote: > > Anyway, if you want to have the dots for rests affected as well, you > need to adress them through the Rest: > > \version "2.19.25" > > omit-rest-and-dots = > \override Rest.after-line-breaking = > #(lambda (grob) > (ly:grob-set-property! grob 'stencil #f) > (i

Re: vertical spacing of rests

2015-08-23 Thread Peter Selinger
Klaus Blum wrote: > > A quick and dirty approach would be to remove the Rest_engraver from the > second voice: Yes, this works. > If you look for an automatic solution that detects if both voices have the > same rests, go for the merge-rests-engraver already mentioned by Harm. > AFAIK the most

Re: vertical spacing of rests

2015-08-23 Thread Thomas Morley
2015-08-23 14:04 GMT+02:00 Klaus Blum : > Peter Selinger wrote >> your code snippet does not work correctly if some of the rests are >> dotted (see attached for the output). It's a bit of a mystery to me >> why this happens. > > Hi Peter, > > hmmm... I didn't think of this. It's no mystery, it's th

Re: vertical spacing of rests

2015-08-23 Thread Klaus Blum
th care. Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests-tp179947p179979.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: vertical spacing of rests

2015-08-23 Thread Simon Albrecht
r c r d } \new Voice \relative c'' { \voiceTwo \centerRests r4 a8 a8 r4 b8 b8 } %--------- -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests-tp179947p179950.html

Re: vertical spacing of rests

2015-08-23 Thread Klaus Blum
tree/master/editorial-tools/merge-rests-engraver Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests-tp179947p179971.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: vertical spacing of rests

2015-08-22 Thread Peter Selinger
; \centerRests > r4 a8 a8 r4 b8 b8 > } > >> > %- > > > > > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests-tp179947p179950.html > Sent from t

Re: vertical spacing of rests

2015-08-22 Thread Peter Selinger
> > \override Rest.staff-position = #0 > > } > > > > \new Staff << > > \new Voice > > \relative c'' { > > \voiceOne % you don't need a pair of braces here > > \centerRests > > r c r d &g

Re: vertical spacing of rests

2015-08-22 Thread Peter Selinger
; > \new Staff << > \new Voice > \relative c'' { > \voiceOne % you don't need a pair of braces here > \centerRests > r c r d > } > \new Voice > \relative c'' { > \voiceTwo > \centerRests >

Re: vertical spacing of rests

2015-08-22 Thread Simon Albrecht
Am 23.08.2015 um 00:48 schrieb Michael Rivers: It would be nice if this were just newbie question, but all of us old-bies and have to deal with it all the time. It would be really nice if Lilypond just combined the rests as it should. That would have to be discussed, but I agree that it would be

Re: vertical spacing of rests

2015-08-22 Thread Michael Rivers
It would be nice if this were just newbie question, but all of us old-bies and have to deal with it all the time. It would be really nice if Lilypond just combined the rests as it should. -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests

Re: vertical spacing of rests

2015-08-22 Thread Klaus Blum
need a pair of braces here \centerRests r c r d } \new Voice \relative c'' { \voiceTwo \centerRests r4 a8 a8 r4 b8 b8 } >> %- -- View this message in context: http://lilypond.1069038.n5.nabble.com/vertic

Re: vertical spacing of rests

2015-08-22 Thread Thomas Morley
2015-08-23 0:37 GMT+02:00 Thomas Morley : > 2015-08-23 0:01 GMT+02:00 Peter Selinger : >> Hello again, >> >> this is a true newbie question. I am trying to engrave two polyphonic >> voices on a single staff. Since the two voices have all their rests in >> common, I only want to typeset each rest on

Re: vertical spacing of rests

2015-08-22 Thread Thomas Morley
2015-08-23 0:01 GMT+02:00 Peter Selinger : > Hello again, > > this is a true newbie question. I am trying to engrave two polyphonic > voices on a single staff. Since the two voices have all their rests in > common, I only want to typeset each rest once, so I use spacer rests > in the second voice.

vertical spacing of rests

2015-08-22 Thread Peter Selinger
Hello again, this is a true newbie question. I am trying to engrave two polyphonic voices on a single staff. Since the two voices have all their rests in common, I only want to typeset each rest once, so I use spacer rests in the second voice. Still the vertical spacing is such that all the rests