Merged master
This commit is contained in:
commit
bb2c0df427
@ -5,7 +5,7 @@
|
|||||||
// Description:
|
// Description:
|
||||||
// Signal generator implementation
|
// Signal generator implementation
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
#define TRACERPLUS (-5)
|
/* #define TRACERPLUS (-5) */
|
||||||
#include "lasp_siggen.h"
|
#include "lasp_siggen.h"
|
||||||
#include "lasp_alloc.h"
|
#include "lasp_alloc.h"
|
||||||
#include "lasp_assert.h"
|
#include "lasp_assert.h"
|
||||||
|
@ -466,8 +466,14 @@ class ThirdOctaveBankDesigner(FilterBankDesigner):
|
|||||||
def nominal_txt(self, x):
|
def nominal_txt(self, x):
|
||||||
# Put the nominal frequencies in a dictionary for easy access with
|
# Put the nominal frequencies in a dictionary for easy access with
|
||||||
# x as the key.
|
# x as the key.
|
||||||
|
if type(x) == int:
|
||||||
index = x - self.xs[0]
|
index = x - self.xs[0]
|
||||||
return self._nominal_txt[index]
|
return self._nominal_txt[index]
|
||||||
|
elif type(x) == list:
|
||||||
|
index_start = x[0] - self.xs[0]
|
||||||
|
index_stop = x[-1] - self.xs[0]
|
||||||
|
return self._nominal_txt[index_start:index_stop+1]
|
||||||
|
|
||||||
|
|
||||||
def band_limits(self, x, filter_class=0):
|
def band_limits(self, x, filter_class=0):
|
||||||
"""Returns the third octave band filter limits for filter designator x.
|
"""Returns the third octave band filter limits for filter designator x.
|
||||||
|
Loading…
Reference in New Issue
Block a user