Hi

On Tue, Feb 7, 2023 at 9:07 PM Jean Abou Samra <j...@abou-samra.fr> wrote:

>
> \version "2.24.0"
>
> myT =
> #(define-music-function (pa pb) (ly:music? ly:music?)
>    (ly:music-set-property! pa 'duration #{ 4 #})
>    (ly:music-set-property! pb 'duration #{ 8 #})
>     #{ \tuplet 3/2 { #pa #pb } #})
>
> {
>   \myT c( gis a4_.)
>   \myT c_. d^^ e4
> }
>
>
> You need to receive the argument as ly:music? so as to allow
> articulations on the note. Then, you can override the duration,
> with ly:music-set-property! .
>
>
>
I just noticed this does not support chords: \myT <c e> f
While I can do that manually (just a couple of cases) it would be nice to
learn how to handle these cases.
Would it be possible?

thanks
Alberto

Reply via email to