Module Expr Str ImportFrom alias Import alias identifier Import alias ImportFrom alias ImportFrom alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Raise NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Pass orelse Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Pass orelse Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Pass orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str
N/A N/A 
Octave
======

Module for working with octaves.

The following is an example on how to use :class:`acoustics.octave.Octave`.

.. literalinclude:: ../examples/octave.py

 __future__ division N/A numpy np N/A acoustics acoustics.standards.iec_61260_1_2014 index_of_frequency acoustics.standards.iec_61260_1_2014 REFERENCE_FREQUENCY REFERENCE exact_center_frequency N/A N/A frequency fraction n ref N/A None 1 None REFERENCE N/A N/A Exact center frequency.
    
    :param frequency: Frequency within the band.
    :param fraction: Band designator.
    :param n: Index of band.
    :param ref: Reference frequency.
    :return: Exact center frequency for the given frequency or band index.
    
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.exact_center_frequency`
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.index_of_frequency`
    
     N/A N/A frequency None N/A N/A n N/A N/A N/A N/A acoustics standards iec_61260_1_2014 index_of_frequency frequency fraction fraction ref ref N/A N/A N/A N/A N/A acoustics standards iec_61260_1_2014 exact_center_frequency n fraction fraction ref ref N/A nominal_center_frequency N/A N/A frequency fraction n N/A None 1 None N/A N/A Nominal center frequency.
    
    :param frequency: Frequency within the band.
    :param fraction: Band designator.
    :param n: Index of band.
    :returns: The nominal center frequency for the given frequency or band index.
    
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.exact_center_frequency`
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.nominal_center_frequency`
    
    .. note:: Contrary to the other functions this function silently assumes 1000 Hz reference frequency.
    
     N/A center N/A exact_center_frequency frequency fraction n N/A N/A N/A N/A N/A acoustics standards iec_61260_1_2014 nominal_center_frequency center fraction N/A lower_frequency N/A N/A frequency fraction n ref N/A None 1 None REFERENCE N/A N/A Lower band-edge frequency.
    
    :param frequency: Frequency within the band.
    :param fraction: Band designator.
    :param n: Index of band.
    :param ref: Reference frequency.
    :returns: Lower band-edge frequency for the given frequency or band index.
    
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.exact_center_frequency`
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.lower_frequency`
    
     N/A center N/A exact_center_frequency frequency fraction n ref ref N/A N/A N/A N/A N/A acoustics standards iec_61260_1_2014 lower_frequency center fraction N/A upper_frequency N/A N/A frequency fraction n ref N/A None 1 None REFERENCE N/A N/A Upper band-edge frequency.
    
    :param frequency: Frequency within the band.
    :param fraction: Band designator.
    :param n: Index of band.
    :param ref: Reference frequency.
    :returns: Upper band-edge frequency for the given frequency or band index.
    
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.exact_center_frequency`
    .. seealso:: :func:`acoustics.standards.iec_61260_1_2014.upper_frequency`
    
     N/A center N/A exact_center_frequency frequency fraction n ref ref N/A N/A N/A N/A N/A acoustics standards iec_61260_1_2014 upper_frequency center fraction N/A N/A frequency_of_band N/A N/A N/A acoustics standards iec_61260_1_2014 exact_center_frequency N/A band_of_frequency index_of_frequency Octave N/A object N/A N/A 
    Class to calculate octave center frequencies.
     __init__ N/A N/A self fraction interval fmin fmax unique reference N/A 1 None None None False REFERENCE N/A N/A N/A self reference reference N/A 
        Reference center frequency :math:`f_{c,0}`.
         N/A N/A self fraction fraction N/A 
        Fraction of octave.
         N/A N/A N/A interval None N/A N/A fmin None N/A fmax None N/A N/A AttributeError N/A N/A self _interval N/A N/A np asarray interval N/A Interval N/A N/A self _fmin fmin N/A Minimum frequency of a range. N/A N/A self _fmax fmax N/A Maximum frequency of a range. N/A N/A self unique unique N/A Whether or not to calculate the requested values for every value of ``interval``. N/A fmin N/A N/A self N/A N/A N/A Minimum frequency of an interval. N/A N/A N/A self _fmin None N/A N/A N/A self _fmin N/A N/A N/A N/A self _interval None N/A N/A N/A N/A N/A self interval min N/A property fmin N/A N/A self x N/A N/A N/A N/A N/A self interval None N/A N/A N/A N/A N/A self _fmin x N/A N/A fmin setter fmax N/A N/A self N/A N/A N/A Maximum frequency of an interval. N/A N/A N/A self _fmax None N/A N/A N/A self _fmax N/A N/A N/A N/A self _interval None N/A N/A N/A N/A N/A self interval max N/A property fmax N/A N/A self x N/A N/A N/A N/A N/A self interval None N/A N/A N/A N/A N/A self _fmax x N/A N/A fmax setter interval N/A N/A self N/A N/A N/A Interval. N/A N/A self _interval N/A property interval N/A N/A self x N/A N/A N/A N/A N/A self _fmin N/A self _fmax N/A N/A N/A N/A N/A self _interval N/A N/A np asarray x N/A N/A interval setter _n N/A N/A self f N/A N/A N/A 
        Calculate the band ``n`` from a given frequency.
        
        :param f: Frequency
        
        See also :func:`band_of_frequency`.
         N/A N/A band_of_frequency f fraction N/A self fraction ref N/A self reference N/A _fc N/A N/A self n N/A N/A N/A 
        Calculate center frequency of band ``n``.
        
        :param n: band ``n`.
        
        See also :func:`frequency_of_band`.
         N/A N/A frequency_of_band n fraction N/A self fraction ref N/A self reference N/A n N/A N/A self N/A N/A N/A 
        Return band ``n`` for a given frequency.
         N/A N/A N/A N/A self interval None N/A self unique N/A N/A N/A N/A self _n N/A self interval N/A N/A N/A N/A np arange N/A N/A self _n N/A self fmin N/A N/A N/A self _n N/A self fmax 1 N/A property center N/A N/A self N/A N/A N/A 
        Return center frequencies :math:`f_c`.
        
        .. math::  f_c = f_{ref} \cdot 2^{n/N} \cdot 10^{\frac{3}{10N}}
        
         N/A n N/A self n N/A N/A N/A self _fc n N/A property bandwidth N/A N/A self N/A N/A N/A 
        Bandwidth of bands.
        
        .. math:: B = f_u - f_l
        
         N/A N/A N/A self upper N/A self lower N/A property lower N/A N/A self N/A N/A N/A 
        Lower frequency limits of bands.
        
        .. math:: f_l = f_c \cdot 2^{\frac{-1}{2N}}
        
        See also :func:`lower_frequency`.
         N/A N/A lower_frequency N/A self center N/A self fraction N/A property upper N/A N/A self N/A N/A N/A 
        Upper frequency limits of bands.
        
        .. math:: f_u = f_c \cdot 2^{\frac{+1}{2N}}
        
        See also :func:`upper_frequency`.
         N/A N/A upper_frequency N/A self center N/A self fraction N/A property N/A N/A __all__ N/A exact_center_frequency nominal_center_frequency lower_frequency upper_frequency index_of_frequency Octave frequency_of_band band_of_frequency