Packagecom.noteflight.standingwave2.performance
Classpublic class ListPerformance
InheritanceListPerformance Inheritance Object
Implements IPerformance

A ListPerformance is an ordered list of PerformanceElements, each of which possesses an onset relative to the start of the performance. The list is optimized for the case where elements are appended in order of start time.



Public Properties
 PropertyDefined By
  descriptor : AudioDescriptor
[read-only]
ListPerformance
  elements : Vector.<PerformanceElement>
[read-only] The list of PerformanceElements within this Performance, sorted by onset.
ListPerformance
  frameCount : Number
[read-only] The frame count of the entire Performance.
ListPerformance
  lastStart : Number
[read-only] The start of the last performance element in the Performance.
ListPerformance
Public Methods
 MethodDefined By
  
Add a Performance Element to this Performance.
ListPerformance
  
addSourceAt(startTime:Number, source:IAudioSource):void
Add an IAudioSource to this performance, to start at a particular start time.
ListPerformance
  
ListPerformance
  
getElementsInRange(start:Number, end:Number):Vector.<PerformanceElement>
Obtain a list of of PerformanceElements in this performance, ordered by starting frame index, whose starting frame lies in a given range.
ListPerformance
Property Detail
descriptorproperty
descriptor:AudioDescriptor  [read-only]


Implementation
    public function get descriptor():AudioDescriptor
elementsproperty 
elements:Vector.<PerformanceElement>  [read-only]

The list of PerformanceElements within this Performance, sorted by onset.


Implementation
    public function get elements():Vector.<PerformanceElement>
frameCountproperty 
frameCount:Number  [read-only]

The frame count of the entire Performance.


Implementation
    public function get frameCount():Number
lastStartproperty 
lastStart:Number  [read-only]

The start of the last performance element in the Performance.


Implementation
    public function get lastStart():Number
Method Detail
addElement()method
public function addElement(element:PerformanceElement):void

Add a Performance Element to this Performance.

Parameters

element:PerformanceElement

addSourceAt()method 
public function addSourceAt(startTime:Number, source:IAudioSource):void

Add an IAudioSource to this performance, to start at a particular start time.

Parameters

startTime:Number
 
source:IAudioSource

clone()method 
public function clone():IPerformance

Returns
IPerformance
getElementsInRange()method 
public function getElementsInRange(start:Number, end:Number):Vector.<PerformanceElement>

Obtain a list of of PerformanceElements in this performance, ordered by starting frame index, whose starting frame lies in a given range.

Parameters

start:Number — frame count of range start (inclusive)
 
end:Number — frame count of the range end (exclusive)

Returns
Vector.<PerformanceElement>