C# 클래스 GAudio.GATMaths

Static class which provides a few audio related methods and constants. Methods that handle the actual sample processing will be found in the GATData class or in AGATFilter derived classes.
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

공개 메소드들

메소드 설명
ClampData ( float data, float minValue, float maxValue, int &nbOfClippedFloats ) : void
ClampedResampledLength ( int sourceLength, int targetLength, double resamplingFactor ) : int
GetAbsMaxValue ( float data, int fromIndex, int length ) : float

Gets the absolute max value in the array

GetAbsMaxValueFromInterleaved ( float data, int fromIndex, int length, int channelNb, int nbOfChannels ) : float

Gets the absolute max value of the specified channel in an interleaved array.

GetIndexOfMaxValue ( float data ) : int
GetIndexOfMaxValue ( float data, int first, int toIndex ) : int
GetMaxAndMin ( float data, int fromIndex, int length, float &min, float &max ) : void

Gets the max and min value in the array.

GetMaxAndMin ( float data, int fromIndex, int length, float &min, float &max, int stride ) : void

Gets the max and min values in the interleaved array.

GetRatioForInterval ( float semiTones ) : float
GetSemiTonesForRatio ( float ratio ) : float
IsPrime ( int number ) : bool
MakeHammingWindow ( float data ) : void

Fills the provided array with normalized Hamming Window data

MakeHanningWindow ( float data ) : void

Fills the provided array with normalized Hanning Window data

ResampledLength ( int sourceLength, double resamplingFactor ) : int

메소드 상세

ClampData() 공개 정적인 메소드

public static ClampData ( float data, float minValue, float maxValue, int &nbOfClippedFloats ) : void
data float
minValue float
maxValue float
nbOfClippedFloats int
리턴 void

ClampedResampledLength() 공개 정적인 메소드

public static ClampedResampledLength ( int sourceLength, int targetLength, double resamplingFactor ) : int
sourceLength int
targetLength int
resamplingFactor double
리턴 int

GetAbsMaxValue() 공개 정적인 메소드

Gets the absolute max value in the array
public static GetAbsMaxValue ( float data, int fromIndex, int length ) : float
data float
fromIndex int
length int
리턴 float

GetAbsMaxValueFromInterleaved() 공개 정적인 메소드

Gets the absolute max value of the specified channel in an interleaved array.
public static GetAbsMaxValueFromInterleaved ( float data, int fromIndex, int length, int channelNb, int nbOfChannels ) : float
data float
fromIndex int
length int
channelNb int
nbOfChannels int
리턴 float

GetIndexOfMaxValue() 공개 정적인 메소드

public static GetIndexOfMaxValue ( float data ) : int
data float
리턴 int

GetIndexOfMaxValue() 공개 정적인 메소드

public static GetIndexOfMaxValue ( float data, int first, int toIndex ) : int
data float
first int
toIndex int
리턴 int

GetMaxAndMin() 공개 정적인 메소드

Gets the max and min value in the array.
public static GetMaxAndMin ( float data, int fromIndex, int length, float &min, float &max ) : void
data float
fromIndex int
length int
min float
max float
리턴 void

GetMaxAndMin() 공개 정적인 메소드

Gets the max and min values in the interleaved array.
public static GetMaxAndMin ( float data, int fromIndex, int length, float &min, float &max, int stride ) : void
data float
fromIndex int
length int
min float
max float
stride int
리턴 void

GetRatioForInterval() 공개 정적인 메소드

public static GetRatioForInterval ( float semiTones ) : float
semiTones float
리턴 float

GetSemiTonesForRatio() 공개 정적인 메소드

public static GetSemiTonesForRatio ( float ratio ) : float
ratio float
리턴 float

IsPrime() 공개 정적인 메소드

public static IsPrime ( int number ) : bool
number int
리턴 bool

MakeHammingWindow() 공개 정적인 메소드

Fills the provided array with normalized Hamming Window data
public static MakeHammingWindow ( float data ) : void
data float
리턴 void

MakeHanningWindow() 공개 정적인 메소드

Fills the provided array with normalized Hanning Window data
public static MakeHanningWindow ( float data ) : void
data float
리턴 void

ResampledLength() 공개 정적인 메소드

public static ResampledLength ( int sourceLength, double resamplingFactor ) : int
sourceLength int
resamplingFactor double
리턴 int