Packagede.popforge.audio.output
Classpublic class Sample

The class Sample stores 2 Numbers as a representation of the current Sample amplitudes. Their value should be computed in range[-1,1] For Mono Samples use only left.



Public Properties
 PropertyDefined by
  left : Number
The left amplitude of the Sample
Sample
  right : Number
The right amplitude of the Sample
Sample
Public Methods
 MethodDefined by
  
Sample(left:Number = 0.0, right:Number = 0.0)
Creates a Sample instance
Sample
  
Returns a clone of the current Sample
Sample
  
toString():String
Sample
Property detail
leftproperty
public var left:Number

The left amplitude of the Sample

rightproperty 
public var right:Number

The right amplitude of the Sample

Constructor detail
Sample()constructor
public function Sample(left:Number = 0.0, right:Number = 0.0)

Creates a Sample instance

Parameters
left:Number (default = 0.0) — The left amplitude of the Sample
 
right:Number (default = 0.0) — The right amplitude of the Sample
Method detail
clone()method
public function clone():Sample

Returns a clone of the current Sample

Returns
Sample
toString()method 
public function toString():String

Returns
String