How to encapsulate TextSpanner?

2015-02-12 Thread H. S. Teoh
In my piece, I have several passages where I'd like to use a TextSpanner to indicate "rall. - - - ". Currently, I have to do this: \override TextSpanner.bound-details.left.text = "rall." \override TextSpanner.direction = #DOWN | a b c\startTextSpanner d | d c b a\stopTextSp

Re: How to encapsulate TextSpanner?

2015-02-12 Thread Kevin Barry
On Thu, Feb 12, 2015 at 9:25 PM, H. S. Teoh wrote: > I've tried various ways of doing this -- putting the commands in a > variable, using various Scheme make-script / make-music constructs, > etc., but lilypond keeps coming back with error messages. What's the > correct syntax for doing this? >

Re: How to encapsulate TextSpanner?

2015-02-12 Thread Simon Albrecht
Am 12.02.2015 um 22:48 schrieb Kevin Barry: On Thu, Feb 12, 2015 at 9:25 PM, H. S. Teoh > wrote: I've tried various ways of doing this -- putting the commands in a variable, using various Scheme make-script / make-music constructs, etc., but lilypond

Re: How to encapsulate TextSpanner?

2015-02-12 Thread Kevin Barry
On Thu, Feb 12, 2015 at 10:03 PM, Simon Albrecht wrote: > I do think this needs a - before each tweak to attach it to the note as > post event, but then it should work. > Yours, Simon > I tried with and without the - and both seemed to work the same. What's the difference? __

Re: How to encapsulate TextSpanner?

2015-02-12 Thread H. S. Teoh
On Thu, Feb 12, 2015 at 09:48:52PM +, Kevin Barry wrote: > On Thu, Feb 12, 2015 at 9:25 PM, H. S. Teoh wrote: > > > I've tried various ways of doing this -- putting the commands in a > > variable, using various Scheme make-script / make-music constructs, > > etc., but lilypond keeps coming ba

Re: How to encapsulate TextSpanner?

2015-02-12 Thread Kevin Barry
On Thu, Feb 12, 2015 at 10:32 PM, H. S. Teoh wrote: > Why doesn't it work when I use \override instead of \tweak? I think \override doesn't work because it gets between the note and \startTextSpan (which always has to follow a note). \tweak doesn't `break' that link, so to speak. __

Re: How to encapsulate TextSpanner?

2015-02-13 Thread Simon Albrecht
Am 12.02.2015 um 23:40 schrieb Kevin Barry: On Thu, Feb 12, 2015 at 10:32 PM, H. S. Teoh > wrote: Why doesn't it work when I use \override instead of \tweak? I think \override doesn't work because it gets between the note and \startTextSpan (which always h

Re: How to encapsulate TextSpanner?

2015-02-14 Thread Kevin Barry
On Fri, Feb 13, 2015 at 3:26 PM, Simon Albrecht wrote: > Concerning the hyphens: When I last tried to pack two tweaks into a > variable, the hyphens seemed to be necessary in order for the second tweak > to still belong into the variable definition, else it would have “hung > around in mid-air”.