loris
index
/Users/kfitz/Loris/scripting/loris.py

Loris is an Open Source sound modeling and processing software package
based on the Reassigned Bandwidth-Enhanced Additive Sound Model. Loris
supports modified resynthesis and manipulations of the model data,
such as time- and frequency-scale modification and sound morphing.
 
 
Loris is developed by Kelly Fitz and Lippold Haken at the CERL Sound
Group, and is distributed under the GNU General Public License (GPL).
For more information, please visit
 
   http://www.cerlsoundgroup.org/Loris/

 
Modules
       
_loris

 
Classes
       
__builtin__.object
AiffFile
AiffFilePtr
Analyzer
AnalyzerPtr
Breakpoint
BreakpointPtr
BreakpointPosition
BreakpointPositionPtr
DoubleVector
DoubleVectorPtr
LinearEnvelope
BreakpointEnvelope
BreakpointEnvelopePtr
LinearEnvelopePtr
Marker
MarkerPtr
MarkerVector
MarkerVectorPtr
Partial
PartialPtr
PartialIterator
PartialIteratorPtr
PartialList
PartialListPtr
PartialListIterator
PartialListIteratorPtr
SdifFile
SdifFilePtr
SpcFile
SpcFilePtr

 
class AiffFile(__builtin__.object)
    Proxy of C++ AiffFile class
 
An AiffFile represents a sample file (on disk) in the Audio Interchange
File Format. The file is read from disk and the samples stored in memory
upon construction of an AiffFile instance. The samples are accessed by 
the samples() method, which converts them to double precision floats and
returns them in a vector.
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_AiffFile>)
__del__(self)
 
Destroy this AiffFile.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self, filename) -> AiffFile
__init__(self, vec, samplerate) -> AiffFile
__init__(self, l, sampleRate=44100, fadeTime=.001) -> AiffFile
__init__(self, l, sampleRate=44100) -> AiffFile
__init__(self, l) -> AiffFile
 
An AiffFile instance can be initialized in any of the following ways:
 
Initialize a new AiffFile from a vector of samples and sample rate.
 
Initialize a new AiffFile using data read from a named file.
 
Initialize an instance of AiffFile having the specified sample 
rate, accumulating samples rendered at that sample rate from
all Partials on the specified half-open (STL-style) range with
the (optionally) specified Partial fade time (see Synthesizer.h
for an examplanation of fade time).
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this AiffFile.
addPartial(*args)
addPartial(self, p, fadeTime=.001)
addPartial(self, p)
 
Render the specified Partial using the (optionally) specified
Partial fade time, and accumulate the resulting samples into
the sample vector for this AiffFile.
addPartials(*args)
addPartials(self, l, fadeTime=0.001)
addPartials(self, l)
 
Render all Partials on the specified half-open (STL-style) range
with the (optionally) specified Partial fade time (see Synthesizer.h
for an examplanation of fade time), and accumulate the resulting 
samples.
channels(*args)
channels(self) -> int
 
The number of channels is always 1. 
Loris only deals in mono AiffFiles
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this AiffFile.
midiNoteNumber(*args)
midiNoteNumber(self) -> double
 
Return the MIDI note number for this AiffFile. The defaul
note number is 60, corresponding to middle C.
sampleFrames(*args)
sampleFrames(self) -> unsigned long
 
Return the number of sample frames (equal to the number of samples
in a single channel file) stored by this AiffFile.
sampleRate(*args)
sampleRate(self) -> double
 
Return the sample rate in Hz for this AiffFile.
samples(*args)
samples(self) -> DoubleVector
 
Return a copy of the samples (as floating point numbers
on the range -1,1) stored in this AiffFile.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this AiffFile.
setMidiNoteNumber(*args)
setMidiNoteNumber(self, nn)
 
Set the fractional MIDI note number assigned to this AiffFile
If the sound has no definable pitch, use note number 60.0 
(the default).
write(*args)
write(self, filename, bps=16)
write(self, filename)
 
Export the sample data represented by this AiffFile to
the file having the specified filename or path. Export
signed integer samples of the specified size, in bits
(8, 16, 24, or 32).

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'AiffFile' objects>
list of weak references to the object (if defined)

 
class AiffFilePtr(AiffFile)
    
Method resolution order:
AiffFilePtr
AiffFile
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from AiffFile:
__del__(self, destroy=<built-in function delete_AiffFile>)
__del__(self)
 
Destroy this AiffFile.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this AiffFile.
addPartial(*args)
addPartial(self, p, fadeTime=.001)
addPartial(self, p)
 
Render the specified Partial using the (optionally) specified
Partial fade time, and accumulate the resulting samples into
the sample vector for this AiffFile.
addPartials(*args)
addPartials(self, l, fadeTime=0.001)
addPartials(self, l)
 
Render all Partials on the specified half-open (STL-style) range
with the (optionally) specified Partial fade time (see Synthesizer.h
for an examplanation of fade time), and accumulate the resulting 
samples.
channels(*args)
channels(self) -> int
 
The number of channels is always 1. 
Loris only deals in mono AiffFiles
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this AiffFile.
midiNoteNumber(*args)
midiNoteNumber(self) -> double
 
Return the MIDI note number for this AiffFile. The defaul
note number is 60, corresponding to middle C.
sampleFrames(*args)
sampleFrames(self) -> unsigned long
 
Return the number of sample frames (equal to the number of samples
in a single channel file) stored by this AiffFile.
sampleRate(*args)
sampleRate(self) -> double
 
Return the sample rate in Hz for this AiffFile.
samples(*args)
samples(self) -> DoubleVector
 
Return a copy of the samples (as floating point numbers
on the range -1,1) stored in this AiffFile.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this AiffFile.
setMidiNoteNumber(*args)
setMidiNoteNumber(self, nn)
 
Set the fractional MIDI note number assigned to this AiffFile
If the sound has no definable pitch, use note number 60.0 
(the default).
write(*args)
write(self, filename, bps=16)
write(self, filename)
 
Export the sample data represented by this AiffFile to
the file having the specified filename or path. Export
signed integer samples of the specified size, in bits
(8, 16, 24, or 32).

Data and other attributes inherited from AiffFile:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'AiffFile' objects>
list of weak references to the object (if defined)

 
class Analyzer(__builtin__.object)
    Proxy of C++ Analyzer class
 
An Analyzer represents a configuration of parameters for
performing Reassigned Bandwidth-Enhanced Additive Analysis
of sampled waveforms. This analysis process yields a collection 
of Partials, each having a trio of synchronous, non-uniformly-
sampled breakpoint envelopes representing the time-varying 
frequency, amplitude, and noisiness of a single bandwidth-
enhanced sinusoid. 
 
For more information about Reassigned Bandwidth-Enhanced 
Analysis and the Reassigned Bandwidth-Enhanced Additive Sound 
Model, refer to the Loris website: 
 
    http://www.cerlsoundgroup.org/Loris/
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_Analyzer>)
__del__(self)
 
Destroy this Analyzer.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self, resolutionHz) -> Analyzer
__init__(self, resolutionHz, windowWidthHz) -> Analyzer
__init__(self, another) -> Analyzer
 
Construct and return a new Analyzer configured with the given   
frequency resolution (minimum instantaneous frequency   
difference between Partials) and analysis window main 
lobe width (between zeros). All other Analyzer parameters       
are computed from the specified resolution and window
width. If the window width is not specified, 
then it is assumed to be equal to the resolution.
 
