HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP


Reply
 
Thread Tools
Old Mar 21, 2006, 01:28 AM   #1
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

new Noise Gate plugin

Due to some issues with the bundled Noise Gate plugins (i.e. dB scale is off, etc), and, because I wanted to have envelope settings based on time values, I created a new Noise Gate plugin.

It uses more resources than I would like, but I have not optimised it as of yet. Because of some anomolies, and the nature of the code, it will take a bit of work to optimize it, without breaking it, so, I will probably hold off from doing that until I am sure there are no bugs, etc.

There is a mono version and a semi-stereo version (inputs/outputs stereo, but the gate is controlled by whichever signal is greater, rather than processing both channels seperately (you can use 2 of the mono version, if you want seperate control of the left and right channels)).

The parameters are as follows:

ON:
Range (0 to -96 dB)
This is the dB level at which the gate begins to turn ON (no output until the signal is above this value).

OFF:
Range (0 to -96 dB)
This is the dB level at which the gate begins to turn OFF.
This should not be set above the ON threshold setting for normal use.

Attack:
Range (1 ms to 3 seconds)
This setting controls how fast the volume reaches full level, (only) when the gate first turns ON (the volume level is incrementally increased).

Hold:
Range (0.1 ms to 3 seconds)
This setting controls how long the gate will stay ON after the signal drops below the OFF threshold setting. (Helps to keep the gate from turning on/off due to momentary drops in the signal level.).

Release:
Range (1 ms to 3 seconds)
This setting controls how quickly the volume goes to 0, after the gate has dropped below the OFF threshold, and has completed the hold time. (the volume is incrementally decreased).

You can download the plugin (N-Gate) here.

Let me know what you think, and/or if you find any bugs, etc.
-Russ

BTW: It is compiled for 3538j.

Last edited by Russ; Nov 9, 2009 at 05:40 PM.
Russ is offline   Reply With Quote


Old Mar 21, 2006, 03:25 AM   #2
Long Time ***** Friend
 
thomasabarnes's Avatar
 
Join Date: Jan 2003
Location: USA
Posts: 1,375
Rep Power: 0
thomasabarnes will become famous soon enough
System Specs

Cool Russ. Any chance of having this compatible with 3534f?
__________________

May a song always touch you in a positive way.
SONAR X1D Expanded, Windows 7 Pro 64Bit, MOTU UltraLite MK3, 150 GB HDD, 250 GB HDD, 1 TB x2 HDD 7200 rpm

My Music Production: Top 40, Contemporary Christian, Pop/Rock, Decent Rap, Inspirationals, and Children Songs
thomasabarnes is offline   Reply With Quote
Old Mar 21, 2006, 05:21 AM   #3
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Maybe it my system??
2 things I'm noticing...

Attack doesnt seem to work reliably.
and sometimes - I get distorion.

Circumstance in detail:

Using my TV card input for a dynamic signal - peaks ~ -0.5db - no signal drops to ~-50db

ON: -3db, Off: -6db, attack: 1 sec, hold: .00001, release: .5

I hear 'popping' attacks... if I increase the HOLD (to about .4) - I can hear distortion at the attack and release times, but the popping disappears.

In this circumstance - I would expect a 'breathing' effect... but its distorted.
Maddogg6 is offline   Reply With Quote
Old Mar 21, 2006, 05:34 AM   #4
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Add:

It happens with both... identically.
Maddogg6 is offline   Reply With Quote
Old Mar 21, 2006, 05:41 AM Threadstarter Thread Starter   #5
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

I did not really test using settings that high. I will take a look. Thanks for the report.
Russ is offline   Reply With Quote
Old Mar 21, 2006, 05:43 AM   #6
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

No problem... I just stumbled on the popping - then noticed the distortion..

It seems the HOLD is affecting the attack... ??
Maddogg6 is offline   Reply With Quote
Old Mar 21, 2006, 05:55 AM   #7
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

The popping also happens when I set my source volume to peak @ -40 db w/ default ON/OFF - but same attack/release/hold as above..

