Hi Thomas,

after meditating about it, I developed the same conclusion. The approach is
wrong, and I already have better alternatives.
Then an example would be only misleading...

Thank you anyway!

Best,
P

On Mon, Jan 20, 2020 at 11:12 PM Thomas Morley <[email protected]>
wrote:

> Am Mo., 20. Jan. 2020 um 22:37 Uhr schrieb Paolo Prete <
> [email protected]>:
> >
> > Hello,
> >
> > is it possible to make a music expression from strings? It would be
> useful for building expressions with combination of string chunks.
> Something like:
> >
> > %%%%
> > \version "2.19.45"
> >
> > strToMusicExpr = #(define-music-function (parser location token1 token2
> token3 mus) (string? string? string? ly:music?)
> > #{
> >     $token1 $token2 $token3 $mus
> > #})
> >
> > {
> >    \strToMusicExpr "\\tweak" "NoteHead.color" "#red"
> >    c'
> > }
> > %%%%
> >
> > I see that there's a ly:parser-parse-string function. But nor I
> understand if it's safe, nor how does it work, nor if it's the right way to
> achieve what I want...
> >
> > Thanks
> > P
> >
> >
>
> Hi Paolo,
>
> apart from the question whether it's possible and how, this approach
> feels wrong.
>
> Could you give some (pseude-code-) examples where you think you need it?
>
>
> Cheers,
>   Harm
>

Reply via email to