An Analyzer configuration can also be copied from another
instance.
__repr__(self)
__setattr__ lambda self, name, value
ampFloor(*args)
ampFloor(self) -> double
 
Return the amplitude floor (lowest detected spectral amplitude),              
in (negative) dB, for this Analyzer.
analyze(*args)
analyze(self, vec, srate) -> PartialList
analyze(self, vec, srate, env) -> PartialList
 
Analyze a vector of (mono) samples at the given sample rate             
(in Hz) and return the resulting Partials in a PartialList.
If specified, use a frequency envelope as a fundamental reference for
Partial formation.
bwRegionWidth(*args)
bwRegionWidth(self) -> double
 
Return the width (in Hz) of the Bandwidth Association regions
used by this Analyzer.
cropTime(*args)
cropTime(self) -> double
 
Return the crop time (maximum temporal displacement of a time-
frequency data point from the time-domain center of the analysis
window, beyond which data points are considered "unreliable")
for this Analyzer.
freqDrift(*args)
freqDrift(self) -> double
 
Return the maximum allowable frequency difference between                     
consecutive Breakpoints in a Partial envelope for this Analyzer.
freqFloor(*args)
freqFloor(self) -> double
 
Return the frequency floor (minimum instantaneous Partial                  
frequency), in Hz, for this Analyzer.
freqResolution(*args)
freqResolution(self) -> double
 
Return the frequency resolution (minimum instantaneous frequency          
difference between Partials) for this Analyzer.
hopTime(*args)
hopTime(self) -> double
 
Return the hop time (which corresponds approximately to the 
average density of Partial envelope Breakpoint data) for this 
Analyzer.
setAmpFloor(*args)
setAmpFloor(self, x)
 
Set the amplitude floor (lowest detected spectral amplitude), in              
(negative) dB, for this Analyzer.
setBwRegionWidth(*args)
setBwRegionWidth(self, x)
 
Set the width (in Hz) of the Bandwidth Association regions
used by this Analyzer.
setCropTime(*args)
setCropTime(self, x)
 
Set the crop time (maximum temporal displacement of a time-
frequency data point from the time-domain center of the analysis
window, beyond which data points are considered "unreliable")
for this Analyzer.
setFreqDrift(*args)
setFreqDrift(self, x)
 
Set the maximum allowable frequency difference between                     
consecutive Breakpoints in a Partial envelope for this Analyzer.
setFreqFloor(*args)
setFreqFloor(self, x)
 
Set the amplitude floor (minimum instantaneous Partial                  
frequency), in Hz, for this Analyzer.
setFreqResolution(*args)
setFreqResolution(self, x)
 
Set the frequency resolution (minimum instantaneous frequency          
difference between Partials) for this Analyzer. (Does not cause     
other parameters to be recomputed.)
setHopTime(*args)
setHopTime(self, x)
 
Set the hop time (which corresponds approximately to the average
density of Partial envelope Breakpoint data) for this Analyzer.
setSidelobeLevel(*args)
setSidelobeLevel(self, x)
 
Set the sidelobe attenutation level for the Kaiser analysis window in
positive dB. Larger numbers (e.g. 90) give very good sidelobe 
rejection but cause the window to be longer in time. Smaller 
numbers raise the level of the sidelobes, increasing the likelihood
of frequency-domain interference, but allow the window to be shorter
in time.
setWindowWidth(*args)
setWindowWidth(self, x)
 
Set the frequency-domain main lobe width (measured between 
zero-crossings) of the analysis window used by this Analyzer.
sidelobeLevel(*args)
sidelobeLevel(self) -> double
 
Return the sidelobe attenutation level for the Kaiser analysis window in
positive dB. Higher numbers (e.g. 90) give very good sidelobe 
rejection but cause the window to be longer in time. Smaller 
numbers raise the level of the sidelobes, increasing the likelihood
of frequency-domain interference, but allow the window to be shorter
in time.
windowWidth(*args)
windowWidth(self) -> double
 
Return the frequency-domain main lobe width (measured between 
zero-crossings) of the analysis window used by this Analyzer.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Analyzer' objects>
list of weak references to the object (if defined)

 
class AnalyzerPtr(Analyzer)
    
Method resolution order:
AnalyzerPtr
Analyzer
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from Analyzer:
__del__(self, destroy=<built-in function delete_Analyzer>)
__del__(self)
 
Destroy this Analyzer.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
ampFloor(*args)
ampFloor(self) -> double
 
Return the amplitude floor (lowest detected spectral amplitude),              
in (negative) dB, for this Analyzer.
analyze(*args)
analyze(self, vec, srate) -> PartialList
analyze(self, vec, srate, env) -> PartialList
 
Analyze a vector of (mono) samples at the given sample rate             
(in Hz) and return the resulting Partials in a PartialList.
If specified, use a frequency envelope as a fundamental reference for
Partial formation.
bwRegionWidth(*args)
bwRegionWidth(self) -> double
 
Return the width (in Hz) of the Bandwidth Association regions
used by this Analyzer.
cropTime(*args)
cropTime(self) -> double
 
Return the crop time (maximum temporal displacement of a time-
frequency data point from the time-domain center of the analysis
window, beyond which data points are considered "unreliable")
for this Analyzer.
freqDrift(*args)
freqDrift(self) -> double
 
Return the maximum allowable frequency difference between                     
consecutive Breakpoints in a Partial envelope for this Analyzer.
freqFloor(*args)
freqFloor(self) -> double
 
Return the frequency floor (minimum instantaneous Partial                  
frequency), in Hz, for this Analyzer.
freqResolution(*args)
freqResolution(self) -> double
 
Return the frequency resolution (minimum instantaneous frequency          
difference between Partials) for this Analyzer.
hopTime(*args)
hopTime(self) -> double
 
Return the hop time (which corresponds approximately to the 
average density of Partial envelope Breakpoint data) for this 
Analyzer.
setAmpFloor(*args)
setAmpFloor(self, x)
 
Set the amplitude floor (lowest detected spectral amplitude), in              
(negative) dB, for this Analyzer.
setBwRegionWidth(*args)
setBwRegionWidth(self, x)
 
Set the width (in Hz) of the Bandwidth Association regions
used by this Analyzer.
setCropTime(*args)
setCropTime(self, x)
 
Set the crop time (maximum temporal displacement of a time-
frequency data point from the time-domain center of the analysis
window, beyond which data points are considered "unreliable")
for this Analyzer.
setFreqDrift(*args)
setFreqDrift(self, x)
 
Set the maximum allowable frequency difference between                     
consecutive Breakpoints in a Partial envelope for this Analyzer.
setFreqFloor(*args)
setFreqFloor(self, x)
 
Set the amplitude floor (minimum instantaneous Partial                  
frequency), in Hz, for this Analyzer.
setFreqResolution(*args)
setFreqResolution(self, x)
 
Set the frequency resolution (minimum instantaneous frequency          
difference between Partials) for this Analyzer. (Does not cause     
other parameters to be recomputed.)
setHopTime(*args)
setHopTime(self, x)
 
Set the hop time (which corresponds approximately to the average
density of Partial envelope Breakpoint data) for this Analyzer.
setSidelobeLevel(*args)
setSidelobeLevel(self, x)
 
Set the sidelobe attenutation level for the Kaiser analysis window in
positive dB. Larger numbers (e.g. 90) give very good sidelobe 
rejection but cause the window to be longer in time. Smaller 
numbers raise the level of the sidelobes, increasing the likelihood
of frequency-domain interference, but allow the window to be shorter
in time.
setWindowWidth(*args)
setWindowWidth(self, x)
 
Set the frequency-domain main lobe width (measured between 
zero-crossings) of the analysis window used by this Analyzer.
sidelobeLevel(*args)
sidelobeLevel(self) -> double
 
Return the sidelobe attenutation level for the Kaiser analysis window in
positive dB. Higher numbers (e.g. 90) give very good sidelobe 
rejection but cause the window to be longer in time. Smaller 
numbers raise the level of the sidelobes, increasing the likelihood
of frequency-domain interference, but allow the window to be shorter
in time.
windowWidth(*args)
windowWidth(self) -> double
 
Return the frequency-domain main lobe width (measured between 
zero-crossings) of the analysis window used by this Analyzer.

Data and other attributes inherited from Analyzer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Analyzer' objects>
list of weak references to the object (if defined)

 
class Breakpoint(__builtin__.object)
    Proxy of C++ Breakpoint class
 
Breakpoint represents a single breakpoint in the time-varying
frequency, amplitude, and bandwidth envelope of a Reassigned 
Bandwidth-Enhanced Partial.
 
Instantaneous phase is also stored, but is only used at the onset of 
a partial, or when it makes a transition from zero to nonzero amplitude.
 
Partial represents a Reassigned Bandwidth-Enhanced model component.
For more information about Bandwidth-Enhanced Partials and the  
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to
the Loris website: www.cerlsoundgroup.org/Loris/
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_Breakpoint>)
__del__(self)
__getattr__ lambda self, name
__init__(self, *args)
__init__(self, f, a, b, p=0.) -> Breakpoint
__init__(self, f, a, b) -> Breakpoint
__init__(self, rhs) -> Breakpoint
 
Breakpoint represents a single breakpoint in the time-varying
frequency, amplitude, and bandwidth envelope of a Reassigned 
Bandwidth-Enhanced Partial.
 
Instantaneous phase is also stored, but is only used at the onset of 
a partial, or when it makes a transition from zero to nonzero amplitude.
 
Partial represents a Reassigned Bandwidth-Enhanced model component.
For more information about Bandwidth-Enhanced Partials and the  
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to
the Loris website: www.cerlsoundgroup.org/Loris/
__repr__(self)
__setattr__ lambda self, name, value
amplitude(*args)
amplitude(self) -> double
bandwidth(*args)
bandwidth(self) -> double
frequency(*args)
frequency(self) -> double
phase(*args)
phase(self) -> double
setAmplitude(*args)
setAmplitude(self, x)
setBandwidth(*args)
setBandwidth(self, x)
setFrequency(*args)
setFrequency(self, x)
setPhase(*args)
setPhase(self, x)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Breakpoint' objects>
list of weak references to the object (if defined)

 
class BreakpointEnvelope(LinearEnvelope)
    Proxy of C++ BreakpointEnvelope class
 
BreakpointEnvelope is deprecated, use LinearEnvelope instead.
 
 
Method resolution order:
BreakpointEnvelope
LinearEnvelope
__builtin__.object

Methods defined here:
__del__(self, destroy=<built-in function delete_BreakpointEnvelope>)
__del__(self)
__getattr__ lambda self, name
__init__(self, *args)
__init__(self) -> BreakpointEnvelope
__init__(self, ??) -> BreakpointEnvelope
__init__(self, initialValue) -> BreakpointEnvelope
 
