Old 08-12-2017, 03:36 AM   #1
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default Lua: Create layer track



ReaPack/mpl_Create layer track from selected instruments tracks.lua

It:
  • renames selected tracks as instrument names if any
  • creates new folder track right before first selected track, ask for layer containter name
  • puts instrument tracks to folder
  • creates MIDI track
  • routes only MIDI from MIDI track to instrument tracks, disable parent send
  • prepares MIDI track for keyboard input (enable monitoring, recarm, set MIDI inputs)
  • puts all this shit into one indo point
mpl is offline   Reply With Quote
Old 08-13-2017, 06:03 AM   #2
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Quote:
Originally Posted by mpl View Post


ReaPack/mpl_Create layer track from selected instruments tracks.lua

It:
  • renames selected tracks as instrument names if any
  • creates new folder track right before first selected track, ask for layer containter name
  • puts instrument tracks to folder
  • creates MIDI track
  • routes only MIDI from MIDI track to instrument tracks, disable parent send
  • prepares MIDI track for keyboard input (enable monitoring, recarm, set MIDI inputs)
  • puts all this shit into one indo point
I tried this yesterday and found it unbelievable handy, a great piece of work ;you rock mpl !!
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 05-12-2022, 08:21 PM   #3
FearinLoathin
Human being with feelings
 
Join Date: May 2020
Location: Huntsville, AL
Posts: 103
Default

Quote:

ReaPack/mpl_Create layer track from selected instruments tracks.lua

It:
  • renames selected tracks as instrument names if any
  • creates new folder track right before first selected track, ask for layer containter name
  • puts instrument tracks to folder
  • creates MIDI track
  • routes only MIDI from MIDI track to instrument tracks, disable parent send
  • prepares MIDI track for keyboard input (enable monitoring, recarm, set MIDI inputs)
  • puts all this shit into one indo point

This... And all of your other magic... Is effing brilliant. Can't believe I'm just now diggin into SWS. Hats off. Pants off. You're a frickin' deity.
FearinLoathin is offline   Reply With Quote
Old 05-12-2022, 10:50 PM   #4
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Location: India
Posts: 283
Default

can it not have the prompt to rename the new track?
Kaxaze music is offline   Reply With Quote
Old 09-18-2022, 03:47 AM   #5
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Quote:
Originally Posted by Kaxaze music View Post
can it not have the prompt to rename the new track?
replace this
Code:
      -- add/name folder track
        local retval, new_name = GetUserInputs( 'mpl_Create layer track', 1, 'New layer name:,extrawidth=150', 'InstrumentLayer' )
        if not retval then return end 
        InsertTrackAtIndex( insert_id-1, false )
        local fold_tr = CSurf_TrackFromID( insert_id, false )
        GetSetMediaTrackInfo_String( fold_tr, "P_NAME", new_name, true)
with this
Code:
        InsertTrackAtIndex( insert_id-1, false )
        local fold_tr = CSurf_TrackFromID( insert_id, false )
mpl is offline   Reply With Quote
Old 09-19-2022, 10:12 PM   #6
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Location: India
Posts: 283
Default

that worked thanks
Kaxaze music 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 08:00 AM.


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