But, its hard to tell if its distorting because I have to add a gainHQ in order to hear such low signal, and its kinda distorted anyway at that point.

If the intent is for guitar, the 3 sec attack/release would be impractical.
Maddogg6 is offline   Reply With Quote
Old Mar 21, 2006, 07:34 AM Threadstarter Thread Starter   #8
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

The problem is that something is causing the starting level to be the ON level, so the attack setting does not effect it ,until it gets beyond that level. I will have to go through and and figure out where the problem is (some error in my conditional logic).

It could be a while.

As for guitar use, I have been mainly testing it using the default settings, and it seemed to work pretty good (i.e. why I made those settings the defaults).
Russ is offline   Reply With Quote
Old Mar 21, 2006, 08:21 AM Threadstarter Thread Starter   #9
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Ok, I found the problem with the attack, but it's late here, so I will probably wait until tomorrow to fix it (and do dome more testing).

@thomasabarnes
I want to try and make it as bug free as possible, before compiling it for other kX versions.
Russ is offline   Reply With Quote
Old Mar 21, 2006, 09:03 AM   #10
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ
As for guitar use, I have been mainly testing it using the default settings, and it seemed to work pretty good (i.e. why I made those settings the defaults).
I brought that up thinking that if you intend it for guitar use - I figured you could save some resources by lowering the range to 1 second... but for other uses the 3 seconds would be good.
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 06:40 AM Threadstarter Thread Starter   #11
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

I updated the code (microcode should show version 1.1). The plugin only contains the mono version for the moment. I will update the stereo version when I am sure it is working right.

@Maddogg6
I am curious why you used those settings for TV? i.e. Not much dynamic range.
Was it just for testing, or is that what you would normally use?
In any case, let me know if there are still problems, etc.

Thanks again,
-Russ

Last edited by Russ; Mar 22, 2006 at 08:05 AM.
Russ is offline   Reply With Quote
Old Mar 22, 2006, 07:47 AM   #12
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ
@Maddogg6
I am curious why you used those settings for TV? i.e. Not much dynamic range.
Was it just for testing, or is that what you would normally use?
In any case, let me know if there are still problems, etc.
Well - Ill explain my actions...
1) my TV was a convenient signal to use to test with... it does actually have a pretty descent dynamic range. For a cheapo TV USB deal anyway... and its pretty low noise too.
Its not that I *needed* a noise gate for it, just a convenient signal to test with at the time.
2) default settings made it next to impossible to tell if it was working - the volume levels are so low at that point. and it IS pretty low noise to begin with.
3) So I played with the IN and OUT settings and quickly stumbled on a popping sound
4) re-booted to make sure it wsnt something screwy on my system...but still happened.
5) as I started playing with the attack and release settings, I could hear distortion durring the attack/release..

After you posted that you didnt test at the settings I tried - I went back and played a bit more - noticed it still happened at the default IN/OUT -
I had to add a GainHQ to be able to hear the lowered signals fed to the noisegate..it distorted a bit so it was difficult to tell if the distortion was still happening durring the attack/release - but with thse set lower... the popping was still happening.