BreakpointEnvelope is deprecated, use LinearEnvelope instead.
__repr__(self)
__setattr__ lambda self, name, value
insertBreakpoint(*args)
insertBreakpoint(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
valueAt(*args)
valueAt(self, x) -> double
 
Return the (linearly-interpolated) value of the envelope
at the specified time.

Data and other attributes defined here:
__swig_getmethods__ = {}
__swig_setmethods__ = {}

Methods inherited from LinearEnvelope:
insert(*args)
insert(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.

Data and other attributes inherited from LinearEnvelope:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'LinearEnvelope' objects>
list of weak references to the object (if defined)

 
class BreakpointEnvelopePtr(BreakpointEnvelope)
    
Method resolution order:
BreakpointEnvelopePtr
BreakpointEnvelope
LinearEnvelope
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from BreakpointEnvelope:
__del__(self, destroy=<built-in function delete_BreakpointEnvelope>)
__del__(self)
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
insertBreakpoint(*args)
insertBreakpoint(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
valueAt(*args)
valueAt(self, x) -> double
 
Return the (linearly-interpolated) value of the envelope
at the specified time.

Data and other attributes inherited from BreakpointEnvelope:
__swig_getmethods__ = {}
__swig_setmethods__ = {}

Methods inherited from LinearEnvelope:
insert(*args)
insert(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.

Data and other attributes inherited from LinearEnvelope:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'LinearEnvelope' objects>
list of weak references to the object (if defined)

 
class BreakpointPosition(__builtin__.object)
    Proxy of C++ BreakpointPosition class
 
BreakpointPosition represents the position of a 
Breakpoint within a Partial.
 
  Methods defined here:
__getattr__ lambda self, name
__init__(self)
__repr__(self)
__setattr__ lambda self, name, value
amplitude(*args)
amplitude(self) -> double
bandwidth(*args)
bandwidth(self) -> double
breakpoint(*args)
breakpoint(self) -> Breakpoint
frequency(*args)
frequency(self) -> double
phase(*args)
phase(self) -> double
setAmplitude(*args)
setAmplitude(self, x)
setBandwidth(*args)
setBandwidth(self, x)
setFrequency(*args)
setFrequency(self, x)
setPhase(*args)
setPhase(self, x)
time(*args)
time(self) -> double

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'BreakpointPosition' objects>
list of weak references to the object (if defined)

 
class BreakpointPositionPtr(BreakpointPosition)
    
Method resolution order:
BreakpointPositionPtr
BreakpointPosition
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from BreakpointPosition:
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
amplitude(*args)
amplitude(self) -> double
bandwidth(*args)
bandwidth(self) -> double
breakpoint(*args)
breakpoint(self) -> Breakpoint
frequency(*args)
frequency(self) -> double
phase(*args)
phase(self) -> double
setAmplitude(*args)
setAmplitude(self, x)
setBandwidth(*args)
setBandwidth(self, x)
setFrequency(*args)
setFrequency(self, x)
setPhase(*args)
setPhase(self, x)
time(*args)
time(self) -> double

Data and other attributes inherited from BreakpointPosition:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'BreakpointPosition' objects>
list of weak references to the object (if defined)

 
class BreakpointPtr(Breakpoint)
    
Method resolution order:
BreakpointPtr
Breakpoint
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from Breakpoint:
__del__(self, destroy=<built-in function delete_Breakpoint>)
__del__(self)
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
amplitude(*args)
amplitude(self) -> double
bandwidth(*args)
bandwidth(self) -> double
frequency(*args)
frequency(self) -> double
phase(*args)
phase(self) -> double
setAmplitude(*args)
setAmplitude(self, x)
setBandwidth(*args)
setBandwidth(self, x)
setFrequency(*args)
setFrequency(self, x)
setPhase(*args)
setPhase(self, x)

Data and other attributes inherited from Breakpoint:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Breakpoint' objects>
list of weak references to the object (if defined)

 
class DoubleVector(__builtin__.object)
    Proxy of C++ DoubleVector class
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_DoubleVector>)
__del__(self)
__delitem__(*args)
__delitem__(self, i)
__delslice__(*args)
__delslice__(self, i, j)
__getattr__ lambda self, name
__getitem__(*args)
__getitem__(self, i) -> value_type
__getslice__(*args)
__getslice__(self, i, j) -> std::vector<(double,std::allocator<(double)>)>
__init__(self, *args)
__init__(self) -> DoubleVector
__init__(self, ??) -> DoubleVector
__init__(self, size) -> DoubleVector
__init__(self, size, value) -> DoubleVector
__len__(*args)
__len__(self) -> size_type
__nonzero__(*args)
__nonzero__(self) -> bool
__repr__(self)
__setattr__ lambda self, name, value
__setitem__(*args)
__setitem__(self, i, x)
__setslice__(*args)
__setslice__(self, i, j, v)
append(*args)
append(self, x)
assign(*args)
assign(self, n, x)
back(*args)
back(self) -> value_type
capacity(*args)
capacity(self) -> size_type
clear(*args)
clear(self)
empty(*args)
empty(self) -> bool
front(*args)
front(self) -> value_type
get_allocator(*args)
get_allocator(self) -> allocator_type
pop(*args)
pop(self) -> value_type
pop_back(*args)
pop_back(self)
push_back(*args)
push_back(self, x)
reserve(*args)
reserve(self, n)
resize(*args)
resize(self, new_size)
resize(self, new_size, x)
size(*args)
size(self) -> size_type
swap(*args)
swap(self, v)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'DoubleVector' objects>
list of weak references to the object (if defined)

 
class DoubleVectorPtr(DoubleVector)
    
Method resolution order:
DoubleVectorPtr
DoubleVector
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from DoubleVector:
__del__(self, destroy=<built-in function delete_DoubleVector>)
__del__(self)
__delitem__(*args)
__delitem__(self, i)
__delslice__(*args)
__delslice__(self, i, j)
__getattr__ lambda self, name
__getitem__(*args)
__getitem__(self, i) -> value_type
__getslice__(*args)
__getslice__(self, i, j) -> std::vector<(double,std::allocator<(double)>)>
__len__(*args)
__len__(self) -> size_type
__nonzero__(*args)
__nonzero__(self) -> bool
__repr__(self)
__setattr__ lambda self, name, value
__setitem__(*args)
__setitem__(self, i, x)
__setslice__(*args)
__setslice__(self, i, j, v)
append(*args)
append(self, x)
assign(*args)
assign(self, n, x)
back(*args)
back(self) -> value_type
capacity(*args)
capacity(self) -> size_type
clear(*args)
clear(self)
empty(*args)
empty(self) -> bool
front(*args)
front(self) -> value_type
get_allocator(*args)
get_allocator(self) -> allocator_type
pop(*args)
pop(self) -> value_type
pop_back(*args)
pop_back(self)
push_back(*args)
push_back(self, x)
reserve(*args)
reserve(self, n)
resize(*args)
resize(self, new_size)
resize(self, new_size, x)
size(*args)
size(self) -> size_type
swap(*args)
swap(self, v)

Data and other attributes inherited from DoubleVector:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'DoubleVector' objects>
list of weak references to the object (if defined)

 
class LinearEnvelope(__builtin__.object)
    Proxy of C++ LinearEnvelope class
 
LinearEnvelope represents a linear segment breakpoint 
function with infinite extension at each end (that is, the 
values past either end of the breakpoint function have the 
values at the nearest end).
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_LinearEnvelope>)
__del__(self)
 
Destroy this LinearEnvelope.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self) -> LinearEnvelope
__init__(self, ??) -> LinearEnvelope
__init__(self, initialValue) -> LinearEnvelope
 
Construct and return a new LinearEnvelope, empty,
or having a single breakpoint at time 0 with the 
specified value.
 
An LinearEnvelope can also be copied from another
instance.
__repr__(self)
__setattr__ lambda self, name, value
insert(*args)
insert(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
insertBreakpoint(*args)
insertBreakpoint(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
valueAt(*args)
valueAt(self, x) -> double
 
Return the (linearly-interpolated) value of the envelope
at the specified time.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'LinearEnvelope' objects>
list of weak references to the object (if defined)

 
class LinearEnvelopePtr(LinearEnvelope)
    
Method resolution order:
LinearEnvelopePtr
LinearEnvelope
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from LinearEnvelope:
__del__(self, destroy=<built-in function delete_LinearEnvelope>)
__del__(self)
 
Destroy this LinearEnvelope.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
insert(*args)
insert(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
insertBreakpoint(*args)
insertBreakpoint(self, time, value)
 
Insert a new breakpoint into the envelope at the specified
time and value.
valueAt(*args)
valueAt(self, x) -> double
 
Return the (linearly-interpolated) value of the envelope
at the specified time.

Data and other attributes inherited from LinearEnvelope:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'LinearEnvelope' objects>
list of weak references to the object (if defined)

 
class Marker(__builtin__.object)
    Proxy of C++ Marker class
 
Class Marker represents a labeled time point in a set of Partials
or a vector of samples. Collections of Markers (see the MarkerContainer
definition below) are held by the File I/O classes in Loris (AiffFile,
SdifFile, and SpcFile) to identify temporal features in imported
and exported data.
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_Marker>)
__del__(self)
 
Return a string describing the Loris version number.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self) -> Marker
__init__(self, t, s) -> Marker
__init__(self, other) -> Marker
 
Initialize a Marker with the specified time (in seconds) and name,
or copy the time and name from another Marker. If unspecified, time 
is zero and the label is empty.
__repr__(self)
__setattr__ lambda self, name, value
name(*args)
name(self) -> char
 
Return the name of this Marker.
setName(*args)
setName(self, s)
 
Set the name of the Marker.
setTime(*args)
setTime(self, t)
 
Set the time (in seconds) associated with this Marker.
time(*args)
time(self) -> double
 
Return the time (in seconds) associated with this Marker.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Marker' objects>
list of weak references to the object (if defined)

 
class MarkerPtr(Marker)
    
Method resolution order:
MarkerPtr
Marker
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from Marker:
__del__(self, destroy=<built-in function delete_Marker>)
__del__(self)
 
Return a string describing the Loris version number.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
name(*args)
name(self) -> char
 
Return the name of this Marker.
setName(*args)
setName(self, s)
 
Set the name of the Marker.
setTime(*args)
setTime(self, t)
 
Set the time (in seconds) associated with this Marker.
time(*args)
time(self) -> double
 
Return the time (in seconds) associated with this Marker.

Data and other attributes inherited from Marker:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Marker' objects>
list of weak references to the object (if defined)

 
class MarkerVector(__builtin__.object)
    Proxy of C++ MarkerVector class
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_MarkerVector>)
__del__(self)
__delitem__(*args)
__delitem__(self, i)
__delslice__(*args)
__delslice__(self, i, j)
__getattr__ lambda self, name
__getitem__(*args)
__getitem__(self, i) -> value_type
__getslice__(*args)
__getslice__(self, i, j) -> std::vector<(Marker,std::allocator<(Marker)>)>
__init__(self, *args)
__init__(self) -> MarkerVector
__init__(self, ??) -> MarkerVector
__init__(self, size) -> MarkerVector
__init__(self, size, value) -> MarkerVector
__len__(*args)
__len__(self) -> size_type
__nonzero__(*args)
__nonzero__(self) -> bool
__repr__(self)
__setattr__ lambda self, name, value
__setitem__(*args)
__setitem__(self, i, x)
__setslice__(*args)
__setslice__(self, i, j, v)
append(*args)
append(self, x)
assign(*args)
assign(self, n, x)
back(*args)
back(self) -> value_type
capacity(*args)
capacity(self) -> size_type
clear(*args)
clear(self)
empty(*args)
empty(self) -> bool
front(*args)
front(self) -> value_type
get_allocator(*args)
get_allocator(self) -> allocator_type
pop(*args)
pop(self) -> value_type
pop_back(*args)
pop_back(self)
push_back(*args)
push_back(self, x)
reserve(*args)
reserve(self, n)
resize(*args)
resize(self, new_size)
resize(self, new_size, x)
size(*args)
size(self) -> size_type
swap(*args)
swap(self, v)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'MarkerVector' objects>
list of weak references to the object (if defined)

 
class MarkerVectorPtr(MarkerVector)
    
Method resolution order:
MarkerVectorPtr
MarkerVector
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from MarkerVector:
__del__(self, destroy=<built-in function delete_MarkerVector>)
__del__(self)
__delitem__(*args)
__delitem__(self, i)
__delslice__(*args)
__delslice__(self, i, j)
__getattr__ lambda self, name
__getitem__(*args)
__getitem__(self, i) -> value_type
__getslice__(*args)
__getslice__(self, i, j) -> std::vector<(Marker,std::allocator<(Marker)>)>
__len__(*args)
__len__(self) -> size_type
__nonzero__(*args)
__nonzero__(self) -> bool
__repr__(self)
__setattr__ lambda self, name, value
__setitem__(*args)
__setitem__(self, i, x)
__setslice__(*args)
__setslice__(self, i, j, v)
append(*args)
append(self, x)
assign(*args)
assign(self, n, x)
back(*args)
back(self) -> value_type
capacity(*args)
capacity(self) -> size_type
clear(*args)
clear(self)
empty(*args)
empty(self) -> bool
front(*args)
front(self) -> value_type
get_allocator(*args)
get_allocator(self) -> allocator_type
pop(*args)
pop(self) -> value_type
pop_back(*args)
pop_back(self)
push_back(*args)
push_back(self, x)
reserve(*args)
reserve(self, n)
resize(*args)
resize(self, new_size)
resize(self, new_size, x)
size(*args)
size(self) -> size_type
swap(*args)
swap(self, v)

Data and other attributes inherited from MarkerVector:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'MarkerVector' objects>
list of weak references to the object (if defined)

 
class Partial(__builtin__.object)
    Proxy of C++ Partial class
 
Partial represents a single component in the
reassigned bandwidth-enhanced additive model. A Partial consists of a
chain of Breakpoints describing the time-varying frequency, amplitude,
and bandwidth (or noisiness) envelopes of the component, and a 4-byte
label. The Breakpoints are non-uniformly distributed in time. For more
information about Reassigned Bandwidth-Enhanced Analysis and the
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to the Loris
website: www.cerlsoundgroup.org/Loris/.
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_Partial>)
__del__(self)
__getattr__ lambda self, name
__init__(self, *args)
__init__(self) -> Partial
__init__(self, ??) -> Partial
 
