This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def lundeby(impulse, fs): | |
pass | |
import soundfile as sf | |
import matplotlib.pyplot as plt | |
from funciones.process import smoothing, logNorm, filtr | |
#IMPORTO LA RESPUESTA AL IMPULSO Y LA SUAVIZO. (EN DB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.signal import iirfilter, sosfreqz, sosfilt | |
import matplotlib.pyplot as plt | |
def filtr(audio, fs, bandwidth = 'octave'): | |
''' | |
Filters an ndarray numpy object `audio` with an `sos` digital bandpass | |
filter, for a given sampling frequency `fs`, and returns a list with each | |
band octave or one-third octave filtered audio. | |