C# Class _ExampleController.ToneDetector

Inheritance: IAudioProcessor
Mostrar archivo Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Public Properties

Property Type Description
stable_cycles int

Public Methods

Method Description
DrawOscillator ( ) : Bitmap

Draw a visual representation of the tone detector.

ProcessSample ( TimedSample Sample ) : void

Called by plug-in host (encoder)

ToneDetector ( int TargetFrequency ) : System

Create a new tone detector. Target Frequency to be given in Hz (1kHz == 1000)

Private Methods

Method Description
BalanceOscillator ( ) : void
CountGatedSigns ( ) : void

Counts the number of non-zero blocks in the filtered oscillator data. Also finds the centres of the first positive and negative peaks

DetectTone ( ) : void
FilterOscillator ( ) : void
JitterOrFail ( ) : void
PrepareSampleConversion ( int TargetFrequency ) : void

Find the first sample rate that gives an integral oscillator size

ResampleForTone ( short Samples ) : float[]

Method Details

DrawOscillator() public method

Draw a visual representation of the tone detector.
public DrawOscillator ( ) : Bitmap
return System.Drawing.Bitmap

ProcessSample() public method

Called by plug-in host (encoder)
public ProcessSample ( TimedSample Sample ) : void
Sample HCS_Encoder.Inputs.Buffers.TimedSample
return void

ToneDetector() public method

Create a new tone detector. Target Frequency to be given in Hz (1kHz == 1000)
public ToneDetector ( int TargetFrequency ) : System
TargetFrequency int
return System

Property Details

stable_cycles public_oe property

public int stable_cycles
return int