Partial represents a single component in the
reassigned bandwidth-enhanced additive model. A Partial consists of a
chain of Breakpoints describing the time-varying frequency, amplitude,
and bandwidth (or noisiness) envelopes of the component, and a 4-byte
label. The Breakpoints are non-uniformly distributed in time. For more
information about Reassigned Bandwidth-Enhanced Analysis and the
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to the Loris
website: www.cerlsoundgroup.org/Loris/.
__iter__(*args)
__iter__(self) -> PartialIterator
__repr__(self)
__setattr__ lambda self, name, value
amplitudeAt(*args)
amplitudeAt(self, time) -> double
bandwidthAt(*args)
bandwidthAt(self, time) -> double
duration(*args)
duration(self) -> double
endTime(*args)
endTime(self) -> double
erase(*args)
erase(self, pos)
findAfter(*args)
findAfter(self, time) -> PartialIterator
findNearest(*args)
findNearest(self, time) -> PartialIterator
first(*args)
first(self) -> Breakpoint
frequencyAt(*args)
frequencyAt(self, time) -> double
initialPhase(*args)
initialPhase(self) -> double
insert(*args)
insert(self, time, bp) -> PartialIterator
iterator(*args)
iterator(self) -> PartialIterator
label(*args)
label(self) -> int
last(*args)
last(self) -> Breakpoint
numBreakpoints(*args)
numBreakpoints(self) -> long
phaseAt(*args)
phaseAt(self, time) -> double
setLabel(*args)
setLabel(self, l)
startTime(*args)
startTime(self) -> double

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Partial' objects>
list of weak references to the object (if defined)

 
class PartialIterator(__builtin__.object)
    Proxy of C++ PartialIterator class
 
  Methods defined here:
__getattr__ lambda self, name
__init__(self)
__repr__(self)
__setattr__ lambda self, name, value
atEnd(*args)
atEnd(self) -> bool
hasNext(*args)
hasNext(self) -> bool
next(*args)
next(self) -> BreakpointPosition

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialIterator' objects>
list of weak references to the object (if defined)

 
class PartialIteratorPtr(PartialIterator)
    
Method resolution order:
PartialIteratorPtr
PartialIterator
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from PartialIterator:
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
atEnd(*args)
atEnd(self) -> bool
hasNext(*args)
hasNext(self) -> bool
next(*args)
next(self) -> BreakpointPosition

Data and other attributes inherited from PartialIterator:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialIterator' objects>
list of weak references to the object (if defined)

 
class PartialList(__builtin__.object)
    Proxy of C++ PartialList class
 
PartialList represents a collection of Bandwidth-Enhanced 
Partials, each having a trio of synchronous, non-uniformly-
sampled breakpoint envelopes representing the time-varying 
frequency, amplitude, and noisiness of a single bandwidth-
enhanced sinusoid.
 
For more information about Bandwidth-Enhanced Partials and the  
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to
the Loris website: www.cerlsoundgroup.org/Loris/
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_PartialList>)
__del__(self)
__getattr__ lambda self, name
__init__(self, *args)
__init__(self) -> PartialList
__init__(self, rhs) -> PartialList
 
PartialList represents a collection of Bandwidth-Enhanced 
Partials, each having a trio of synchronous, non-uniformly-
sampled breakpoint envelopes representing the time-varying 
frequency, amplitude, and noisiness of a single bandwidth-
enhanced sinusoid.
 
For more information about Bandwidth-Enhanced Partials and the  
Reassigned Bandwidth-Enhanced Additive Sound Model, refer to
the Loris website: www.cerlsoundgroup.org/Loris/
__iter__(*args)
__iter__(self) -> PartialListIterator
__len__(*args)
__len__(self) -> unsigned long
__repr__(self)
__setattr__ lambda self, name, value
append(*args)
append(self, partial)
append(self, other)
clear(*args)
clear(self)
erase(*args)
erase(self, partial)
first(*args)
first(self) -> Partial
iterator(*args)
iterator(self) -> PartialListIterator
last(*args)
last(self) -> Partial
size(*args)
size(self) -> unsigned long

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialList' objects>
list of weak references to the object (if defined)

 
class PartialListIterator(__builtin__.object)
    Proxy of C++ PartialListIterator class
 
  Methods defined here:
__getattr__ lambda self, name
__init__(self)
__repr__(self)
__setattr__ lambda self, name, value
atEnd(*args)
atEnd(self) -> bool
next(*args)
next(self) -> Partial

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialListIterator' objects>
list of weak references to the object (if defined)

 
class PartialListIteratorPtr(PartialListIterator)
    
Method resolution order:
PartialListIteratorPtr
PartialListIterator
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from PartialListIterator:
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
atEnd(*args)
atEnd(self) -> bool
next(*args)
next(self) -> Partial

Data and other attributes inherited from PartialListIterator:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialListIterator' objects>
list of weak references to the object (if defined)

 
class PartialListPtr(PartialList)
    
Method resolution order:
PartialListPtr
PartialList
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from PartialList:
__del__(self, destroy=<built-in function delete_PartialList>)
__del__(self)
__getattr__ lambda self, name
__iter__(*args)
__iter__(self) -> PartialListIterator
__len__(*args)
__len__(self) -> unsigned long
__repr__(self)
__setattr__ lambda self, name, value
append(*args)
append(self, partial)
append(self, other)
clear(*args)
clear(self)
erase(*args)
erase(self, partial)
first(*args)
first(self) -> Partial
iterator(*args)
iterator(self) -> PartialListIterator
last(*args)
last(self) -> Partial
size(*args)
size(self) -> unsigned long

Data and other attributes inherited from PartialList:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'PartialList' objects>
list of weak references to the object (if defined)

 
class PartialPtr(Partial)
    
Method resolution order:
PartialPtr
Partial
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from Partial:
__del__(self, destroy=<built-in function delete_Partial>)
__del__(self)
__getattr__ lambda self, name
__iter__(*args)
__iter__(self) -> PartialIterator
__repr__(self)
__setattr__ lambda self, name, value
amplitudeAt(*args)
amplitudeAt(self, time) -> double
bandwidthAt(*args)
bandwidthAt(self, time) -> double
duration(*args)
duration(self) -> double
endTime(*args)
endTime(self) -> double
erase(*args)
erase(self, pos)
findAfter(*args)
findAfter(self, time) -> PartialIterator
findNearest(*args)
findNearest(self, time) -> PartialIterator
first(*args)
first(self) -> Breakpoint
frequencyAt(*args)
frequencyAt(self, time) -> double
initialPhase(*args)
initialPhase(self) -> double
insert(*args)
insert(self, time, bp) -> PartialIterator
iterator(*args)
iterator(self) -> PartialIterator
label(*args)
label(self) -> int
last(*args)
last(self) -> Breakpoint
numBreakpoints(*args)
numBreakpoints(self) -> long
phaseAt(*args)
phaseAt(self, time) -> double
setLabel(*args)
setLabel(self, l)
startTime(*args)
startTime(self) -> double

Data and other attributes inherited from Partial:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Partial' objects>
list of weak references to the object (if defined)

 
class SdifFile(__builtin__.object)
    Proxy of C++ SdifFile class
 
Class SdifFile represents reassigned bandwidth-enhanced Partial 
data in a SDIF-format data file. Construction of an SdifFile 
from a stream or filename automatically imports the Partial
data.
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_SdifFile>)
__del__(self)
 
Destroy this SdifFile.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self, filename) -> SdifFile
__init__(self) -> SdifFile
__init__(self, l) -> SdifFile
 
Initialize an instance of SdifFile by importing Partial data from
the file having the specified filename or path, 
or initialize an instance of SdifFile storing the Partials in
the specified PartialList. If no PartialList is specified,
construct an empty SdifFile.
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this SdifFile.
addPartials(*args)
addPartials(self, l)
 
Add all the Partials in a PartialList to this SdifFile.
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this SdifFile.
partials(*args)
partials(self) -> PartialList
 
Return a copy of the Partials represented by this SdifFile.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this SdifFile.
write(*args)
write(self, path)
 
Export the Partials represented by this SdifFile to
the file having the specified filename or path.
write1TRC(*args)
write1TRC(self, path)
 
Export the envelope Partials represented by this SdifFile to
the file having the specified filename or path in the 1TRC
format, resampled, and without phase or bandwidth information.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'SdifFile' objects>
list of weak references to the object (if defined)

 
class SdifFilePtr(SdifFile)
    
Method resolution order:
SdifFilePtr
SdifFile
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from SdifFile:
__del__(self, destroy=<built-in function delete_SdifFile>)
__del__(self)
 
Destroy this SdifFile.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this SdifFile.
addPartials(*args)
addPartials(self, l)
 
Add all the Partials in a PartialList to this SdifFile.
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this SdifFile.
partials(*args)
partials(self) -> PartialList
 
Return a copy of the Partials represented by this SdifFile.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this SdifFile.
write(*args)
write(self, path)
 
Export the Partials represented by this SdifFile to
the file having the specified filename or path.
write1TRC(*args)
write1TRC(self, path)
 
Export the envelope Partials represented by this SdifFile to
the file having the specified filename or path in the 1TRC
format, resampled, and without phase or bandwidth information.

Data and other attributes inherited from SdifFile:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'SdifFile' objects>
list of weak references to the object (if defined)

 
class SpcFile(__builtin__.object)
    Proxy of C++ SpcFile class
 
Class SpcFile represents a collection of reassigned bandwidth-enhanced
Partial data in a SPC-format envelope stream data file, used by the
real-time bandwidth-enhanced additive synthesizer implemented on the
Symbolic Sound Kyma Sound Design Workstation. Class SpcFile manages 
file I/O and conversion between Partials and envelope parameter streams.
 
  Methods defined here:
__del__(self, destroy=<built-in function delete_SpcFile>)
__del__(self)
 
Destroy this SpcFile.
__getattr__ lambda self, name
__init__(self, *args)
__init__(self, filename) -> SpcFile
__init__(self, midiNoteNum=60) -> SpcFile
__init__(self) -> SpcFile
__init__(self, l, midiNoteNum=60) -> SpcFile
__init__(self, l) -> SpcFile
 
Construct and return a new SpcFile by importing envelope parameter 
streams from the file having the specified filename or path, 
or initialize an instance of SpcFile having the specified fractional
MIDI note number. If a PartialList is specified, add those
Partials to the file. Otherwise, the new SpcFile contains 
no Partials (or envelope parameter streams).
The default MIDI note number is 60 (middle C).
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this SpcFile.
addPartial(*args)
addPartial(self, p)
addPartial(self, p, label)
 
Add the specified Partial to the enevelope parameter streams
represented by this SpcFile. If a label is specified, use that
label, instead of the Partial's label, for the Partial added to
the SpcFile.
 
SpcFile can contain only one Partial having any given (non-zero) 
label, so an added Partial will replace a Partial having the 
same label, if such a Partial exists.
 
This may throw an InvalidArgument exception if an attempt is made
to add unlabeled Partials, or Partials labeled higher than the
allowable maximum.
addPartials(*args)
addPartials(self, l)
 
Add all the Partials in a PartialList to this SpcFile.
                        
SpcFile can contain only one Partial having any given (non-zero) 
label, so an added Partial will replace a Partial having the 
same label, if such a Partial exists.
 
This may throw an InvalidArgument exception if an attempt is made
to add unlabeled Partials, or Partials labeled higher than the
allowable maximum.
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this SpcFile.
midiNoteNumber(*args)
midiNoteNumber(self) -> double
partials(*args)
partials(self) -> PartialList
 
Return a copy of the Partials represented by this SdifFile.
sampleRate(*args)
sampleRate(self) -> double
 
Return the sample rate for this SpcFile in Hz.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this SpcFile.
setMidiNoteNumber(*args)
setMidiNoteNumber(self, nn)
 
Set the fractional MIDI note number assigned to this SpcFile
If the sound has no definable pitch, use note number 60.0 (the default).
setSampleRate(*args)
setSampleRate(self, rate)
 
Set the sampling freqency in Hz for the spc data in this
SpcFile. This is the rate at which Kyma must be running to ensure
proper playback of bandwidth-enhanced Spc data.
The default sample rate is 44100 Hz.
write(*args)
write(self, filename, enhanced=True, endApproachTime=0)
write(self, filename, enhanced=True)
write(self, filename)
 
Export the envelope parameter streams represented by this SpcFile to
the file having the specified filename or path. Export phase-correct 
bandwidth-enhanced envelope parameter streams if enhanced is true 
(the default), or pure sinsoidal streams otherwise.
 
A nonzero endApproachTime indicates that the Partials do not include a
release or decay, but rather end in a static spectrum corresponding to the
final Breakpoint values of the partials. The endApproachTime specifies how
long before the end of the sound the amplitude, frequency, and bandwidth
values are to be modified to make a gradual transition to the static spectrum.
 
If the endApproachTime is not specified, it is assumed to be zero, 
corresponding to Partials that decay or release normally.

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'SpcFile' objects>
list of weak references to the object (if defined)

 
class SpcFilePtr(SpcFile)
    
Method resolution order:
SpcFilePtr
SpcFile
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from SpcFile:
__del__(self, destroy=<built-in function delete_SpcFile>)
__del__(self)
 
Destroy this SpcFile.
__getattr__ lambda self, name
__repr__(self)
__setattr__ lambda self, name, value
addMarkers(*args)
addMarkers(self, markers)
 
Append a collection of Markers for to the existing
set of Markers for this SpcFile.
addPartial(*args)
addPartial(self, p)
addPartial(self, p, label)
 
Add the specified Partial to the enevelope parameter streams
represented by this SpcFile. If a label is specified, use that
label, instead of the Partial's label, for the Partial added to
the SpcFile.
 
SpcFile can contain only one Partial having any given (non-zero) 
label, so an added Partial will replace a Partial having the 
same label, if such a Partial exists.
 
This may throw an InvalidArgument exception if an attempt is made
to add unlabeled Partials, or Partials labeled higher than the
allowable maximum.
addPartials(*args)
addPartials(self, l)
 
Add all the Partials in a PartialList to this SpcFile.
                        
SpcFile can contain only one Partial having any given (non-zero) 
label, so an added Partial will replace a Partial having the 
same label, if such a Partial exists.
 
This may throw an InvalidArgument exception if an attempt is made
to add unlabeled Partials, or Partials labeled higher than the
allowable maximum.
markers(*args)
markers(self) -> MarkerVector
 
Return the (possibly empty) collection of Markers for 
this SpcFile.
midiNoteNumber(*args)
midiNoteNumber(self) -> double
partials(*args)
partials(self) -> PartialList
 
Return a copy of the Partials represented by this SdifFile.
sampleRate(*args)
sampleRate(self) -> double
 
Return the sample rate for this SpcFile in Hz.
setMarkers(*args)
setMarkers(self, markers)
 
Specify a new (possibly empty) collection of Markers for
this SpcFile.
setMidiNoteNumber(*args)
setMidiNoteNumber(self, nn)
 
Set the fractional MIDI note number assigned to this SpcFile
If the sound has no definable pitch, use note number 60.0 (the default).
setSampleRate(*args)
setSampleRate(self, rate)
 
Set the sampling freqency in Hz for the spc data in this
SpcFile. This is the rate at which Kyma must be running to ensure
proper playback of bandwidth-enhanced Spc data.
The default sample rate is 44100 Hz.
write(*args)
write(self, filename, enhanced=True, endApproachTime=0)
write(self, filename, enhanced=True)
write(self, filename)
 
Export the envelope parameter streams represented by this SpcFile to
the file having the specified filename or path. Export phase-correct 
bandwidth-enhanced envelope parameter streams if enhanced is true 
(the default), or pure sinsoidal streams otherwise.
 
A nonzero endApproachTime indicates that the Partials do not include a
release or decay, but rather end in a static spectrum corresponding to the
final Breakpoint values of the partials. The endApproachTime specifies how
long before the end of the sound the amplitude, frequency, and bandwidth
values are to be modified to make a gradual transition to the static spectrum.
 
If the endApproachTime is not specified, it is assumed to be zero, 
corresponding to Partials that decay or release normally.

Data and other attributes inherited from SpcFile:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'SpcFile' objects>
list of weak references to the object (if defined)

 
Functions
       
channelize(*args)
channelize(partials, refFreqEnvelope, refLabel)
 
Label Partials in a PartialList with the integer nearest to the
amplitude-weighted average ratio of their frequency envelope to a
reference frequency envelope. The frequency spectrum is
partitioned into non-overlapping channels whose time-varying
center frequencies track the reference frequency envelope. The
reference label indicates which channel's center frequency is
exactly equal to the reference envelope frequency, and other
channels' center frequencies are multiples of the reference
envelope frequency divided by the reference label. Each Partial in
the PartialList is labeled with the number of the channel that
best fits its frequency envelope. The quality of the fit is
evaluated at the breakpoints in the Partial envelope and weighted
by the amplitude at each breakpoint, so that high- amplitude
breakpoints contribute more to the channel decision. Partials are
labeled, but otherwise unmodified. In particular, their
frequencies are not modified in any way.
collate(*args)
collate(partials, startLabel=0)
collate(partials)
 
Collate unlabeled (zero-labeled) Partials into the smallest-possible 
number of Partials that does not combine any overlapping Partials.
Collated Partials appear at the end of the sequence, after all 
labeled Partials.
 
If startLabel is specified (and non-zero), collated Partials
are assigned labels sequentially starting with startLabel.
copyLabeled(*args)
copyLabeled(partials, label) -> PartialList
 
Copy Partials in the source PartialList having the specified label
into a new PartialList. The source PartialList is unmodified.
createFreqReference(*args)
createFreqReference(partials, minFreq, maxFreq, numSamps) -> LinearEnvelope
createFreqReference(partials, minFreq, maxFreq) -> LinearEnvelope
 
