view run.py @ 1:dc43033a2c20

* Added .dat files containing parameters and filter coefficients * In cortical_model: added get_specific_loudness() function and dependencies. * In cortical_model & in utils: fixed bugs created from changing variable and function names before last submit * In cortical_model: changed plot_excitation_tf (now named plot_excitation_response) to allow an input signal to be optionally given to be analysed. TODO: * In cortical_model: comment * In cortical_model: add partial loudness function
author Carl Bussey <c.bussey@se10.qmul.ac.uk>
date Sun, 02 Feb 2014 22:35:48 +0000
parents 5609fd93e935
children
line wrap: on
line source
import utils
import cortical_model as cm
import scipy.io.wavfile as wave
import os
import numpy as np

fs, wav = utils.load_wav_data("impulse.wav")
y = cm.gamma_tone_filter(wav, fs)