Abstract
MATLAB is an extremely powerful tool for dealing with sounds. You can use MATLAB for sound synthesis as well as for sound analysis. It is possible to create your own custom sound from scratch, and it is also possible to edit at will an existing sound. Furthermore, MATLAB can be used to understand several acoustical characteristics of digital sounds. This chapter shows how to do all of these.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Although MATLAB enables the generation of sounds at several sample rates, 44,100 Hz is the most used. This is, for example, the sample rate of an audio CD.
- 2.
Note that wavplay is only for use with windows machines.
- 3.
Note that it is possible to generate white noises according to various distributions. For example, the rand function returns random and uniformly distributed numbers. Therefore, our white noise would be a “uniform white noise.” If we use randn, a function that generates random numbers according to the normal distribution, we would have a Gaussian white noise instead. See, for instance, Wikipedia for further details.
- 4.
Convolution is an operation done in time. Thanks to Fourier transform properties, the convolution operation in time become a simple product in frequency between the Fourier transform of the noise and the filter frequency response.
References
Darwin CJ, Ciocca V (1992) Grouping in pitch perception: effects of onset asynchrony and ear of presentation of a mistuned component. J Acoust Soc Am 91:3381–3390
Giordano BL, McAdams S (2006) Material identification of real impact sounds: effects of size variation in steel, glass, wood, and plexiglas plates. J Acoust Soc Am 119:1171–1181
Houtgast T (1972) Psychophysical evidence for lateral inhibition in hearing. J Acoust Soc Am 51:1885–1894
Moore BCJ (2003) An introduction to the psychology of hearing, 5th edn. Academic, San Diego
Sekuler R, Sekuler AB, Lau R (1997) Sound alters visual motion perception. Nature 385: 308
Suggested Readings
There are a number of MATLAB tools developed by researchers that can be used in audition. Here is a certainly incomplete list of the available tools:
Grassi M, Soranzo A (2009) MLP: a MATLAB toolbox for rapid and reliable auditory threshold estimations. Behav Res Methods 41:20–28 (This paper implements several psychoacoustic experiment together with sound generators and modifiers.)
Peeters G, Giordano BL, Susini P, Misdariis N, McAdams S (2011) The Timbre Toolbox: Extracting audio descriptors from musical signals. J Acoust Soc Am 130:2902–2916 (This paper shows a toolbox for the analysis of musical signals.)
Malcom Stanley has released a toolbox that implements several popular auditory models:
Pérez E, Rodriguez-Esteban R (2006) Oreja: a MATLAB environment for the design of psychoacoustic stimuli. Behav Res Methods 38:574–578 (The Oreja software package was designed to study speech intelligibility. It is a tool that allows manipulation of speech signals to facilitate study of human speech perception.)
Readers interested in MATLAB tools for audition should take a look at the following journals: Behavior Research Methods and the Journal of Neuroscience Methods. Both journals often publish MATLAB tools for audition.
Readers Interested in more technical and advanced audio processing should read the following book:
McLoughlin I (2009) Applied speech and audio processing: With Matlab examples. Cambridge: Cambridge University Press
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Borgo, M., Soranzo, A., Grassi, M. (2012). A Better Sound. In: MATLAB for Psychologists. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-2197-9_5
Download citation
DOI: https://doi.org/10.1007/978-1-4614-2197-9_5
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-2196-2
Online ISBN: 978-1-4614-2197-9
eBook Packages: Behavioral ScienceBehavioral Science and Psychology (R0)