Old 07-22-2021, 01:10 PM   #1
EduSerra
Human being with feelings
 
EduSerra's Avatar
 
Join Date: Apr 2021
Location: Colombia
Posts: 140
Default I need a script to set send volume to inf or 0 value

Hello.

When bussing, sometimes I need to create a send with it´s gain value at inf or at 0. To do so I have to go to preferences/Tracksend defaults and change the value by typing it. Can someone create a pair of scripts like this:

Set send/Track Hardware Output to 0dB
Set send/Track Hardware Output to -inf

That would speed up this process. If this scripts already exists, please point me in the right direction, thanks.
EduSerra is offline   Reply With Quote
Old 07-22-2021, 03:22 PM   #2
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,921
Default

Welcome to the forum!
Are you talking about this setting?


If yes and you have SWS extension installed, try make scripts like this,..
Code:
-- set to +0.0
reaper.SNM_SetDoubleConfigVar("defhwvol", 1.0)
Code:
-- set to -inf
reaper.SNM_SetDoubleConfigVar("defhwvol", 0.0)
Note, if I exit and restart reaper the original value is restored. I've not tested the scripts either, but re-opening preferences does show the scripts changed that value.
Edgemeal is offline   Reply With Quote
Old 07-23-2021, 11:50 AM   #3
Ann-82
Human being with feelings
 
Join Date: May 2020
Location: Berlin
Posts: 166
Default

This is really interesting. I would love to have the send value to -inf for send effect and +0 for internal buss routing!

I'll try your script soon Edgemeal!
Ann-82 is offline   Reply With Quote
Old 07-23-2021, 02:40 PM   #4
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
Default

Quote:
Originally Posted by Edgemeal View Post
Note, if I exit and restart reaper the original value is restored.
can add
Code:
reaper.BR_Win32_WritePrivateProfileString("reaper", "defhwvol", <thevalue>, reaper.get_ini_file())
and it should persist after Reaper restart.
nofish is offline   Reply With Quote
Old 07-23-2021, 03:32 PM   #5
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,921
Default

Quote:
Originally Posted by nofish View Post
can add
Code:
reaper.BR_Win32_WritePrivateProfileString("reaper", "defhwvol", <thevalue>, reaper.get_ini_file())
and it should persist after Reaper restart.
Ya nice! For some reason I was thinking the setting was going to get overwritten by REAPER on exit.
Edgemeal is offline   Reply With Quote
Old 07-23-2021, 04:09 PM   #6
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,921
Default

Quote:
Originally Posted by Ann-82 View Post
This is really interesting. I would love to have the send value to -inf for send effect and +0 for internal buss routing!

I'll try your script soon Edgemeal!
Not exactly sure what you're referring to , I'm a light weight DAW user and don't even know REAPER all that well, I just know a handful of things to get by. If I can't find function in REAPER API then I search the Config Variables page, see, Introduction to Config Variables
https://mespotin.uber.space/Ultrasch...l#Introduction , And a great post by nofish on how to enable, disable, toggle some settings, https://forum.cockos.com/showpost.ph...52&postcount=2, should help get started.
Edgemeal is offline   Reply With Quote
Old 08-27-2021, 09:42 AM   #7
EduSerra
Human being with feelings
 
EduSerra's Avatar
 
Join Date: Apr 2021
Location: Colombia
Posts: 140
Default

Quote:
Originally Posted by Edgemeal View Post
Welcome to the forum!
Are you talking about this setting?

Yes but what I want is the sends setting. Be able to set it to -inf or to 0 value and assign that script/action to a pair of shortcuts.

Last edited by EduSerra; 03-31-2022 at 08:43 AM.
EduSerra is offline   Reply With Quote
Old 03-31-2022, 08:52 AM   #8
EduSerra
Human being with feelings
 
EduSerra's Avatar
 
Join Date: Apr 2021
Location: Colombia
Posts: 140
Default

Quote:
Originally Posted by nofish View Post
can add
Code:
reaper.BR_Win32_WritePrivateProfileString("reaper", "defhwvol", <thevalue>, reaper.get_ini_file())
and it should persist after Reaper restart.
Can you please be more specific and make it for the send default gain not hardware output default gain, please.

Thanks
EduSerra 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 05:30 PM.


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