Re: global alignment tweak for ChordName

2021-12-21 Thread Jean Abou Samra
Le 21/12/2021 à 22:29, David Kastrup a écrit : Jean Abou Samra writes: [Valentin] Hello Jean, hello David, hello Kieren, you should even be able to write (if sten (ly:stencil-extent sten)), as the stencil should always be a stencil or #f. The two universally accepted values for any

Re: global alignment tweak for ChordName

2021-12-21 Thread David Kastrup
Jean Abou Samra writes: > [Valentin] >> Hello Jean, hello David, hello Kieren, >> >> you should even be able to write (if sten (ly:stencil-extent sten)), >> as the stencil should always be a stencil or #f. > > > The two universally accepted values for any property > regardless of the predicate

Re: global alignment tweak for ChordName

2021-12-21 Thread Jean Abou Samra
Le 21/12/2021 à 21:49, David Kastrup a écrit : Your "if" has no else path. Maybe replace it with "and", assuming that ChordName knows how to deal with an X-offset of #f (which tends to be a valid setting for any predicate in grob properties). Ouch. Looking at the relevant code path uncovered

Re: global alignment tweak for ChordName

2021-12-21 Thread Valentin Petzel
Hello David, using and here is a fancy way of doing things, that is true. Best way would probably to use a suitable else value like '(0 . 0) or something, I guess. Cheers, Valentin 21.12.2021 21:58:59 David Kastrup : > Valentin Petzel writes: > >> Hello Jean, hello David, hello Kieren, >>

Re: global alignment tweak for ChordName

2021-12-21 Thread David Kastrup
Valentin Petzel writes: > Hello Jean, hello David, hello Kieren, > > you should even be able to write (if sten (ly:stencil-extent sten)), > as the stencil should always be a stencil or #f. The return value will still be neither #f nor a dimension unless you replace "if" with "and". -- David

Re: global alignment tweak for ChordName

2021-12-21 Thread Valentin Petzel
Hello Jean, hello David, hello Kieren, you should even be able to write (if sten (ly:stencil-extent sten)), as the stencil should always be a stencil or #f. Cheers, Valentin 21.12.2021 21:42:13 Jean Abou Samra : > Le 21/12/2021 à 21:33, David Kastrup a écrit : >> Kieren MacMillan writes: >>>

Re: global alignment tweak for ChordName

2021-12-21 Thread David Kastrup
Jean Abou Samra writes: > Certainly. Kieren, try this: > > \version "2.22.1" > > \layout { ragged-right = ##f } > > music = \chordmode { >   c1 c:7 c:m7 c':m6.4.2/ees \once \omit ChordName c > } > > \score { >   << >     \new ChordNames \music >     \new Staff \music >   >> >   \layout { >    

Re: global alignment tweak for ChordName

2021-12-21 Thread Kieren MacMillan
Hi all, >>> Any thoughts about what might be going wrong? >> It is applied to a grob that has been given the \omit treatment? > Certainly. Kieren, try this Perfection! Thank you, Aaron and David and Jean! Onward and upward. =) Kieren

Re: global alignment tweak for ChordName

2021-12-21 Thread Jean Abou Samra
Le 21/12/2021 à 21:33, David Kastrup a écrit : Kieren MacMillan writes: Hi again, When I try to use it in my main file, I get this: In procedure ly:stencil-extent in expression (ly:stencil-extent sten X): /Users/kmac/Documents/01_music/scores/_include/paper/musical.ily:254:21: Wrong type

Re: global alignment tweak for ChordName

2021-12-21 Thread David Kastrup
Kieren MacMillan writes: > Hi again, > > When I try to use it in my main file, I get this: > > In procedure ly:stencil-extent in expression (ly:stencil-extent sten X): > /Users/kmac/Documents/01_music/scores/_include/paper/musical.ily:254:21: > Wrong type argument in position 1 (expecting

Re: global alignment tweak for ChordName

2021-12-21 Thread Kieren MacMillan
Hi again, When I try to use it in my main file, I get this: In procedure ly:stencil-extent in expression (ly:stencil-extent sten X): /Users/kmac/Documents/01_music/scores/_include/paper/musical.ily:254:21: Wrong type argument in position 1 (expecting Stencil): #f Any thoughts about what might

Re: global alignment tweak for ChordName

2021-12-21 Thread Kieren MacMillan
Hi Aaron, > I've used something like this in the past That's great! I just wrapped your 'center-er' in a (max -2 etc), and it's exactly what I want: \version "2.22.0" \layout { ragged-right = ##f } music = \chordmode { c1 c:7 c:m7 c':m6.4.2/ees } \score { << \new ChordNames

Re: global alignment tweak for ChordName

2021-12-21 Thread Aaron Hill
On 2021-12-21 10:30 am, Kieren MacMillan wrote: and am once again in need this ChordName alignment feature. Is anyone out there able to shepherd me through building a callback to make this happen? I've used something like this in the past: \version "2.22.0" music = \chordmode {

Re: global alignment tweak for ChordName

2021-12-21 Thread Kieren MacMillan
oops! forgot the ** footnote: ** Thanks again to the ’Pond for how amazing the app already is: every time I crank out amazing looking scores and parts in such a short period of time, I'm reminded how lucky we all are for the efforts of the developers. All of my Finale- and Sibelius-using

Re: global alignment tweak for ChordName

2021-12-21 Thread Kieren MacMillan
Hi all, I'm cramming out scores for an upcoming workshop of a new musical**, and am once again in need this ChordName alignment feature. Is anyone out there able to shepherd me through building a callback to make this happen? Thanks, Kieren. > On Jun 16, 2018, at 1:41 PM, Kieren MacMillan >

Re: global alignment tweak for ChordName

2018-06-16 Thread Simon Albrecht
On 16.06.2018 19:41, Kieren MacMillan wrote: I would like my chord names to be centred until they’re of a certain width (say as wide as Cm7), and anything wider than that would extend to the right from a position slightly to the left of the note column they’re attached to (as if X-offset =

Re: global alignment tweak for ChordName

2018-06-16 Thread Aaron Hill
On 2018-06-16 10:41, Kieren MacMillan wrote: Hi all, I would like my chord names to be centred until they’re of a certain width (say as wide as Cm7), and anything wider than that would extend to the right from a position slightly to the left of the note column they’re attached to (as if

global alignment tweak for ChordName

2018-06-16 Thread Kieren MacMillan
Hi all, I would like my chord names to be centred until they’re of a certain width (say as wide as Cm7), and anything wider than that would extend to the right from a position slightly to the left of the note column they’re attached to (as if X-offset = -1). Would this best be done with a