| Package | efnx.sound |
| Class | public class Waveform |
| Inheritance | Waveform flash.display.Bitmap |
frameRate or Waveform wil
assume it to be 16, which is a good comprimise between speed and functionality [as when
flash is chugging on values, you don't get much mouse/keyboard input, but with a higher frame rate
less windows are calculated per frame, taking longer to analyze the sound].
| Property | Defined by | ||
|---|---|---|---|
| frameRate : Number | Waveform | ||
| leftChannel : Vector [read-only]
Returns the current block of plottable data from the left channel.
| Waveform | ||
| leftSample : uint | Waveform | ||
| numWindows : uint | Waveform | ||
| rightChannel : Vector [read-only]
Returns the current block of plottable data from the right channel.
| Waveform | ||
| rightSample : uint | Waveform | ||
| sound : Sound | Waveform | ||
| windowSize : uint [read-only]
The size of each window in samples.
| Waveform | ||
| Method | Defined by | ||
|---|---|---|---|
|
Waveform()
Creates a new instance of Waveform.
| Waveform | ||
|
cancel():void
Stops all analyzation.
| Waveform | ||
|
createWaveform(method:String = "rms"):void
Constructs two vectors of analyzed waveforms using the method supplied in "method".
| Waveform | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| A complete event is dispatched when Waveform has completed analyzing all windows. | Waveform | |||
| A progress event is dispatched whenever a chunk of windows has been analyzed [usually each frame]. | Waveform | |||
| Constant | Defined by | ||
|---|---|---|---|
| SAMPLERATE : uint = 44100 [static]
Flash's sampling frequency.
| Waveform | ||
| frameRate | property |
frameRate:Number [read-write]Implementation
public function get frameRate():Number
public function set frameRate(value:Number):void
| leftChannel | property |
leftChannel:Vector [read-only]Returns the current block of plottable data from the left channel. The size of the returned vector is the number of windows analyzed. Typically this data would be accessed on an "as analyzed" basis through
Implementation public function get leftChannel():Vector
See also
| leftSample | property |
leftSample:uint [read-write]Implementation
public function get leftSample():uint
public function set leftSample(value:uint):void
| numWindows | property |
numWindows:uint [read-write]Implementation
public function get numWindows():uint
public function set numWindows(value:uint):void
| rightChannel | property |
rightChannel:Vector [read-only]Returns the current block of plottable data from the right channel. The size of the returned vector is the number of windows analyzed. Typically this data would be accessed on an "as analyzed" basis through
Implementation public function get rightChannel():Vector
See also
| rightSample | property |
rightSample:uint [read-write]Implementation
public function get rightSample():uint
public function set rightSample(value:uint):void
| sound | property |
sound:Sound [read-write]Implementation
public function get sound():Sound
public function set sound(value:Sound):void
| windowSize | property |
windowSize:uint [read-only]The size of each window in samples.
Implementation public function get windowSize():uint
| Waveform | () | constructor |
public function Waveform()Creates a new instance of Waveform.
| cancel | () | method |
public function cancel():voidStops all analyzation.
| createWaveform | () | method |
public function createWaveform(method:String = "rms"):voidConstructs two vectors of analyzed waveforms using the method supplied in "method". The vectors will consist of plottable points [0 to 1] representing the left and right channels. Every value in each vector represents all sound data in a given window.
Parametersmethod:String (default = "rms") — Determines the method of analyzation. Valid methods are max
and rms.
|
| complete | event |
efnx.events.WaveformEvent
A complete event is dispatched when Waveform has completed analyzing all windows.
| progress | event |
efnx.events.WaveformEvent
A progress event is dispatched whenever a chunk of windows has been analyzed [usually each frame].
| SAMPLERATE | constant |
public static const SAMPLERATE:uint = 44100Flash's sampling frequency.