>> I was wowed by this override and wondered why it was so long.
>>
>> \tweak TupletNumber.text "6"
>>
>> works equally well for this situation but I’m sure for other cases
>> the procedure is needed ;)
>
> Well, that function is defined as:
>
> ;; Print a tuplet denominator with a different number than the one
> ;; derived from the actual tuplet fraction [...]
>
> I'm hard pressed to find a reasonable use for this function. It was
> added during work on improving conversion from musicxml; maybe
> there's a reason there why, instead of simply setting a text like
> you do, a wrapper function is used there. Maybe Werner knows more
> about this?
I don't know more about this, sorry. I guess it was added (in 2009)
mainly for completeness so that `musicxml2ly` has a consistent
interface for manipulating tuplet numbers – the mentioned Scheme
function is just one out of a bunch of similar functions.
Werner