Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to rec.audio.pro
Tobiah[_6_] Tobiah[_6_] is offline
external usenet poster
 
Posts: 22
Default Implementing digital (reverse) noise gate.

Or something quite similar. I would like to sample a guitar
chromatically over the range of the instrument with multiple velocity
layers. This will require the generation of hundreds of individual
sample files that I can't be bothered to curate by hand. My solution
is to record each sample in some logical order into one long sound
file, then to split, and fade in/out the samples automatically using
a command line program. It would take arguments to configure the
split, and generate logical names for the files that my sampler might
be able to consume with little manual assistance.

So I'm asking about detection of the start and end of the samples,
and after fade in/out schemes. My initial thoughts outline and
argument list something like this:

*) Threshold. An initial level that would trigger the start of a
sample. The sound file library I'm using (libsndfile) presents each
sample as a normalized float, so I thought I'd make this a straight
fraction of max, like .03. After cursory consideration, it seems
that a single sample over this limit would suffice as a trigger if
the recording environment is reasonably quiet. Maybe there is more
to consider?

*) Attack. A fade-in time that would be applied to the samples
preceding the threshold hit. I was thinking linear, but maybe
exponential or log or something makes more sense?

*) Hysteresis. A second (possibly lower) threshold value that would
trigger the end of the sample. In this case, I can see that I'd need
to designate a minimum length of time through which this threshold was
*not* hit by any sample.

*) Decay. Length of time over which to taper the tail of the sample
so that no clip is heard at the end.

Before I wast time going down wrong paths, I though I'd see whether
I could get any suggestions, or I suppose a pointer to a program
that already does this nicely.




  #2   Report Post  
Posted to rec.audio.pro
geoff geoff is offline
external usenet poster
 
Posts: 1,812
Default Implementing digital (reverse) noise gate.

On 29/04/2020 2:07 am, Tobiah wrote:


Before I wast time going down wrong paths, I though I'd see whether
I could get any suggestions, or I suppose a pointer to a program
that already does this nicely.


Sound Forge has very powerful scripting. But you'd still need to develop
the script (or customise an existing one) if you can't find one from
withing the user base.

geoff
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Noise Gate Issues Cyberserf Pro Audio 6 February 23rd 09 10:50 PM
Sticky Noise Gate Cyberserf Tech 0 February 23rd 09 03:23 PM
Noise gate Dirk Bruere at NeoPax Pro Audio 5 January 23rd 07 07:14 AM
Noise gate Dirk Bruere at NeoPax Tech 4 January 23rd 07 07:14 AM
Noise Gate recommendation IS Pro Audio 3 August 21st 03 04:08 AM


All times are GMT +1. The time now is 03:19 PM.

Powered by: vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 AudioBanter.com.
The comments are property of their posters.
 

About Us

"It's about Audio and hi-fi"