How to Script Splitting a Stereo Clip into Two Mono Events in Premiere Pro

In this tutorial, we look at splitting a stereo audio clip into two separate mono clips. The left side of the stereo clip will still go to the left side and the right side of the stereo clip will still go to the right side. However, they will now be two separate clips on the timeline and each can be adjusted individually.

Join us as we write this script to create the new clip, make sure both are mono, and make sure each goes to the proper channel. Then we will link them together so that if you move one clip, both will move.

app.enableQE();

var mySequence = app.project.activeSequence;
var myQESequence = qe.project.getActiveSequence();
var trackTypeList = mySequence.audioTracks;

for (var i=0; i<trackTypeList.numTracks; i++)
{
     var thisTrack = trackTypeList[i];
     for(var j=0; j<thisTrack.clips.numItems; j++)
     {
         var tclip = thisTrack.clips[j];

         var clipSelected = tclip.isSelected();

         if (clipSelected)
         {
             myQESequence.addTracks(0, 0, 1, 1, i);
             var myTrack = trackTypeList[i];

             var binClip = tclip.projectItem;
             myTrack.overwriteClip(binClip, tclip.start);
             var newClip = myTrack.clips[0];

             tclip.components[1].properties[1].setValue(0);
             newClip.components[1].properties[2].setValue(0);

             newClip.setSelected(true, 1);
             mySequence.linkSelection();
             newClip.setSelected(false, 1);
             tclip.setSelected(false, 1);
         }
     }
 }

Please sign up here and leave comments with suggestions of tasks you would like to see automated. You can help guide the direction of these videos. Also, please subscribe to my YouTube channel.

Leave a Reply