Re: Tweaking notehead direction in chords

2013-01-06 Thread Paul Morris
Hi Harm, On Jan 6, 2013, at 7:38 AM, Thomas Morley wrote: > The problem is that \displaceHeads uses 'before-line-breaking. > In case of beamed stems it tries to call the 'stencil before it is calculated. > > Changing the property to 'after-line-breaking seems to solve this issue. > > Drawback:

Re: Tweaking notehead direction in chords

2013-01-06 Thread Thomas Morley
Hi Paul, sorry to answer that late, wasn't online a few days. 2013/1/5 Paul Morris : > On Jan 4, 2013, at 11:10 PM, Paul Morris wrote: > >> Without looking into it any further, my best guess is that calculating the >> stem width does not work because the stem grob has not been generated before

Re: Tweaking notehead direction in chords

2013-01-05 Thread Paul Morris
On Jan 4, 2013, at 11:10 PM, Paul Morris wrote: > Without looking into it any further, my best guess is that calculating the > stem width does not work because the stem grob has not been generated before > the ] is reached, or something like that? By commenting things out, I identified the f

Re: Tweaking notehead direction in chords

2013-01-04 Thread Paul Morris
On Dec 27, 2012, at 9:38 AM, Thomas Morley wrote: > Hi Paul, > > approved as > http://lsr.dsi.unimi.it/LSR/Item?id=861 > > I added some small changes. > Could take them back, if you want. > > Many thanks for contributing, > Harm Hi Harm, That's great, thanks! Unfortunately, I ran into a

Re: Tweaking notehead direction in chords

2012-12-27 Thread Thomas Morley
2012/12/27 Paul Morris : > Hi Harm, > > On Dec 26, 2012, at 7:13 AM, Thomas Morley > wrote: > >> was a matter of $-signs again. >> I uploaded a 2.14.2-version with some small changes. > > Ah, I should have known. :-) Thanks for making the needed changes. > > >> Ofcourse the description and the

Re: Tweaking notehead direction in chords

2012-12-26 Thread Paul Morris
Hi Harm, On Dec 26, 2012, at 7:13 AM, Thomas Morley wrote: > was a matter of $-signs again. > I uploaded a 2.14.2-version with some small changes. Ah, I should have known. :-) Thanks for making the needed changes. > Ofcourse the description and the prefatory comments in the code should >

Re: Tweaking notehead direction in chords

2012-12-26 Thread Thomas Morley
2012/12/26 Paul Morris : [...] > I tried to upload the most recent code to the LSR, with some edits to the > examples: > http://lsr.dsi.unimi.it/LSR/Item?u=1&id=861 > > But it did not work since it is throwing errors in 2.14.2. [...] Hi Paul, was a matter of $-signs again. I uploaded a 2.14.2-ve

Re: Tweaking notehead direction in chords

2012-12-25 Thread Paul Morris
On Dec 23, 2012, at 1:33 PM, Thomas Morley wrote: > that's all true and _much_ better explained than I could have done it. > I agree to all of it. Hi Harm, ok, thanks. > Thanks. > And I promise to approve it asap. I tried to upload the most recent code to the LSR, with some edits to the ex

Re: Tweaking notehead direction in chords

2012-12-23 Thread Paul Morris
On Dec 20, 2012, at 7:51 PM, Thomas Morley wrote: > I think there is no way to align moved noteheads left and right from > the stem _and_ to keep a correct 'stem-attachment in x-axis-direction > in all thinkable cases. > The y-value of 'stem-attachment has to be modified in several situations >

Re: Tweaking notehead direction in chords

2012-12-23 Thread Thomas Morley
2012/12/23 Paul Morris : > On Dec 20, 2012, at 7:51 PM, Thomas Morley > wrote: > >> I think there is no way to align moved noteheads left and right from >> the stem _and_ to keep a correct 'stem-attachment in x-axis-direction >> in all thinkable cases. >> The y-value of 'stem-attachment has to be

Re: Tweaking notehead direction in chords

2012-12-21 Thread Paul Morris
On Dec 20, 2012, at 7:51 PM, Thomas Morley wrote: > We should provide a shorter example than my last. > I used the custom-note-heads only for advanced testings. > I'd prefer a double-line, though, above the original, below the tweaked > version. Sounds good to me. I can work on that. > (2)

Re: Tweaking notehead direction in chords

2012-12-21 Thread David Kastrup
Thomas Morley writes: > (2) LilyPond > So far so good and LilyPond _does_ it quite good. > Though, the amount of covering the stem-width isn't the same for left > and right printed noteheads. > For up-stems a left-printed notehead covers the whole stem-width but a > right-printed one only about t

Re: Tweaking notehead direction in chords

2012-12-20 Thread Thomas Morley
2012/12/20 Paul Morris : [...] > I started work on editing it for the LSR (see attachment). Having the > comments explaining the steps is really nice. I thought it would probably be > good to comment out the test section and the music examples that go with it > to keep things focused and simpl

Re: Tweaking notehead direction in chords

2012-12-20 Thread Paul Morris
On Dec 17, 2012, at 6:13 PM, Thomas Morley wrote: > I had a closer look at this snippet. > Attached you'll find my version of it. Hi Harm, I had a chance to take a closer look at your improved version of this snippet. Very nice work, thank you! The changes and additions all make sense to me

Re: Tweaking notehead direction in chords

2012-12-17 Thread Paul Morris
On Dec 17, 2012, at 6:13 PM, Thomas Morley wrote: > 2012/12/15 Paul Morris : > [...] >> Looks like the most recent version of the snippet is now appearing in the >> LSR: >> http://lsr.dsi.unimi.it/LSR/Item?u=1&id=861 > > Hi Paul, > > I had a closer look at this snippet. > Attached you'll find

