[PD] dynamic/live array sizing according to sample lengths