C# Class GAudio.GATEnvelope

Handles pre-processing of samples and keeps track of update times of it's processing properties. Properties may be set at any time, all IGATProcessedSample objects that refer to the GATEnvelope will update their data accordingly. EnvelopeModule component wraps a GATEnvelope in an inspector friendly package if needed.
Datei anzeigen Open project: gregzo/G-Audio Class Usage Examples

Public Properties

Property Type Description
nullEnvelope NullEnvelope

Protected Properties

Property Type Description
_length int
_normalize bool
_normalizeValue float

Public Methods

Method Description
GATEnvelope ( int length, int fadeInSamples, int fadeOutSamples, int offset, bool doNormalize = true, float normalizeValue = .3f ) : System.Collections

Note that by default, doNormalize is true and sample chunks will be normalized at .3f.

ProcessSample ( GATData sample ) : void

Immediately applies all processing properties to the passed GATData object.

SetParams ( int length, int fadeIn, int fadeOut ) : void

Sets the most commononly used parameters in one call.

Private Methods

Method Description
GATEnvelope ( ) : System.Collections

Method Details

GATEnvelope() public method

Note that by default, doNormalize is true and sample chunks will be normalized at .3f.
public GATEnvelope ( int length, int fadeInSamples, int fadeOutSamples, int offset, bool doNormalize = true, float normalizeValue = .3f ) : System.Collections
length int
fadeInSamples int
fadeOutSamples int
offset int
doNormalize bool
normalizeValue float
return System.Collections

ProcessSample() public method

Immediately applies all processing properties to the passed GATData object.
public ProcessSample ( GATData sample ) : void
sample GATData
return void

SetParams() public method

Sets the most commononly used parameters in one call.
public SetParams ( int length, int fadeIn, int fadeOut ) : void
length int
fadeIn int
fadeOut int
return void

Property Details

_length protected_oe property

protected int _length
return int

_normalize protected_oe property

protected bool _normalize
return bool

_normalizeValue protected_oe property

protected float _normalizeValue
return float

nullEnvelope public_oe static_oe property

Passing this static reference when requesting a pitch shifted processed sample will result in pitch shifting the entire source sample.
public static NullEnvelope nullEnvelope
return NullEnvelope