And, its no problem testing... its kinda fun... I know, Im wierd.
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 08:08 AM Threadstarter Thread Starter   #13
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Hehe, I figured it was something like that.
I do not know if you saw my edit saying to wait (which I have since removed), but in any case, I made another small change (hopefully I didn't mess anything up doing so, lol). So, if you allready downloaded it, you will need to do so again.

BTW: I did not mean that TV's do not have good dynamic range, I only meant that -3 to -6 dB wasn't very much (i.e. the gate would be going on and off very frequently).
Russ is offline   Reply With Quote
Old Mar 22, 2006, 08:18 AM   #14
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ
BTW: I did not mean that TV's do not have good dynamic range, I only meant that -3 to -6 dB wasn't very much (i.e. the gate would be going on and off very frequently).
I understood - but that was my intent... to hear it work... or, em..not - lol - BUT, with attack/release and hold adjusted as I did - it shouldn't cycle AS much tho either. That just seemed logical for testing... or maybe more like stress testing.

I used a 3db IN/OUT difference as I thought thats what the defaults had used. But I play around with it a bit too, and it just so happened to happen with those settings.

I havent tried new one , but will right now... will report ASAP..
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 08:19 AM   #15
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Oh - should I use the unreg script on the first .??
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 08:28 AM Threadstarter Thread Starter   #16
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

You should not need to use the un-reg script, but if you do not, then it will not remove N-Gate2, so do not forget that is not updated yet.
<edit>
(actually N-Gate2 will not be available anyway as it is not in the .dll, but it will still be in your plugin list if you do not use the unreg script).
</edit>

As for cycling on and off. Your hold time was very low (.0001), for a fairly large dynamic range like TV audio (where the volume constantly changes).
For guitar, it is less liekly to dip below the threshold momentarily, thus the lower settings are ok.
Also, with it going completley ON/OFF frequently, the attack/release is constantly being used, thus the signal is ramped up/down very frequentley, which may sound distorted.

Last edited by Russ; Mar 22, 2006 at 08:36 AM.
Russ is offline   Reply With Quote
Old Mar 22, 2006, 08:35 AM   #17
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

I unreged anyway...

it IS improved - I can force it into breathing but it still distorts when hold is < ~.075

Im still hearing a popping with attack/release/hold - .5/.3/.5 more intermittant tho.

IN/OUT settings seem to make no difference.. (matching IN/OUT to the input level)

it works fine for a more hard gating (like for a distorted guitar) - but for a clean guitar sound Im sure would introduce the popping..

After listening for a while and playing... the distortion seems to be the popping happening really fast. - hope thats a clue for ya...
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 08:40 AM   #18
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ

As for cycling on and off. Your hold time was very low (.0001), for a fairly large dynamic range like TV audio (where the volume constantly changes).
For guitar, it is less liekly to dip below the threshold momentarily, thus the lower settings are ok.
Also, with it going completley ON/OFF frequently, the attack/release is constantly being used, thus the signal is ramped up/down very frequentley, which may sound distorted.
Agreed - but, that setting should be able to set to 0 as I may not always want it held, for fast transients - the way Im setting it is more like acting like an envelope on a synth than a noise gate.

Last edited by Maddogg6; Mar 22, 2006 at 08:49 AM. Reason: damn typos
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 08:47 AM   #19
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Oh also... - 500 ms attack AND release shouldn't sound like distortion - its not THAT fast...

update:

If I set A/H/R - to 1sec/.2/1sec - I still hear pops - but breathes...
If I ONLY set hold to min/0 - its distorted attack/release...

Just so I understand correctly...

the HOLD is the time (once the off threshold has been detected) before the release starts - as long as input is still > IN threshold - correct?

Last edited by Maddogg6; Mar 22, 2006 at 08:57 AM. Reason: Fixed typo/made clearer
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 09:08 AM Threadstarter Thread Starter   #20
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Yes, it is the time before the release starts, but there is more to it than that.

i.e.
Say your ON threshold is -36, and your OFF threshold is -48.
If the signal drops below -48, then the hold timer starts, but, if the signal goes back above -48 before the hold timer finishes, then it never goes into release (i.e. it does not have to go back up to -36 while the gate is still ON). Also, the attack is still in effect during hold, if it's counter has not timed out yet..
Russ is offline   Reply With Quote
Old Mar 22, 2006, 09:13 AM   #21
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Ok - thats what I thought...

I'll concede - I am forcing this into a NON-noise gating situation... but If im not using a NG for that - its for things like a reverse effect - which as is wouldnt be practical...
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 09:16 AM   #22
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Do you not hear the popping/distortion - I hope Im not driving you nuts for a function you may never use it for... ??

if your testing with your guitar - try a sustained clean sound....

Last edited by Maddogg6; Mar 22, 2006 at 09:17 AM. Reason: added something
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 09:16 AM Threadstarter Thread Starter   #23
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Well, there is something causing distortion with low hold times, like you noticed (and I hadn't noticed before), so I will have to figure out what is causing that. I haven't noticed any popping as of yet.

<edit>
Ok, I hear the popping now as well, but still only with the low hold times.

<edit2>
No, I hear it when the gate is releasing too. Bummer, that is one of the things that I noticed about the bundled gate plugins that I wanted to avoid.

Last edited by Russ; Mar 23, 2006 at 07:03 AM.
Russ is offline   Reply With Quote
Old Mar 22, 2006, 09:30 AM   #24
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

I found it (the popping) to be more intermittant than the last version... but I still hear it...
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 09:41 AM Threadstarter Thread Starter   #25
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Yup, it is there.
I have a couple ideas on what might be causing it and some possible solutions, so I will have to give them a try.

Thanks again for testing (and no you are not annoying me, lol).
Russ is offline   Reply With Quote
Old Mar 22, 2006, 09:45 AM   #26
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Im thinking you might want to raise the min HOLD time to about 10ms - could help ..?? I wouldnt go above 50ms tho... transient response will start to be affected and audibly affected.
Maddogg6 is offline   Reply With Quote
Old Mar 22, 2006, 09:57 AM Threadstarter Thread Starter   #27
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

I do not think it should effect the transient response, because it does not modify the signal when it is holding (unless it is still in the attack phase). But, I would not want 50ms of noise, after I mute my guitar strings either.

Hopefully I can figure something out, otherwise it has no use, as the bundled gate plugins do it with only 8 instructions per channel (they just need to be fixed so that the dB scale is corrected). I was hoping that it would turn out better than those plugins, to justify the extra resources.

In any case, I will see what I can do, but it is late so I need to get some sleep.

Last edited by Russ; Mar 22, 2006 at 10:04 AM.
Russ is offline   Reply With Quote
Old Mar 22, 2006, 10:12 AM   #28
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ
I do not think it should effect the transient response, because it does not modify the signal when it is holding (unless it is still in the attack phase). But, I would not want 50ms of noise, after I mute my guitar strings either.

Hopefully I can figure something out, otherwise it has no use, as the bundled gate plugins do it with only 8 instructions per channel (they just need to be fixed so that the dB scale is corrected). I was hoping that it would turn out better than those plugins, to justify the extra resources.

In any case, I will see what I can do, but it is late so I need to get some sleep.
well, 50ms is pretty fast still, and of course would depend on the relase time too..

I have no doubts you'll figure something out.

And - the bundles NG's seem to have more issues than a forked db scale... I hear distortion with those as well in similar settings (I just now tested...)

and - it seems un-reliable in its threshold settings..

edit... g'night - sleep on it...
Maddogg6 is offline   Reply With Quote
Old Mar 23, 2006, 12:16 AM Threadstarter Thread Starter   #29
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

Well, some of it is expected with really low hold times. Take a normal sine wave for example, at certain points during it's natural cycle, it is going to dip below the OFF threshold. The min hold time should be high enough to prevent these normal fluctuations from triggering the gate.

i.e.
Take a 50 Hz sine wave. That is 50 full cycles per second or 1/50 = 0.02 seconds per cycle. Since we are talking about the absolute value here, we should only need half of that, thus for a 50 Hz signal, the hold time should be no less then 0.01 seconds.

So what we really need to test, is if there is distortion, etc, when the hold time is adequate for the content.

i.e.
Try something like the following with a clean guitar signal:
ON: -16, OFF: -24, A: 1.0, H: 0.01, R: 1.0
Russ is offline   Reply With Quote
Old Mar 23, 2006, 01:26 AM   #30
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

Quote:
Originally Posted by Russ
So what we really need to test, is if there is distortion, etc, when the hold time is adequate for the content.
Well - with V2 - I was getting popping with Hold >~75ms.
Maddogg6 is offline   Reply With Quote
Reply

Thread Tools