Skip to main content

A Better Sound

  • Chapter
  • First Online:
MATLAB for Psychologists

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 89.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 2.

    Note that wavplay is only for use with windows machines.

  3. 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. 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

    Article  PubMed  Google Scholar 

  • 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

    Article  PubMed  Google Scholar 

  • Houtgast T (1972) Psychophysical evidence for lateral inhibition in hearing. J Acoust Soc Am 51:1885–1894

    Article  PubMed  Google Scholar 

  • Moore BCJ (2003) An introduction to the psychology of hearing, 5th edn. Academic, San Diego

    Google Scholar 

  • Sekuler R, Sekuler AB, Lau R (1997) Sound alters visual motion perception. Nature 385: 308

    Google Scholar 

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:

    Google Scholar 

  • 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.)

    Article  PubMed  Google Scholar 

  • 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.)

    Article  PubMed  Google Scholar 

  • Malcom Stanley has released a toolbox that implements several popular auditory models:

    Google Scholar 

  • http://cobweb.ecn.purdue.edu/∼malcolm/interval/1998-010/

  • 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.)

    Article  PubMed  Google Scholar 

  • 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.

    Google Scholar 

  • Readers Interested in more technical and advanced audio processing should read the following book:

    Google Scholar 

  • McLoughlin I (2009) Applied speech and audio processing: With Matlab examples. Cambridge: Cambridge University Press

    Book  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics