Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2017-06-13 Thread Peter Crighton
2016-01-02 23:37 GMT+01:00 Thomas Morley : > > Please look at the attached png and test the attached code. > Tell me what isn't sufficient. > > Cheers, > Harm > Hi Harm, I just found your solution to the problem I had been having for a long time – it helped tremendously, thank you! Only proble

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-03 Thread Thomas Morley
2016-01-03 0:16 GMT+01:00 David Kastrup : > Thomas Morley writes: > >> If you do it 'before-line-breaking it works, yes, but can't be changed >> 'after-line-breaking anymore ... >> >> No idea what's happening and why. > > Caching? I don't see you using unpure-pure containers. Anything else > is

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-02 Thread Kieren MacMillan
Hi Harm, > Let me ensure you, my table has some nice bite marks more … =( > All this predefining markups down/above/parenthesized is way too > tedious and error-prone and would need to be done for > double-ottavation as well ... > And \raise will break whenever you want to use another \fontsize

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-02 Thread David Kastrup
Thomas Morley writes: > If you do it 'before-line-breaking it works, yes, but can't be changed > 'after-line-breaking anymore ... > > No idea what's happening and why. Caching? I don't see you using unpure-pure containers. Anything else is only evaluated once. -- David Kastrup _

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-02 Thread Thomas Morley
. 2016-01-02 17:16 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> Just wrote a bug-report: >> http://lilypond.1069038.n5.nabble.com/Overriding-OttavaBracket-text-fails-td185451.html > > Thanks! > > Can you help me with the #'stencil-align-dir-y replacement hack? > > In the snippet (below), I’ve got

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-02 Thread Kieren MacMillan
Hi Harm, > Just wrote a bug-report: > http://lilypond.1069038.n5.nabble.com/Overriding-OttavaBracket-text-fails-td185451.html Thanks! Can you help me with the #'stencil-align-dir-y replacement hack? In the snippet (below), I’ve got the basic 8va the way I want it, but can’t seem to find the ri

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-02 1:02 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> \alterBroken is a tool meant to facilitate addressing and tweaking >> parts and properties of spanners. You may call it syntactic sugar ;) >> It needs investigation why it fails with OttavaBracket.text > > And, my [admittedly non-exhausti

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi Harm, > In general, even a feature-request which is well-defined > and short worded may involve a lot more then expected. ;) For over twenty years, I was a programmer (of Java, a half-dozen other languages, and several database scripting environments) with clients/users — so I know that only

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi Harm, > \alterBroken is a tool meant to facilitate addressing and tweaking > parts and properties of spanners. You may call it syntactic sugar ;) > It needs investigation why it fails with OttavaBracket.text And, my [admittedly non-exhaustive] testing has just shown, OttavaBracket.shorten-pai

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi David > it's quite trivial to complete the "well-defined” task > without doing anything remotely useful. Well, at least I’ve answered the charge that I didn’t give a well-defined task. Cheers, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-01 22:13 GMT+01:00 Kieren MacMillan : > Hi David, > >> To me it would appear that in this case by far the lion's share of the >> work is digging through reference books (incidentally, I don't have any >> of those), Don't have any as well >> devising a good plan for the desired behavior, c

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread David Kastrup
Thomas Morley writes: > 2016-01-01 22:30 GMT+01:00 David Kastrup : >> Kieren MacMillan writes: >> >>> Hi David, >> >> It is trivial to let OttavaBracket contain line-spanner-interface which >> is just a label for a set of properties. What those properties do >> depends on actual code, however.

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-01 22:30 GMT+01:00 David Kastrup : > Kieren MacMillan writes: > >> Hi David, >> >>> To me it would appear that in this case by far the lion's share of the >>> work is digging through reference books (incidentally, I don't have any >>> of those), devising a good plan for the desired behavio

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-01 22:20 GMT+01:00 Kieren MacMillan : > Hi David N, > >> Strange that >> \alterBroken text #'(() "") Staff.OttavaBracket >> doesn't have an effect here (substitute this line for the call of \foo >> above). > > Exactly. This discovery (which I made some days ago) further added to my > frus

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> To me it would appear that in this case by far the lion's share of the >> work is digging through reference books (incidentally, I don't have any >> of those), devising a good plan for the desired behavior, checking with >> the current behavior, figuring

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi Harm, > broken text isn't that hard Thanks! Through a combination of \translate, \with-dimensions, #’before- and #’after-line-breaking, and your help, I'm getting close to recreating without line-spanner-interface the OttavaBracket defaults that I had before [by overriding #’stencil]; see

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi David N, > Strange that > \alterBroken text #'(() "") Staff.OttavaBracket > doesn't have an effect here (substitute this line for the call of \foo above). Exactly. This discovery (which I made some days ago) further added to my frustration about not being able to predict what is or is not lik

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi Harm, > I posted my findings, else I wrote "discussable ..." > > So, let's start discussion. > > In the end the general question "How should OttavaBracket behave?" > should be answered detailed. > Part of it: > Which properties should be user-settable? > How should a (maybe broken) OttavaBrac

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi David, > To me it would appear that in this case by far the lion's share of the > work is digging through reference books (incidentally, I don't have any > of those), devising a good plan for the desired behavior, checking with > the current behavior, figuring out where the differences are, > c

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi David, > "particular" is not the same as "well-defined”. > I can't even figure out what this is supposed to be about. Feature Request: OttavaBracket should support line-spanner-interface. Does that satisfy your definition of "well-defined”? Thanks, Kieren. K

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread David Kastrup
Thomas Morley writes: > True. > I posted my findings, else I wrote "discussable ..." > > So, let's start discussion. > > In the end the general question "How should OttavaBracket behave?" > should be answered detailed. > Part of it: > Which properties should be user-settable? > How should a (mayb

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-01 19:23 GMT+01:00 David Kastrup : > Kieren MacMillan writes: > >> Hi Harm, >> >> Thank you so much for doing all this! Very informative and helpful. >> >>> I made some fundamental research about spanners with line-interface >>> and those with additional line-spanner-interface. >>> Code, p

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread David Kastrup
Kieren MacMillan writes: > Hi Harm, > > Thank you so much for doing all this! Very informative and helpful. > >> I made some fundamental research about spanners with line-interface >> and those with additional line-spanner-interface. >> Code, pdf, log attached. Their behaviour is inconsistent, to

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread David Nalesnik
On Fri, Jan 1, 2016 at 11:55 AM, Thomas Morley wrote: > 2016-01-01 17:38 GMT+01:00 Kieren MacMillan >: > > > > And my limited testing with \alterBroken seems to suggest that not all > bits are user-settable (e.g., I still can’t seem to set the broken text > without overriding the stencil). > > W

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2016-01-01 17:38 GMT+01:00 Kieren MacMillan : >> P.S.: Up to now I found it impossible to override certain properties >> of the first part of a broken OttavaBracket, like the length of the line. >> Hairpin has the 'broken-bound-padding at least, but none of the >> others, if I'm not mistaken. > >

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Kieren MacMillan
Hi Harm, Thank you so much for doing all this! Very informative and helpful. > I made some fundamental research about spanners with line-interface > and those with additional line-spanner-interface. > Code, pdf, log attached. Their behaviour is inconsistent, to say the least. =( > Regarding def

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2016-01-01 Thread Thomas Morley
2015-12-31 3:23 GMT+01:00 Kieren MacMillan : > Hi Harm, > > Now that my custom ottavation function isn’t overriding the stencil, how do I > adjust all of the parameters I had set in the “bound-details” version (e.g., > X, Y, padding, right-broken.X, etc.)? > > Thanks, > Kieren. > > p.s. My origin

Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")

2015-12-30 Thread Kieren MacMillan
Hi Harm, Now that my custom ottavation function isn’t overriding the stencil, how do I adjust all of the parameters I had set in the “bound-details” version (e.g., X, Y, padding, right-broken.X, etc.)? Thanks, Kieren. p.s. My original function was simply extended from the example in the [curre

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, > I don't think OttavaBracket.bound-details does anything, I'd delete it. It doesn’t any more, because the stencil is no longer being overridden: SNIPPET BEGINS \version "2.19.32" \paper { ragged-right = ##f } #(define eightva #{ \markup %% messing around with \with-dim

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:21 GMT+01:00 Kieren MacMillan : > Hi Harm, > > You win the interwebs for today! =) > > Although I’m only fractionally closer to understanding why certain Lilypond > things work or don’t (I understand now that overriding the stencil may cause > certain overrides to fail post-hoc; yo

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:53 GMT+01:00 David Kastrup : > Thomas Morley writes: > >> But the following works >> >> #(define eightva >> #{ >> \markup >> %% messing around with \with-dimensions, because OttavaBracket has no >> %% possibility to set details.stencil-align-dir-y >> %% :(( >>

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Thomas Morley writes: > But the following works > > #(define eightva > #{ > \markup > %% messing around with \with-dimensions, because OttavaBracket has no > %% possibility to set details.stencil-align-dir-y > %% :(( > \with-dimensions #'(0 . 4) #'(0 . 2.8) > \

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:24 GMT+01:00 Kieren MacMillan : > Hi Harm, > > For a _simple_ ottavation you don't need to add: > > \ottava #1 > > ^^ > delete it. > > > … but then the note doesn’t get engraved correctly? > (see attached screenshot) > > Thanks, > Kieren. > > You're right, my bad. But the

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> \once \override OttavaBracket.extra-offset … >> >> is not a working example. Pretty much everything is missing. Not even >> the command itself is complete. > > If everyone is to include a complete compilable example every time > they mention any Lily

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, > For a _simple_ ottavation you don't need to add: >> \ottava #1 > ^^ > delete it. … but then the note doesn’t get engraved correctly? (see attached screenshot) Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, You win the interwebs for today! =) Although I’m only fractionally closer to understanding why certain Lilypond things work or don’t (I understand now that overriding the stencil may cause certain overrides to fail post-hoc; your comment "Not sure why a direct 'text-override does not

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 15:10 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> %% or simpler: >> >> { >> \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) >> \set Staff.ottavation = #eightva >> c1^"text changed, 'shorten-pair applied" >> } > > Hmmm… That doesn’t seem to actually change the tex

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, > %% or simpler: > > { > \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) > \set Staff.ottavation = #eightva > c1^"text changed, 'shorten-pair applied" > } Hmmm… That doesn’t seem to actually change the text for me (see snippet, below); it appears to revert to th

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David, > \once \override OttavaBracket.extra-offset … > > is not a working example. Pretty much everything is missing. Not even > the command itself is complete. If everyone is to include a complete compilable example every time they mention any Lilypond grob of any sort in any post on t

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, Now *this* is a helpful and informative email! Thanks! > The whole reason for exchanging the stencil seems to be getting sort > of superscript of "va" in "8va" and to have the spanning line starting > at top right edge. I guess? (I am simply extending a function I found on the LSR or so

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 14:34 GMT+01:00 Thomas Morley : > 2015-12-30 13:48 GMT+01:00 Kieren MacMillan : >> Hi Harm, >> >>> Of course you should use Staff.OttavaBracket >> >> Curiously, >> >>\once \override OttavaBracket.extra-offset … >> >> [without the Staff context] works fine. (??) >> >>> but in `octU_si

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> Just imagine how frustrating it is to developers to never get a minimal >> working example actually illustrating all the claims made about LilyPond > > What is missing from the example I sent? \once \override OttavaBracket.extra-offset … is not a wor

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 13:48 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> Of course you should use Staff.OttavaBracket > > Curiously, > >\once \override OttavaBracket.extra-offset … > > [without the Staff context] works fine. (??) > >> but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::p

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David, > Just imagine how frustrating it is to developers to never get a minimal > working example actually illustrating all the claims made about LilyPond What is missing from the example I sent? I’ll be happy to fix it and resubmit. Thanks, Kieren. Kieren M

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan writes: > Hi Harm, > >> Of course you should use Staff.OttavaBracket > > Curiously, > >\once \override OttavaBracket.extra-offset … > > [without the Staff context] works fine. (??) [...] > It’s still quite confusing to me why > >\once \override OttavaBracket.extra-offse

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi Harm, > Of course you should use Staff.OttavaBracket Curiously, \once \override OttavaBracket.extra-offset … [without the Staff context] works fine. (??) > but in `octU_single’ OttavaBracket.stencil is set to ly:line-spanner::print > which doesn’t support 'shorten-pair, as far as I know.

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Thomas Morley
2015-12-30 12:54 GMT+01:00 Kieren MacMillan : > Hi David, > >> OttavaBracket is engraved at Staff level, here you override it at Voice >> level. The Ottava_spanner_engraver never gets to see your override. > > But > > \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) > \octU_si

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread Kieren MacMillan
Hi David, > OttavaBracket is engraved at Staff level, here you override it at Voice > level. The Ottava_spanner_engraver never gets to see your override. But \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10) \octU_single c''’'1 doesn’t work either. Or maybe I’m misunderst

Re: can't seem to apply tweaks on tweaks

2015-12-30 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> Unless you actually follow up with an example of what you are >> actually doing which does not work as expected, >> it will be impossible to tell just what you are doing wrong. > > SNIPPET BEGINS > \version "2.19.32" > > eightva = \markup \italic \c

Re: can't seem to apply tweaks on tweaks

2015-12-29 Thread Kieren MacMillan
Hi David, Thank you for the quick, detailed, and enlightening response. > Those aren't tweaks. They are overrides. My apologies for misused terminology. > I'll assume that you are using a fairly recent version of LilyPond (2.19.28 > or later). Yes. > I haven't used the edition engraver yet b

Re: can't seem to apply tweaks on tweaks

2015-12-29 Thread David Kastrup
Kieren MacMillan writes: > Hello all, > > I don’t quite understand when a tweak will apply and when it won’t… > > For example, I have an ottavation function for “one-off” octave pops: > > octU_single = { > \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print > \once \override

can't seem to apply tweaks on tweaks

2015-12-29 Thread Kieren MacMillan
Hello all, I don’t quite understand when a tweak will apply and when it won’t… For example, I have an ottavation function for “one-off” octave pops: octU_single = { \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print \once \override Staff.OttavaBracket.bound-details = #