The period in samples is not useful, I need to output the id of a
period.
Period id in output, instead of period value in samples.