ATK-Sharp  1.0
The ATK library for C#.
ATKSharp.Utilities.Smoother Class Reference

The Smoother class. Use this to smooth input data from a gui or 3D world at the audio rate to avoid clicks. Also works well for portamento More...

Public Member Functions

 Smoother (float smoothTime=20f, float startValue=0f)
 Initializes a new instance of the Smoother class. More...
 
float Smooth (float input)
 Smooths the input. More...
 

Properties

float CurrentSample [get]
 Gets the current sample. More...
 
float SmoothTime [get, set]
 Gets or sets the smooth time. More...
 

Detailed Description

The Smoother class. Use this to smooth input data from a gui or 3D world at the audio rate to avoid clicks. Also works well for portamento

Constructor & Destructor Documentation

◆ Smoother()

ATKSharp.Utilities.Smoother.Smoother ( float  smoothTime = 20f,
float  startValue = 0f 
)

Initializes a new instance of the Smoother class.

Parameters
smoothTimeThe initial smooth time.
startValueThe initial value.

Member Function Documentation

◆ Smooth()

float ATKSharp.Utilities.Smoother.Smooth ( float  input)

Smooths the input.

Parameters
inputThe input.
Returns
Returns the smoothed value.Utlities

Property Documentation

◆ CurrentSample

float ATKSharp.Utilities.Smoother.CurrentSample
get

Gets the current sample.

◆ SmoothTime

float ATKSharp.Utilities.Smoother.SmoothTime
getset

Gets or sets the smooth time.


The documentation for this class was generated from the following file: