Package echonest :: Package remix :: Module audio :: Class Simultaneous
[hide private]
[frames] | no frames]

Class Simultaneous

source code


Stacks all contained AudioQuanta atop one another, adding their respective samples. The rhythmic length of the segment is the duration of the first AudioQuantum, but there can be significant overlap caused by the longest segment.

Sample usage::
Simultaneous(a.analysis.bars).encode("my.mp3")
Instance Methods [hide private]
new empty list
__init__(self, *args, **kwargs)
Initializes an AudioQuantumList. All parameters are optional.
source code
 
get_duration(self) source code
 
toxml(self, context=None) source code
 
render(self, start=0.0, to_audio=None, with_source=None) source code

Inherited from AudioQuantumList: __getstate__, attach, get_many, get_many_if_segment, get_source, set_source, sources

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from AudioRenderable: encode, resolve_source

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from AudioRenderable: init_audio_data

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]
  duration
Rhythmic duration of the Simultaneous AudioQuanta: the same as the duration of the first in the list.

Inherited from AudioQuantumList: confidence, durations, kinds, loudness_begin, loudness_end, loudness_max, pitches, source, start, timbre, time_loudness_max

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Initializes an AudioQuantumList. All parameters are optional.
Parameters:
  • initial - a List type with the initial contents
  • kind - a label for the kind of AudioQuantum contained within
  • container - a reference to the containing AudioAnalysis
  • source - a reference to the AudioData with the corresponding samples and time base for the contained AudioQuanta
Returns: new empty list
Overrides: object.__init__
(inherited documentation)

get_duration(self)

source code 
Overrides: AudioQuantumList.get_duration

toxml(self, context=None)

source code 
Overrides: AudioQuantumList.toxml

render(self, start=0.0, to_audio=None, with_source=None)

source code 
Overrides: AudioQuantumList.render

Property Details [hide private]

duration

Rhythmic duration of the Simultaneous AudioQuanta: the same as the duration of the first in the list.
Get Method:
get_duration(self)