C# 클래스 DSPUtil.SoundBuffer

상속: SoundObj, ISampleBuffer
파일 보기 프로젝트 열기: hughpyle/inguz-DSPUtil 1 사용 예제들

공개 메소드들

메소드 설명
ApplyGain ( double gain ) : void

Apply a gain (units) to the whole buffer.

ApplyWindow ( CosWindow window ) : void

Apply a window to the whole buffer.

MaxPos ( ) : int
MaxVal ( ) : double
Normalize ( double dBfs ) : double

Normalize the buffer so maximum value is at (dBfs)

Normalize ( double dBfs, bool doIt ) : double
PadTo ( int n ) : void
PadToPowerOfTwo ( ) : void
Read ( int n, int &nn, bool &moreSamples ) : ISample[]
ReadAll ( ) : int
ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][]
ReadTo ( int n ) : bool
SampleSubset ( int start, int count ) : IEnumerator

Get an iterator for a subset of samples

Skip ( int n, int &nn, bool &moreSamples ) : void
SoundBuffer ( ) : System
SoundBuffer ( ISoundObj input ) : System
SoundBuffer ( List samples, ushort numChannels, uint sampleRate ) : System
Subset ( int start ) : ISoundObj
Subset ( int start, int count ) : ISoundObj
ToArray ( ) : ISample[]
ToArray ( int startPos ) : ISample[]
ToArray ( int startPos, int count ) : ISample[]
ToComplexArray ( ) : Complex[][]
ToComplexArray ( int startPos ) : Complex[][]
ToComplexArray ( int startPos, int count ) : Complex[][]
ToDoubleArray ( ) : double[][]

Return the buffer contents as an array of doubles

ToDoubleArray ( int startPos ) : double[][]

Return the buffer contents as an array of doubles

ToDoubleArray ( int startPos, int count ) : double[][]

Return the buffer contents as an array of doubles

this ( int arg ) : ISample

비공개 메소드들

메소드 설명
FindMax ( ) : void

메소드 상세

ApplyGain() 공개 메소드

Apply a gain (units) to the whole buffer.
public ApplyGain ( double gain ) : void
gain double units to scale by
리턴 void

ApplyWindow() 공개 메소드

Apply a window to the whole buffer.
public ApplyWindow ( CosWindow window ) : void
window CosWindow Cosine-based window to apply
리턴 void

MaxPos() 공개 메소드

public MaxPos ( ) : int
리턴 int

MaxVal() 공개 메소드

public MaxVal ( ) : double
리턴 double

Normalize() 공개 메소드

Normalize the buffer so maximum value is at (dBfs)
public Normalize ( double dBfs ) : double
dBfs double dB-of-fullscale for the new peak
리턴 double

Normalize() 공개 메소드

public Normalize ( double dBfs, bool doIt ) : double
dBfs double
doIt bool
리턴 double

PadTo() 공개 메소드

public PadTo ( int n ) : void
n int
리턴 void

PadToPowerOfTwo() 공개 메소드

public PadToPowerOfTwo ( ) : void
리턴 void

Read() 공개 메소드

public Read ( int n, int &nn, bool &moreSamples ) : ISample[]
n int
nn int
moreSamples bool
리턴 ISample[]

ReadAll() 공개 메소드

public ReadAll ( ) : int
리턴 int

ReadComplex() 공개 메소드

public ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][]
n int
nn int
moreSamples bool
리턴 Complex[][]

ReadTo() 공개 메소드

public ReadTo ( int n ) : bool
n int
리턴 bool

SampleSubset() 공개 메소드

Get an iterator for a subset of samples
public SampleSubset ( int start, int count ) : IEnumerator
start int
count int Number to return
리턴 IEnumerator

Skip() 공개 메소드

public Skip ( int n, int &nn, bool &moreSamples ) : void
n int
nn int
moreSamples bool
리턴 void

SoundBuffer() 공개 메소드

public SoundBuffer ( ) : System
리턴 System

SoundBuffer() 공개 메소드

public SoundBuffer ( ISoundObj input ) : System
input ISoundObj
리턴 System

SoundBuffer() 공개 메소드

public SoundBuffer ( List samples, ushort numChannels, uint sampleRate ) : System
samples List
numChannels ushort
sampleRate uint
리턴 System

Subset() 공개 메소드

public Subset ( int start ) : ISoundObj
start int
리턴 ISoundObj

Subset() 공개 메소드

public Subset ( int start, int count ) : ISoundObj
start int
count int
리턴 ISoundObj

ToArray() 공개 메소드

public ToArray ( ) : ISample[]
리턴 ISample[]

ToArray() 공개 메소드

public ToArray ( int startPos ) : ISample[]
startPos int
리턴 ISample[]

ToArray() 공개 메소드

public ToArray ( int startPos, int count ) : ISample[]
startPos int
count int
리턴 ISample[]

ToComplexArray() 공개 메소드

public ToComplexArray ( ) : Complex[][]
리턴 Complex[][]

ToComplexArray() 공개 메소드

public ToComplexArray ( int startPos ) : Complex[][]
startPos int
리턴 Complex[][]

ToComplexArray() 공개 메소드

public ToComplexArray ( int startPos, int count ) : Complex[][]
startPos int
count int
리턴 Complex[][]

ToDoubleArray() 공개 메소드

Return the buffer contents as an array of doubles
public ToDoubleArray ( ) : double[][]
리턴 double[][]

ToDoubleArray() 공개 메소드

Return the buffer contents as an array of doubles
public ToDoubleArray ( int startPos ) : double[][]
startPos int Start position in the buffer
리턴 double[][]

ToDoubleArray() 공개 메소드

Return the buffer contents as an array of doubles
public ToDoubleArray ( int startPos, int count ) : double[][]
startPos int
count int Length of the return array (will be null-padded if count exceeds data size)
리턴 double[][]

this() 공개 메소드

public this ( int arg ) : ISample
arg int
리턴 ISample