Using the rhythm.ly defined in this snippet,
you can do something like that.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
myRhythmWithTuplet = #(define-music-function
(parser location musicA musicB musicC)
(ly:music?
ly:music? ly:music?)
#{
\set
tupletSpannerDuration = #(ly:make-moment 1 4)
\times
2/3 \makeRhythm $musicA "8 8 8 8 8 8"
\times
4/5 \makeRhythm $musicB "16 16 16 16 16"
\times 2/3 \makeRhythm $musicC "8 8 8"
\unset
tupletSpannerDuration
#})
\new Staff \relative
{
\myRhythmWithTuplet { c d e f g a} {b c
d e f } {g a b}
\myRhythmWithTuplet { c b a g f e} {d c b a g } {f e
d}
c1
}