Percept is a Matlab toolbox for auditory research.
Source code can be downloaded here: Percept.
Happy Coding!