Missing getAudioChannelMapping

Hello,

I’m building a UXP panel that applies iXML or custom TRK channel names to timeline clip labels. It works correctly when ch1 is on track 1, ch2 on track 2, etc. But breaks when a clip’s source channels don’t match the track layout (e.g. ch1 cut onto track 2).

ExtendScript had clip.getAudioChannelMapping() for exactly this. I can’t find an equivalent in the UXP API.

The requested addition would looks something like

// On AudioClipTrackItem:
getAudioChannelMapping(): Promise<AudioChannelMapping>;

// Where:
type AudioChannelMapping = {
  getNumMappings(): number;
  getMappingForChannel(outputChannel: number): number; // returns source channel index
};

Thank you!

--Jerome

It turns out what I’m after is not possible either with ExtendScript.

FCP7XML export provides all the info but there’s no API way to parse the source channels in a sequence.

e.g: