The node you are looking for is at Rhythms - Changing time signatures inside a polymetric section using \scaleDurations.