|
|
|
04-23-2014, 05:18 AM
|
#1
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Question on the JS: volume utility plug-in
I've got a quick question on the JS: volume utility plug-in:
What is the function of the "max volume" slider?
I've searched on Google but have been unable to find this answer so if there are any Reaper Ninja's with the answer, it would be most appreciated!
;-)
|
|
|
04-23-2014, 05:23 AM
|
#2
|
Human being with feelings
Join Date: Mar 2008
Location: Sydney, Australia
Posts: 3,955
|
Just checked out the source code.
The max volume setting hard-clips to that level. Which is kinda weird.
Also in the plugin: looks like the plugin smoothly ramps volume changes across an audio block. Weird.
|
|
|
04-23-2014, 05:27 AM
|
#3
|
Human being with feelings
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
|
it works as a very crude limiter, I guess it's a safety measure, since that plug does +150 db!
|
|
|
04-23-2014, 05:34 AM
|
#4
|
Human being with feelings
Join Date: Dec 2012
Posts: 7,272
|
Quote:
Originally Posted by dub3000
Also in the plugin: looks like the plugin smoothly ramps volume changes across an audio block. Weird.
|
It's a form of parameter smoothing to keep it from causing "zipper noise" and other artifacts when automating or modulating the volume.
I changed mine so that the volume slider defaults at 0 instead of +6db because it was bothering me. I often use it for cheap easy way of routing signal between different channels.
|
|
|
04-23-2014, 05:45 AM
|
#5
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Quote:
Originally Posted by James HE
it works as a very crude limiter, I guess it's a safety measure, since that plug does +150 db!
|
So you basically want to keep the "max volume" well above any boosts that may be done with the volume adjustment - right?
For example, if I'm using the volume adjustment to boost 6db, then set the max volume to 12db.
|
|
|
04-23-2014, 06:06 AM
|
#6
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
if the input is above the max value, it will have clipping even if you turn gain down...
increase the max to 100 db and forget about it...
slider2:100<-100,100,1>max volume (dB)
you don't want it to ruin all the floating 64 bit Reaper's audio engine with some hard clipping by this plugin.
|
|
|
04-23-2014, 06:58 AM
|
#7
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Quote:
Originally Posted by heda
if the input is above the max value, it will have clipping even if you turn gain down...
increase the max to 100 db and forget about it...
slider2:100<-100,100,1>max volume (dB)
you don't want it to ruin all the floating 64 bit Reaper's audio engine with some hard clipping by this plugin.
|
You mean directly on the plug-in window or the code?
|
|
|
04-23-2014, 07:40 AM
|
#8
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by siddhu
You mean directly on the plug-in window or the code?
|
oops... installed a new portable installation and now I see that default is slider2:0<-150,150,1>max volume (dB
it was much less when I had the issue... 150 should be enough now... just don't touch the code. Set it at 150 if you don't want clipping and don't touch it. Just use the adjustment first slider.
Use another plugin later for good limiting if needed.
|
|
|
04-23-2014, 08:10 AM
|
#9
|
Human being with feelings
Join Date: Jul 2009
Location: Ljubljana, Slovenia
Posts: 3,801
|
One of those default things in reaper that just make little sense,
+6 boost and a hard limiter at 0, just no
I've immediately changed mine to -6 dB starting value as I usually
want to attenuate the signal, which also lets me leave the fader
at unity, so I can automate with better precision, as reaper envelopes
tend to become pretty useless below certain range.
Also completely removed the limiter code, which leaves you with
a simple yet useful gain control plug.
Code:
desc: volume adjustment
slider1:-6<-40,24,1>adjustment (dB)
@slider
adj1=2 ^ (slider1/6);
doseek=1;
@block
doseek ? (
dadj=(adj1-adj1_s)/samplesblock;
doseek=0;
):(
dadj=0;
adj1_s=adj1;
);
@sample
spl0=spl0*adj1_s;
spl1=spl1*adj1_s;
adj1_s+=dadj;
*green color = starting value, *red color = max slider value (for those who are new at coding)
e
|
|
|
04-23-2014, 10:11 AM
|
#10
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
|
I changed it too.
Remember to save it with a new name, otherwise it will be overwritten by future Reaper updates.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
|
|
|
04-23-2014, 10:55 AM
|
#11
|
Human being with feelings
Join Date: Dec 2012
Posts: 7,272
|
Quote:
Originally Posted by siddhu
So you basically want to keep the "max volume" well above any boosts that may be done with the volume adjustment - right?
For example, if I'm using the volume adjustment to boost 6db, then set the max volume to 12db.
|
Kinda depends on where the original signal is peaking, no? I mean, if it's hitting at -18dbfs, and you add 6db, then the output will peak at -12dbfs, so why would you need to change the limit?
|
|
|
04-23-2014, 11:27 AM
|
#12
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Quote:
Originally Posted by ashcat_lt
Kinda depends on where the original signal is peaking, no? I mean, if it's hitting at -18dbfs, and you add 6db, then the output will peak at -12dbfs, so why would you need to change the limit?
|
What your saying makes perfect sense and that's what I was thinking. However as I'm only now just starting to seriously work in Reaper, I want to make sure I don't just use my "assumptions" about how things work, but get it confirmed so I have a deeper understanding of this incredible software.
I've been using Ableton for many years and work using a hybrid setup with lots of analog outboard so the utility tool in Ableton is essential for my way of working. Hence my request for clarifications! ;-)
|
|
|
04-23-2014, 12:40 PM
|
#13
|
Human being with feelings
Join Date: Feb 2013
Location: Northeast Michigan
Posts: 3,460
|
Quote:
Originally Posted by DarkStar
I changed it too.
Remember to save it with a new name, otherwise it will be overwritten by future Reaper updates.
|
I only saw one way to save it (CTRL+S) and it overwrote the original... Where is "Save As?"
|
|
|
04-23-2014, 01:56 PM
|
#14
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by EricM
Also completely removed the limiter code, which leaves you with
a simple yet useful gain control plug.
|
thanks. I'll use this for gain control
It is very useful for me to have a gain control as the first fx in the chain to control input level if needed.
|
|
|
04-23-2014, 02:19 PM
|
#15
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Quote:
Originally Posted by EricM
One of those default things in reaper that just make little sense,
+6 boost and a hard limiter at 0, just no
I've immediately changed mine to -6 dB starting value as I usually
want to attenuate the signal, which also lets me leave the fader
at unity, so I can automate with better precision, as reaper envelopes
tend to become pretty useless below certain range.
Also completely removed the limiter code, which leaves you with
a simple yet useful gain control plug.
Code:
desc: volume adjustment
slider1:-6<-40,24,1>adjustment (dB)
@slider
adj1=2 ^ (slider1/6);
doseek=1;
@block
doseek ? (
dadj=(adj1-adj1_s)/samplesblock;
doseek=0;
):(
dadj=0;
adj1_s=adj1;
);
@sample
spl0=spl0*adj1_s;
spl1=spl1*adj1_s;
adj1_s+=dadj;
*green color = starting value, *red color = max slider value (for those who are new at coding)
e
|
So this code can be copied pasted into the code window (overwriting the original code) to remove the limiter?
|
|
|
04-23-2014, 02:41 PM
|
#16
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
Quote:
Originally Posted by siddhu
So this code can be copied pasted into the code window (overwriting the original code) to remove the limiter?
|
no, better create an empty file called gain or whatever, put it in the effects folder and paste the code in it.
|
|
|
04-23-2014, 02:45 PM
|
#17
|
Human being with feelings
Join Date: Apr 2014
Location: Paris
Posts: 58
|
Quote:
Originally Posted by heda
no, better create an empty file called gain or whatever, put it in the effects folder and paste the code in it.
|
Wow - that's pretty cool how you can just "create" a plug-in!
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:00 AM.
|