|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#2 |
|
Long Time ***** Friend
|
Cool Russ. Any chance of having this compatible with 3534f?
|
|
|
|
|
|
#3 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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. |
|
|
|
|
|
#4 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Add:
It happens with both... identically. |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
I did not really test using settings that high. I will take a look. Thanks for the report.
|
|
|
|
|
|
#6 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
No problem... I just stumbled on the popping - then noticed the distortion..
It seems the HOLD is affecting the attack... ?? |
|
|
|
|
|
#7 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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. |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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). |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#10 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
|
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#12 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
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. |
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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). |
|
|
|
|
|
#14 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
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.. |
|
|
|
|
|
|
#15 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Oh - should I use the unreg script on the first .??
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#17 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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... |
|
|
|
|
|
#18 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
Last edited by Maddogg6; Mar 22, 2006 at 08:49 AM. Reason: damn typos |
|
|
|
|
|
|
#19 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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 |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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.. |
|
|
|
|
|
#21 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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... |
|
|
|
|
|
#22 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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 |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#24 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
I found it (the popping) to be more intermittant than the last version... but I still hear it...
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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). |
|
|
|
|
|
#26 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
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.
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#28 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
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... |
|
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
|
|
|
|
|
#30 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
|
|