Helper macro to iterate through tracks