Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 06-09-2015, 07:57 AM   #81
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

I have to admit that a lua version of this script could be a perfect companion for the Lua Loudness Graph by Heda

It will allow to quickly create bus analysis track for it !
X-Raym is offline   Reply With Quote
Old 06-09-2015, 08:31 AM   #82
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,239
Default

Quote:
Originally Posted by X-Raym View Post
I have to admit that a lua version of this script could be a perfect companion for the Lua Loudness Graph by Heda

It will allow to quickly create bus analysis track for it !
I have the hope that Cockos will decide to add Post Fader Insert FX so we wouldn't have to create BUS for analysis.
REAPER is known to be good for its routing... and yet it doesn't have post fader inserts? Doesn't make sense.

Last edited by heda; 06-09-2015 at 08:38 AM.
heda is offline   Reply With Quote
Old 06-09-2015, 08:43 AM   #83
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@heda
Agree ! Where can I vote for that !
X-Raym is offline   Reply With Quote
Old 06-10-2015, 07:20 AM   #84
Jae.Thomas
Human being with feelings
 
Join Date: Jun 2006
Posts: 22,567
Default

what is the utility of this script? Seems interesting.
Jae.Thomas is offline   Reply With Quote
Old 06-25-2015, 11:30 AM   #85
Mercado_Negro
Moderator
 
Mercado_Negro's Avatar
 
Join Date: Aug 2007
Location: Caracas, Venezuela
Posts: 8,676
Default

Are there Lua or EEL scripts for this?
__________________
Pressure is what turns coal into diamonds - Michael a.k.a. Runaway
Mercado_Negro is offline   Reply With Quote
Old 06-26-2015, 02:24 AM   #86
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by Mercado_Negro View Post
Are there Lua or EEL scripts for this?
Not yet, but we can dream
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-02-2015, 11:07 PM   #87
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by Jason Brian Merrill View Post
what is the utility of this script? Seems interesting.
Click on source track(s), run script (opens a dialogbox), click on destination tracks (the tracks you want to send to), then press OK on the floating dialogbox.

Sends will be created from all source to all destination tracks.
I use it a hundred times a day for mixing.

(There is scope in the script to change the settings of the default sends that are created.)
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-02-2015, 11:10 PM   #88
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by heda View Post
I have the hope that Cockos will decide to add Post Fader Insert FX.
REAPER is known to be good for its routing... and yet it doesn't have post fader inserts? Doesn't make sense.
Oh god, TELL me about it!!
I love what Justin & co. have done, but this really seems like an oversight.
I guess if it's not something the devs have ever personally needed, they must not see the value in it.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-02-2015, 11:12 PM   #89
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by spk77 View Post
Ok, I can make EEL/Lua versions (but they still need REAPER 5 )
Alright, I'm finally here! Reaper v5rc4 is installed.

FYI, the information for my request can be found in post #78 in this thread (http://forum.cockos.com/showpost.php...4&postcount=78)


Cheers, spk77!
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-03-2015, 10:36 AM   #90
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

spk77.... works beautifully for me ...Win7 64 bit, reaper 64 bit ... latest pre 5

thanks for all you do!

In fact it works so nicely it made me go and modify my theme pngs for the various IO states...
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 07-03-2015, 10:43 AM   #91
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Just a "PS" comment... besides that I'll wait and see what the lua version brings to the table [even though the py is working fine here]

What this does should really be part of the native functions IMO and in this way:

Just as we can select various tracks and drag them into a parent folder, we 'should' be able to select various tracks and then drag the IO from any of them to another track [the receive track] and have them ALL become sends to that track. ...as reaper currently is, we have to do them one at a time... which of course this lovely script fixes... but again... IMHO it should be native, eh wot?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 07-03-2015, 05:27 PM   #92
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Hi Hopi,
The final vision for my version of the script will be that it scrolls the mixer around at appropriate stages of the script.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-03-2015, 09:52 PM   #93
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Quote:
Originally Posted by daxliniere View Post
Hi Hopi,
The final vision for my version of the script will be that it scrolls the mixer around at appropriate stages of the script.
oh ... I see where that could really be important... but I don't often have that many tracks... kewl idea indeed.
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 07-03-2015, 09:58 PM   #94
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Earlier this year I broke my track record (ha!) from last year. It was 138 tracks, which was blown away by 168 tracks, then annihilated by 199 tracks. This was music, not film. (O.O)


Turned out great, though. The first single is here: https://vimeo.com/132254460
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-04-2015, 08:24 AM   #95
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

