# Python - Audio Channel Manipulation

**URL:** <https://forum.logik.tv/t/python-audio-channel-manipulation/2816>\
**Category:** Python\
**Created:** [April 9, 2021, 2:13pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816 "2021-04-09T14:13:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knhn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/knhn/32/5635_2.png) [@knhn](https://forum.logik.tv/u/knhn)\
**Post date:** [April 9, 2021, 2:13pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816/1 "2021-04-09T14:13:27Z")

</div>

Hiya!

Thanks in advance. Would anyone know if it is now possible via python to do the conversion from 5.1 + Stereo Audio to Stereo on a timeline? The classic remove 1-6, and promote 7&8 to 1&2? I believe the last time I looked into this, you couldnt do it to the actual timeline you right clicked on, but the script would first need to make a duplicate timeline in a Shared Library.

Thanks again in advance. I tend to just hack around in python, so it would be great if I could save hours going down the coding rabbit hole for what might be a dead end.

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [April 9, 2021, 9:07pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816/2 "2021-04-09T21:07:34Z")

</div>

Hey Kieran,

I’ll take a look, but TBH I haven’t done much python in the timeline, and I would love to be able to script some audio tasks. I’ve long dreamed of being able to select a folder full of all of the audio files for a spot and have a script that looks to see if “L” or “Ls” is in the name, and then put the clips in the right place.

---

<div class="post-metadata">

**Author:** ![knhn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/knhn/32/5635_2.png) [@knhn](https://forum.logik.tv/u/knhn)\
**Post date:** [April 11, 2022, 7:01pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816/3 "2022-04-11T19:01:38Z")

</div>

Following up… this is pretty much solved.

The workflow would be to use the [surround\_sound\_channels\_mute](https://github.com/logik-portal/python_scripts/tree/main/surround_sound_channels_mute) and unmute scripts, then just export using Mixdown to Stereo.

Bing bang boom.

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [April 11, 2022, 7:16pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816/4 "2022-04-11T19:16:07Z")

</div>

Does this work for multiple selections?

---

<div class="post-metadata">

**Author:** ![john-geehreng](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/john-geehreng/32/7195_2.png) [@john-geehreng](https://forum.logik.tv/u/john-geehreng)\
**Post date:** [April 11, 2022, 7:30pm UTC](https://forum.logik.tv/t/python-audio-channel-manipulation/2816/5 "2022-04-11T19:30:09Z")

</div>

I haven’t messed with these scripts in a while, but they should work with multiple selections.
