Applies a transformation function to each TrackData.
Parameters:
fn (Callable[[TrackData, OutputType], TrackData | None]) – The function to apply to each TrackData. It should take a
TrackData object and an OutputType enum as input and return a
TrackData object or None.