I had an unfinished script I wanted to finish first (well, it's not ready but "working"): http://forum.cockos.com/showpost.php...&postcount=504


...but now I can continue working on this.
spk77 is offline   Reply With Quote
Old 07-04-2015, 07:50 PM   #96
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by spk77 View Post
I had an unfinished script I wanted to finish first (well, it's not ready but "working"): http://forum.cockos.com/showpost.php...&postcount=504
That's a REALLY cool looking script, but I don't see how it relates item fade-ins/-outs?
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-05-2015, 01:33 AM   #97
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by daxliniere View Post
That's a REALLY cool looking script, but I don't see how it relates item fade-ins/-outs?
Item fade-ins/-outs? Did you post in the wrong thread?

Last edited by spk77; 07-05-2015 at 03:43 AM.
spk77 is offline   Reply With Quote
Old 07-05-2015, 04:02 AM   #98
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by spk77 View Post
Item fade-ins/-outs? Did you post in the wrong thread?
Haha, yes I did. This is the problem with having too many tabs open.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 08-27-2015, 03:49 AM   #99
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Any news on lua or eel script for this fantastic utility ??
vanhaze is offline   Reply With Quote
Old 11-30-2015, 12:18 AM   #100
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Hey spk77,
I was on REAPER v5.11pre4 and I got this script execution error with the script below. I tried again and got the same error.
I rolled back to official release 5.03 and no problem, then, starting with v5.11pre1 I went up version by version until I reached v5.11pre4 again and found the problem doesn't exist. I've never seen it before with any version of REAPER.
I just wanted to post this here as a record of the potential issue.
Not sure if it was caused by the script (unlikely), Python or SWS.

Quote:
Script execution error

Traceback (most recent call last):
File "Create sends to destination tracks (Win7).py", line 61, in <module>
addReceives()
File "Create sends to destination tracks (Win7).py", line 54, in addReceives
addReceive = SNM_AddReceive(sourceTrack, destinationTrack, sendType)
File "C://Program Files//AUDIO//REAPER//Plugins\sws_python.py", line 486, in SNM_AddReceive
r=f(t[0],t[1],t[2])
WindowsError: exception: access violation reading 0x0000000000000150

Code:
# Add sends/receives to selected tracks (doesn't work on XP)

from sws_python import *
from contextlib import contextmanager

@contextmanager
def undoable(message):
    RPR_Undo_BeginBlock2(0)
    try:
        yield
    finally:
        RPR_Undo_EndBlock2(0, message, -1)

def msg(m):
    RPR_ShowConsoleMsg(m)

def addReceives():
    """Sendtypes:
    -1 = Default type (user preferences)
    0 = Post-Fader (Post-Pan)
    1 = Pre-FX
    2 = deprecated
    3 = Pre-Fader (Post-FX)"""

    sendType = -1   # default type
    sourceTrackL = []
    sourceTracks = ""
    destinationTrackL = []

    selTrackCount = RPR_CountSelectedTracks(0)

    # (user has not selected the source tracks) -> exit
    if selTrackCount == 0:
        sourceSelMsg = RPR_ShowMessageBox("Please select the source tracks and run the script again.", "No selected (source) tracks", 0)
        return

    # (user has selected the source tracks)
    elif selTrackCount > 0:
        RPR_Main_OnCommand(RPR_NamedCommandLookup("_SWS_SAVESEL"), 0)   # save source track selection
        for i in range(selTrackCount):
            sourceTrackL.append(RPR_GetSelectedTrack(0, i))

        RPR_Main_OnCommand(40297, 0)    # unselect all tracks

        destTrackMsg = RPR_ShowMessageBox("Source track(s) stored. Select destination track(s), then press OK\nPress cancel to exit", "Source tracks stored - select destination tracks.", 1)
        if destTrackMsg == 2:
            RPR_Main_OnCommand(RPR_NamedCommandLookup("_SWS_RESTORESEL"), 0)   # restore source track selection
            return
        else:
            selTrackCount = RPR_CountSelectedTracks(0)
            for i in range(selTrackCount):
                destinationTrack = RPR_GetSelectedTrack(0, i)
                for sourceTrack in sourceTrackL:
                    addReceive = SNM_AddReceive(sourceTrack, destinationTrack, sendType)

        RPR_SetMixerScroll(sourceTrackL[0]) # scroll to first source track
        RPR_Main_OnCommand(RPR_NamedCommandLookup("_SWS_RESTORESEL"), 0)   # restore source track selection
        RPR_TrackList_AdjustWindows(False)  # refresh TCP

with undoable("Add receives"):
    addReceives()
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 11-30-2015, 03:01 AM   #101
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Quote:
Originally Posted by daxliniere View Post
I rolled back to official release 5.03 and no problem, then, starting with v5.11pre1 I went up version by version until I reached v5.11pre4 again and found the problem doesn't exist.
Weird. What is your SWS version? (SNM_AddReceive() is a SWS function...)
Jeffos is offline   Reply With Quote
Old 11-30-2015, 04:37 AM   #102
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

It doesn't do it every time and it doesn't fail on every send. For example, the script seemed to be crashing before creating the send to the third track (which had panning = 9%R), but the first two sends were created properly.

I'm using SWS 2.8.2 #0 x64
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 11-30-2015, 07:29 AM   #103
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Hmmm...I don't know what could be causing the error.
spk77 is offline   Reply With Quote
Old 07-18-2016, 02:08 PM   #104
barbaroja
Human being with feelings
 
barbaroja's Avatar
 
Join Date: Jul 2009
Posts: 429
Default

Well reviving this truly useful thread.

Spk77, do you think there is a chance to define the destination track send channels?

Ie: Source channels OUT 3-4 (variable) to Send channels IN 1-2 (fixed)

Usually I use a ReaEQ to filter the output routing to whatever channel I want cause I use pretty standard sends. Lets say I may use channel 20-24 of the send for a large plate reverb or 10-12 for a split harmonizer. The ReaEq Just taps the 1-2 signal and routes to the desired channel. My hope is to create an action and a button so when I hit it, it adds a reaeq with the right preset, sets the track output channels to the minimum number it needs (if I add a 3-4 send after I added a 20-24, it should not reduce the number of channels) (or maybe just use 32ch if not possible to determine that number). For this reason, I feel the best way may be to just define the channel sends at the script beginning and just clone the script with different channel number options.

The great advantage of this is to be able to prefilter each send signal instead of an EQ on the send channel. Fewer send channels means better resource management and a more cohesive sound.

Also, it really needs the option position the new sends before the sending channel. Why? Because if it is a folder track and you select to place next to it, then we have volume control problems, if lowering the main track, then the sub tracks lower by times two.

Thanks for the great script.
barbaroja is offline   Reply With Quote
Old 07-18-2016, 05:23 PM   #105
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

IIRC, you can choose which channels for the new send.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-19-2016, 01:21 AM   #106
barbaroja
Human being with feelings
 
barbaroja's Avatar
 
Join Date: Jul 2009
Posts: 429
Default

I'm using the version on post#13.

The version you are using (last code you posted) does not work for me. Dialog box doesn't let you choose tracks.

A dialog box to route the send would be absolutely glorious.
barbaroja is offline   Reply With Quote
Old 07-19-2016, 12:28 PM   #107
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by barbaroja View Post
The version you are using (last code you posted) does not work for me. Dialog box doesn't let you choose tracks.
Yes, we've had reports of this and spk77 himself had this problem, but it works perfectly for me.
Do you have your mixer on a separate window? I run 2 monitors, one dedicated for the mixer window.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 07-19-2016, 12:51 PM   #108
barbaroja
Human being with feelings
 
barbaroja's Avatar
 
Join Date: Jul 2009
Posts: 429
Default

Quote:
Originally Posted by daxliniere View Post
Yes, we've had reports of this and spk77 himself had this problem, but it works perfectly for me.
Do you have your mixer on a separate window? I run 2 monitors, one dedicated for the mixer window.
Nope. Just one monitor W7x64 with reaper 32bit.
barbaroja is offline   Reply With Quote
Old 07-20-2021, 06:27 PM   #109
TaylorKing
Human being with feelings
 
Join Date: Jul 2019
Posts: 13
Default Editing to accommodate for AirWindows Console Plugins

Hey! Thanks heaps for the original script; have been editing it to suit my specific needs of adding AirWindows Console plugins post-fader.

I don't know how to code haha so I'm figuring it out as I go and hacking away at it till it works or breaks haha. Managed a pretty decent job so far. Changed the original so that there is no dialog/popup box; just the straight options of:
- adding 1 new post-fader send before original source track (before so that it is contained within any folders)
- hiding new send in TCP + MCP
- renaming with prefix "[C]" and then "source track name"
- mute master send of original track
- adding color
- and then "Action1" is running a custom Archie script which adds AirWindows Console7Channel by name

I've been trying to implement the adding of the fx by name using RPR_TrackFX_AddByName but haven't had any luck so far. Considering I don't need the options anymore, and am just using those default values, there was a lot of fluff in the script. I've managed to get rid of as much of it as I can without breaking it; I'll keep learning and chipping away, figuring out what each line is doing.

Here's my edited code so far: https://drive.google.com/file/d/1Jx3...ew?usp=sharing
TaylorKing 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 07:44 AM.


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