C# Class SoundLibrary.Stream.Monaural.TimeStretcher

TimeStretcher の概要の説明です。
Inheritance: System.Stream
Datei anzeigen Open project: ufcpp/UfcppSample

Public Methods

Method Description
FillBuffer ( short buffer, int offset, int size ) : int size が overlapSize よりも小さいとき、動作保証対象外。
Skip ( int size ) : bool
TimeStretcher ( System.Stream stream, double rate ) : System

初期化。

TimeStretcher ( System.Stream stream, double rate, int overlapSize, int margin ) : System

初期化。

Private Methods

Method Description
Correlation ( short a, short b, int offset ) : double

a と b+offset の相関値を求める。

Crossfade ( short a, short b, int offset, short dest ) : void

a と b の信号をクロスフェードさせながら混ぜる。

GetOffset ( short a, short b, int max ) : int

2つの信号 a と b を混ぜるとき、最も違和感なく混ざる位置オフセットを探す。 a と b の相互相関が最も高い位置を探す。

Method Details

FillBuffer() public method

size が overlapSize よりも小さいとき、動作保証対象外。
public FillBuffer ( short buffer, int offset, int size ) : int
buffer short
offset int
size int
return int

Skip() public method

public Skip ( int size ) : bool
size int
return bool

TimeStretcher() public method

初期化。
public TimeStretcher ( System.Stream stream, double rate ) : System
stream System.Stream 内部ストリーム
rate double 変換レート
return System

TimeStretcher() public method

初期化。
public TimeStretcher ( System.Stream stream, double rate, int overlapSize, int margin ) : System
stream System.Stream 内部ストリーム
rate double 変換レート
overlapSize int オーバーラップ部分の長さ
margin int
return System