Return a newly-constructed LinearEnvelope by sampling the
frequency envelope of the longest Partial in a PartialList. Only
Partials whose frequency at the Partial's loudest (highest
amplitude) breakpoint is within the given frequency range are
considered.
 
If the number of sample points is not specified, then the longest
Partial's frequency envelope is sampled every 30 ms (No fewer than
10 samples are used, so the sampling maybe more dense for very
short Partials.)
 
For very simple sounds, this frequency reference may be a good
first approximation to a reference envelope for channelization
(see channelize).
crop(*args)
crop(partials, t1, t2)
 
Trim Partials by removing Breakpoints outside a specified time span.
Insert a Breakpoint at the boundary when cropping occurs.
dilate(*args)
dilate(partials, ivec, tvec)
 
Dilate Partials in a PartialList according to the given initial
and target time points. Partial envelopes are stretched and
compressed so that temporal features at the initial time points
are aligned with the final time points. Time points are sorted, so
Partial envelopes are are only stretched and compressed, but
breakpoints are not reordered. Duplicate time points are allowed.
There must be the same number of initial and target time points.
distill(*args)
distill(partials)
 
Distill labeled (channelized) Partials in a PartialList into a 
PartialList containing at most one Partial per label. Unlabeled 
(zero-labeled) Partials are left unmodified at the end of the 
distilled Partials.
exportAiff(*args)
exportAiff(path, samples, samplerate=44100.0, bitsPerSamp=16)
exportAiff(path, samples, samplerate=44100.0)
exportAiff(path, samples)
 
Export audio samples stored in a vector to an AIFF file having the
specified number of channels and sample rate at the given file
path (or name). The floating point samples in the vector are
clamped to the range (-1.,1.) and converted to integers having
bitsPerSamp bits. The default values for the sample rate and
sample size, if unspecified, are 44100 Hz (CD quality) and 16 bits
per sample, respectively.
exportSdif(*args)
exportSdif(path, partials)
 
Export Partials in a PartialList to a SDIF file at the specified
file path (or name). SDIF data is written in the Loris RBEP
format. For more information about SDIF, see the SDIF website at:
    www.ircam.fr/equipes/analyse-synthese/sdif/
exportSpc(*args)
exportSpc(path, partials, midiPitch, enhanced, endApproachTime)
exportSpc(path, partials, midiPitch, enhanced)
exportSpc(path, partials, midiPitch)
 
Export Partials in a PartialList to a Spc file at the specified
file path (or name). The fractional MIDI pitch must be specified.
The optional enhanced parameter defaults to true (for
bandwidth-enhanced spc files), but an be specified false for
pure-sines spc files. The optional endApproachTime parameter is in
seconds; its default value is zero (and has no effect). A nonzero
endApproachTime indicates that the PartialList does not include a
release, but rather ends in a static spectrum corresponding to the
final breakpoint values of the partials. The endApproachTime
specifies how long before the end of the sound the amplitude,
frequency, and bandwidth values are to be modified to make a
gradual transition to the static spectrum.
extractLabeled(*args)
extractLabeled(partials, label) -> PartialList
 
Extract Partials in the source PartialList having the specified
label and return them in a new PartialList.
importSdif(*args)
importSdif(path) -> PartialList
 
Import Partials from an SDIF file at the given file path (or
name), and return them in a PartialList. Loris can import
SDIF data stored in 1TRC format or in the Loris RBEP format.
For more information about SDIF, see the SDIF website at:
    www.ircam.fr/equipes/analyse-synthese/sdif/
importSpc(*args)
importSpc(path) -> PartialList
 
Import Partials from an Spc file at the given file path (or
name), and return them in a PartialList.
morph(*args)
morph(src0, src1, ffreq, famp, fbw) -> PartialList
morph(src0, src1, freqweight, ampweight, bwweight) -> PartialList
 
Morph labeled Partials in two PartialLists according to the
given frequency, amplitude, and bandwidth (noisiness) morphing
envelopes, and return the morphed Partials in a PartialList.
Loris morphs Partials by interpolating frequency, amplitude,
and bandwidth envelopes of corresponding Partials in the
source PartialLists. For more information about the Loris
morphing algorithm, see the Loris website:
    www.cerlsoundgroup.org/Loris/
removeLabeled(*args)
removeLabeled(partials, label)
 
Remove from a PartialList all Partials having the specified label.
resample(*args)
resample(partials, interval)
 
Resample all Partials in a PartialList using the specified
sampling interval, so that the Breakpoints in the Partial
envelopes will all lie on a common temporal grid. The Breakpoint
times in resampled Partials will comprise a contiguous sequence of
integer multiples of the sampling interval, beginning with the
multiple nearest to the Partial's start time and ending with the
multiple nearest to the Partial's end time. Resampling is
performed in-place.
scaleAmp(*args)
scaleAmp(partials, ampEnv)
scaleAmp(partials, val)
 
Shift the pitch of all Partials in a PartialList according to 
the given pitch envelope. The pitch envelope is assumed to have 
units of cents (1/100 of a halfstep).
scaleBandwidth(*args)
scaleBandwidth(partials, bwEnv)
scaleBandwidth(partials, val)
 
Shift the pitch of all Partials in a PartialList according to 
the given pitch envelope. The pitch envelope is assumed to have 
units of cents (1/100 of a halfstep).
scaleFrequency(*args)
scaleFrequency(partials, freqEnv)
scaleFrequency(partials, val)
 
Shift the pitch of all Partials in a PartialList according to 
the given pitch envelope. The pitch envelope is assumed to have 
units of cents (1/100 of a halfstep).
scaleNoiseRatio(*args)
scaleNoiseRatio(partials, noiseEnv)
scaleNoiseRatio(partials, val)
 
Shift the pitch of all Partials in a PartialList according to 
the given pitch envelope. The pitch envelope is assumed to have 
units of cents (1/100 of a halfstep).
shiftPitch(*args)
shiftPitch(partials, pitchEnv)
shiftPitch(partials, val)
 
Shift the pitch of all Partials in a PartialList according to 
the given pitch envelope. The pitch envelope is assumed to have 
units of cents (1/100 of a halfstep).
shiftTime(*args)
shiftTime(partials, offset)
 
Shift the time of all the Breakpoints in a Partial by a constant
amount (in seconds).
sift(*args)
sift(partials)
 
Eliminate overlapping Partials having the same label
(except zero). If any two partials with same label
overlap in time, keep only the longer of the two.
Set the label of the shorter duration partial to zero.
sortByLabel(*args)
sortByLabel(partials)
 
Sort the Partials in a PartialList in order of increasing label.
The sort is stable; Partials having the same label are not
reordered.
synthesize(*args)
synthesize(partials, srate=44100.0) -> DoubleVector
synthesize(partials) -> DoubleVector
 
Synthesize Partials in a PartialList at the given sample rate, and
return the (floating point) samples in a vector. The vector is
sized to hold as many samples as are needed for the complete
synthesis of all the Partials in the PartialList. If the sample
rate is unspecified, the deault value of 44100 Hz (CD quality) is
used.
timeSpan(*args)
timeSpan(partials, tmin_out, tmax_out)
 
Return the minimum start time and maximum end time
of all Partials in this PartialList.
version(*args)
version() -> char
 
Return a string describing the Loris version number.