Re: Tweaking notehead direction in chords

2012-12-17 Thread Thomas Morley
2012/12/15 Paul Morris : [...] > Looks like the most recent version of the snippet is now appearing in the LSR: > http://lsr.dsi.unimi.it/LSR/Item?u=1&id=861 Hi Paul, I had a closer look at this snippet. Attached you'll find my version of it. Changes: - reads the stencil-dimensions of the NoteHe

Re: Tweaking notehead direction in chords

2012-12-15 Thread Thomas Morley
2012/12/15 Paul Morris : [...] > Anyone know why there is so much unnecessary white-space? Something is wrong in the LSR. I already reported this to the LSR-Admin. He promised to have a look asap. Cheers, Harm ___ lilypond-user mailing list lilypond-

Re: Tweaking notehead direction in chords

2012-12-15 Thread Paul Morris
On Dec 14, 2012, at 4:07 AM, David Kastrup wrote: > David Nalesnik writes: > >> On Thu, Dec 13, 2012 at 9:30 PM, David Nalesnik >> wrote: >>> >>> I notice that you haven't added the $ sign before offsets in the LSR >>> snippet as Harm and I advised. Try that and I see no reason the >>> snipp

Re: Tweaking notehead direction in chords

2012-12-13 Thread Paul Morris
Hi David, On Dec 13, 2012, at 10:36 PM, David Nalesnik wrote: > Hi again, > > On Thu, Dec 13, 2012 at 9:30 PM, David Nalesnik > wrote: >> Hi Paul, >> >> Somehow your response has gotten associated with the wrong thread. >> >> On Thu, Dec 13, 2012 at 9:12 PM, Paul Morris wrote: >> >>> I cam

Re: Tweaking notehead direction in chords

2012-12-13 Thread Thomas Morley
2012/12/13 Paul Morris : [...] > I found a good way to break it. If you try it with whole notes the stem's > X-extent is (+inf.0 . -inf.0) and you get this error: "programming error: > Infinity or NaN encountered" Likely, a check for grob::is-live? should be helpful. > > So I tried to work aro

Re: Tweaking notehead direction in chords

2012-12-12 Thread Paul Morris
Hi Harm, On Dec 12, 2012, at 9:03 PM, Thomas Morley wrote: > I've seen the updated version in the LSR already and tend to approve it as is. > I doubt it could be possible to create an automatism for 'stem-attachment. Ok, I went ahead and added examples of manual overrides for fixing stem atta

Re: Tweaking notehead direction in chords

2012-12-12 Thread Thomas Morley
Hi David (N), Paul, 2012/12/13 Paul Morris : > On Dec 12, 2012, at 7:24 PM, Thomas Morley > wrote: > >> Hi Paul, >> >> I had a look at the LSR-snippet >> http://lsr.dsi.unimi.it/LSR/Item?id=861 >> >> It's no problem to make it work with 2.14.2 just adding a $-sign >> before offsets in the music-

Re: Tweaking notehead direction in chords

2012-12-12 Thread Paul Morris
On Dec 12, 2012, at 7:24 PM, Thomas Morley wrote: > Hi Paul, > > I had a look at the LSR-snippet > http://lsr.dsi.unimi.it/LSR/Item?id=861 > > It's no problem to make it work with 2.14.2 just adding a $-sign > before offsets in the music-function. > > But you will have noticed that after appl

Re: Tweaking notehead direction in chords

2012-12-12 Thread David Nalesnik
Hi Harm, On Wed, Dec 12, 2012 at 6:24 PM, Thomas Morley wrote: > 2012/12/11 Paul Morris : >> Below is a revised version > [...] > > Hi Paul, > > I had a look at the LSR-snippet > http://lsr.dsi.unimi.it/LSR/Item?id=861 > > It's no problem to make it work with 2.14.2 just adding a $-sign > before

Re: Tweaking notehead direction in chords

2012-12-12 Thread Thomas Morley
2012/12/11 Paul Morris : > Below is a revised version [...] Hi Paul, I had a look at the LSR-snippet http://lsr.dsi.unimi.it/LSR/Item?id=861 It's no problem to make it work with 2.14.2 just adding a $-sign before offsets in the music-function. But you will have noticed that after applying the f

Re: Tweaking notehead direction in chords

2012-12-12 Thread David Kastrup
Arle Lommel writes: > Great Paul! Thanks for this. I wish I knew Scheme enough to do this > myself, but I've not learned it and for someone who doesn't know > Scheme, it looks really strange and the learning curve looks steep. Scheme is not all that hard to learn, but some kind of tricks you can

Re: Tweaking notehead direction in chords

2012-12-12 Thread Arle Lommel
Great Paul! Thanks for this. I wish I knew Scheme enough to do this myself, but I've not learned it and for someone who doesn't know Scheme, it looks really strange and the learning curve looks steep. Best, -Arle On 2012 Dec 11, at 22:00 , Paul Morris wrote: > Hi Arle, > > Below is a rev

Re: Tweaking notehead direction in chords

2012-12-11 Thread Paul Morris
Hi Arle, Below is a revised version that lets you just enter 1 and -1 to indicate your offsets. It then multiplies that by 1.251178 to get the precise offset amount. You could enter a slightly larger amount (like 1.1) for whole notes and adjust to taste. This basically lets you work in unit

Re: Tweaking notehead direction in chords

2012-12-11 Thread Arle Lommel
Brilliant, Paul. It isn't as easy as I'd hoped, but this works and is really minimally difficult for me to use. I used 1.25 and -1.25 as values and it is certainly close enough that I can't complain. This helps a *lot*. Best regards, Arle On 2012 Dec 11, at 21:05 , Paul Morris wrote: > Hi Arl