| Home | Trees | Indices | Help |
|
|---|
|
|
A container that enables content-based selection and filtering.
A List that contains AudioQuantum objects, with additional methods
for manipulating them.
When an AudioQuantumList is created for a track via a call to the Analyze API, attach() is called so that its container is set to the containing AudioAnalysis, and the container of each of the AudioQuantum list members is set to itself.
Additional accessors now include AudioQuantum elements such as
start, duration, and confidence, which each return a List of the
corresponding properties in the contained AudioQuanta. A special name
is kinds, which returns a List of the kind of each AudioQuantum.
If AudioQuantumList.kind is "segment", then pitches, timbre,
loudness_begin, loudness_max, time_loudness_max, and loudness_end
are available.
|
|||
| new list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
QUANTUM_ATTRIBUTES =
|
|||
SEGMENT_ATTRIBUTES =
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Method for applying a function to each of the contained
AudioQuantum objects. Returns a new AudioQuantumList
of the same See echonest.selection for example selection filters.
Change Log: experimenting with a filter-only form |
Returns a new AudioQuantumList of the same See echonest.sorting for example ordering functions.
|
There are two basic forms: a map-and-flatten and an converse-that. The basic form, with one beats.beget(the_next_ones) A second form has the first argument For example, calling: beats.beget(segments, which=overlap) Gets evaluated as:
for beat in beats:
return segments.that(overlap(beat))
And all of the AudioQuantumLists that return are flattened into
a single AudioQuantumList. Note that the function passed to
|
kinds, do the same for each kind accessor. Otherwise, do normal
attribute dispatch.
|
|
|||
SEGMENT_ATTRIBUTES
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Mar 22 19:52:23 2009 | http://epydoc.sourceforge.net |