Old 04-03-2015, 01:08 PM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default Script (Lua): Explode Multi-Channel Items

Hi !

For a project I needed an action to explode stereo items on several items (one per channel).

Sure there is already an action for this, Explode multichannel audio to new-one channel items, but this one involves render (glueing). You can't extend the newly created items. (they are not linked to the source).

So I start to work on this subject.
Here is the result :
  • It creates two childs tracks per track containing selected items
  • Child tracks are panned left and right
  • Add suffixes to tracks and item created according to their channel
  • Keep selected original item selection
  • Add groups for each selected items, containing the original items and the output items (the two channels)
  • Works without render.
Just as the original script:
  • it works like copy pasting, so all take envelopes and item parameters are preserved.
  • it preserve original selected items (muted)

If you don't want the original parent/group track, for example, if you used this action for converting RPP project into FCP XML (just what I needed), you can use the SWS action to delete tracks preserving child track (with a prompt).

Demo:




Download:

  • X-Raym_Explode multi channel items on two tracks without render (stereo).lua
Cf signature for link to my scripts collection.


Note:
This script is for stereo workflow.
I would love a version that is able to create as many track as required by the number of channels of the selected item (if superior than 2), and with automatic surround routing, but it may be far more complex, and I really rarely use surround in my project.
The native action is able to explode items and create items + tracks according to their channel number, but doesn't create surround routing either.

Thanks for your support
X-Raym is offline   Reply With Quote
Old 04-06-2015, 07:55 PM   #2
Claudiohbsantos
Human being with feelings
 
Join Date: Aug 2014
Location: New York
Posts: 132
Default

This is really nice, definitely useful since it preserves the handles
Claudiohbsantos is offline   Reply With Quote
Old 04-06-2015, 09:53 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

@Claudiohbsantos
Yep ! I love non-destructive / render-free workflows :P
Thanks for your feedback, it is really appreciated
X-Raym is offline   Reply With Quote
Old 04-07-2015, 02:35 PM   #4
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 656
Default

Explosion !
J Reverb is offline   Reply With Quote
Old 05-07-2015, 04:55 PM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

Code:
 * Changelog:
 * v1.1 (2015-05-08)
    # Better restorations
The previous version saved selections, views and cursor with SWS actions.

Now, it doesn't use your SWS slot anymore.

This has been made possible thanks to the last SWS pre release version 2.7.1 (thanks to Breeder !)
X-Raym is offline   Reply With Quote
Old 06-01-2015, 09:08 AM   #6
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 592
Default

This is an improvement on my macro that I have been using (which doesn't name the tracks) but is render free and works in REAPER 4. See my macro in this video here. https://vimeo.com/121931315

An enhancement would be to allow to define how you want multi channels split.

It is common to split 6 channels into 2-1-1-2 for instance as that is more useful than 6 mono channels.

Or I might have a quad file which is 1-1-2 (bass drum, snare, overheads). It might sound weird but that is how I used to record my own drumming in another DAW to keep everything in one file.

How about a drop down box with various split options? or just use digits from a string i.e. 2112, 112 etc.
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Old 06-01-2015, 09:45 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

Actually I just propose a stereo worflow for the moment !

I almost never use more channels and I don't have system to listen in surroud so... I don't think I will put time/work a script for more channels / multiple channels number in the selection, but any moder is welcome !

note for the moder: since I worte this script, I found a cleaner way to copy paste items with scripts: replace the main on command 'copy items' by the nudge API function.
X-Raym is offline   Reply With Quote
Old 06-01-2015, 10:17 AM   #8
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 592
Default

Quote:
Originally Posted by X-Raym View Post
Actually I just propose a stereo worflow for the moment !

I almost never use more channels and I don't have system to listen in surroud so... I don't think I will put time/work a script for more channels / multiple channels number in the selection, but any moder is welcome !

note for the moder: since I worte this script, I found a cleaner way to copy paste items with scripts: replace the main on command 'copy items' by the nudge API function.
I use multichannel files for all sorts of things, not just surround mixing. But maybe I am weird. REAPER does let you record multichannel files. I like to drums this way as can chop easily and use in different projects.

See screenshot.
Attached Images
File Type: jpg Screen Shot 2015-06-01 at 18.05.42.jpg (24.4 KB, 212 views)
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Old 06-01-2015, 10:48 AM   #9
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

@mrlimbic
Oh, I don't say it was not useful, I just never use it ! I prefer mono files for drum recording, so that everh file as it's own name based on its own track.
Multiole channel druls recording may not be phase aligned and so, not very nice to listen without exploding them first anway :P

But you are right, my main concern about a surround version of it was I was not sure how to pan each tracks (it would involve setting reasurround with script), but as you said, it can be multichannel without surround. This case appears easier. Except with your conditionnal flexible based on user inout split FR :P
X-Raym is offline   Reply With Quote
Old 05-30-2019, 06:24 AM   #10
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

4 years later, I finally manage to make an updated more efficient workflow, working with multi channel source, and without creating unnecessary new child tracks if they already exist.


I put that into a premium pack, cause this was long scripting :P




Thanks for your support !

X-Raym is offline   Reply With Quote
Old 06-02-2019, 06:02 AM   #11
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 14,632
Default

Thanks for your scripting!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva/angel-rain
hopi is offline   Reply With Quote
Old 06-02-2019, 03:24 PM   #12
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,873
Default

@hopi
You are welcome. Glad if it can help!
X-Raym is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.