Folks,

is it possible to access markup properties like `baseline-skip` via
\tweak?  It is often necessary to define a markup command that gets in
turn wrapped into a music function, and for such situations a
tweak-like command would be quite handy.

In the example below, I want to set the markup property `bar` as a
tweak to influence `\foo`.

[I know about an alternative solution to define an optional argument
 for function `foo`.  I also know about another solution by simply
 defining, say, function `foox` that explicitly adds `\override` right
 after `\markup`.]


    Werner


======================================================================


```
#(define-markup-command (foo-markup layout props) ()
   #:properties ((bar 10))
   (interpret-markup
    layout props
    #{
      \markup \fontsize #bar \natural
    #}))

foo =
#(define-music-function () ()
   #{
     \tweak parent-alignment-X #CENTER
     \tweak self-alignment-X #CENTER
     -\markup \foo-markup
   #})

{
  f'2-\foo
  f'2-\tweak bar #5 \foo     % This tweak (expectedly) fails.
}
```

Reply via email to