Skip to content

Instantly share code, notes, and snippets.

@reborafs
reborafs / lundeby.py
Created June 11, 2020 18:41
Lundeby Algorithm for Python
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)
@reborafs
reborafs / filtr.py
Last active June 8, 2020 00:23
Funciones para TP - Grupo 2
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.