Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 04-03-2019, 09:48 AM   #1
millertone
Human being with feelings
 
Join Date: Sep 2017
Posts: 26
Default Xenakios/SWS: Normalize to dB value bug?

Hi Folks,
I have a track with a bunch of hits. I usually normalize these sounds to -6dB, either individually or in groups, using the Xenakios/SWS: Normalize to dB value action. Strangely, it's working just fine on all of the media items on this particular track, except for two of them, where it seems the levels are being attenuated down to - infinity. I've linked a video to demonstrate what's happening. Oh yeah, I'm using Reaper v5.973/x64 and SWS v2.10.0 on Windows.

https://www.dropbox.com/s/q4yxswbhp6...e_Bug.mov?dl=0

-Matt

Last edited by millertone; 04-03-2019 at 09:54 AM.
millertone is offline   Reply With Quote
Old 04-03-2019, 10:17 AM   #2
millertone
Human being with feelings
 
Join Date: Sep 2017
Posts: 26
Default

Update: This is happening when the phase has been inverted on the item.
millertone is offline   Reply With Quote
Old 04-03-2019, 11:15 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,107
Default

This is a bug in Reaper API I'd say.

GetMediaItemTakeInfo_Value(take, "D_VOL") (which this SWS action uses) seems to return an inverted value if take phase is inverted.
In the pic both take volumes are set to 0.0 dB, right take has phase inverted.


Last edited by nofish; 04-03-2019 at 12:06 PM.
nofish is offline   Reply With Quote
Old 04-03-2019, 05:40 PM   #4
millertone
Human being with feelings
 
Join Date: Sep 2017
Posts: 26
Default

Quote:
Originally Posted by nofish View Post
This is a bug in Reaper API I'd say.
Thanks for tracking that down. The workaround for now is to change the order of operations and invert the phase after normalizing...

Matt
millertone is offline   Reply With Quote
Old 04-03-2019, 06:58 PM   #5
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by nofish View Post
This is a bug in Reaper API I'd say.

GetMediaItemTakeInfo_Value(take, "D_VOL") (which this SWS action uses) seems to return an inverted value if take phase is inverted.
In the pic both take volumes are set to 0.0 dB, right take has phase inverted.

I wouldn't call it a bug, more of a clumsy, but still a valid way to handle passing of this information to the caller of the API. I wouldn't count this ever gets fixed - it should be handled on the side using the API - from the script, extension etc...
Breeder is offline   Reply With Quote
Old 04-03-2019, 09:14 PM   #6
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,107
Default

Quote:
Originally Posted by Breeder View Post
I wouldn't call it a bug, more of a clumsy, but still a valid way to handle passing of this information to the caller of the API. I wouldn't count this ever gets fixed - it should be handled on the side using the API - from the script, extension etc...
The API description says:
Quote:
D_VOL : double *, take volume
and nothing about it being flipped if phase is flipped.
So if this isn't regarded as bug at least the API doc should be supplemented with this info imo.

Last edited by nofish; 04-03-2019 at 09:20 PM.
nofish is offline   Reply With Quote
Old 04-04-2019, 06:33 PM   #7
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by nofish View Post
The API description says:


and nothing about it being flipped if phase is flipped.
So if this isn't regarded as bug at least the API doc should be supplemented with this info imo.
Good thinking, haha
I think some stuff in SWS relies on this behavior so changing it would break things. Better for Cockos to just put it into API description.

I kinda got used to stuff like this to be honest, REAPER is full of idiosyncratic things such as these - I guess that's the price we pay for all that power of customization.
Breeder 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 01:13 AM.


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