Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » Musical Signal Processing with LabVIEW (All Modules) » Localization Cues

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Endorsed by Endorsed (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
  • IEEE-SPS display tagshide tags

    This collection is included inLens: IEEE Signal Processing Society Lens
    By: IEEE Signal Processing Society

    Comments:

    "A multimedia educational resource for signal processing students and faculty."

    Click the "IEEE-SPS" link to see all content they endorse.

    Click the tag icon tag icon to display tags associated with this content.

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • NSF Partnership display tagshide tags

    This collection is included inLens: NSF Partnership in Signal Processing
    By: Sidney Burrus

    Click the "NSF Partnership" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

  • National Instruments display tagshide tags

    This collection is included in aLens by: National Instruments

    Comments:

    "Developed by Rose Hulman Prof Ed Doering, this collection is a multimedia educational resource for students and faculty that augments traditional DSP courses and courses that cover music […]"

    Click the "National Instruments" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • Evowl

    This collection is included inLens: Rice LMS's Lens
    By: Rice LMS

    Comments:

    "Language: en Supporting Agencies: Rose-Hulman Institute of Technology"

    Click the "Evowl" link to see all content selected in this lens.

  • Lens for Engineering

    This module and collection are included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

  • NI Signal Processing display tagshide tags

    This collection is included inLens: Digital Signal Processing with NI LabVIEW and the National Instruments Platform
    By: Sam Shearman

    Comments:

    "This online course covers signal processing concepts using music and audio to keep the subject relevant and interesting. Written by Prof. Ed Doering from the Rose-Hulman Institute of Technology, […]"

    Click the "NI Signal Processing" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Localization Cues

Module by: Ed Doering. E-mail the authorEdited By: Erik Luther, Sam Shearman

Summary: Learn about two localization cues called interaural intensity difference (IID) and interaural timing difference (ITD), and learn how to create a LabVIEW implementation that places a virtual sound source in a stereo sound field.

Table 1
LabVIEWq.png This module refers to LabVIEW, a software development environment that features a graphical programming language. Please see the LabVIEW QuickStart Guide module for tutorials and documentation that will help you:
• Apply LabVIEW to Audio Signal Processing
• Get started with LabVIEW
• Obtain a fully-functional evaluation edition of LabVIEW

Introduction

Our enjoyment of synthesized or recorded sound is greatly enhanced when we perceive the actual locations of the various musicians on stage. In a high quality stereo recording of a jazz trio, for example, you can tell that the drummer is perhaps located slightly to the left of center, the saxophonist is on stage right and the bass player is on stage left. If you have ever flipped on the "mono" (monaural) switch on your stereo amplifier, then you know that the resulting sound is comparatively unpleasant, especially when wearing headphones.

We live in a three-dimensional soundfield, and our ears continually experience slightly different versions of any given sound. These variations allow us to place (or localize) the sound source, even when we cannot see it.

In this module, learn about two localization cues called interaural intensity difference and interaural timing difference, abbreviated IID and ITD, respectively. Each cue relies on presenting a slightly different version of a sound to each ear.

Interaural Intensity Difference (IID)

The interaural intensity difference (IID) localization cue relies on the fact that an off-center source produces a higher intensity sound in one ear compared to the other. This technique is also called intensity panning, and is most effective when the listener is wearing headphones. When a multi-speaker arrangement is used in a room, a given sound propagates to both ears. Lower frequencies have longer acoustic wavelengths and are therefore less directional than higher frequency sounds. Consequently, the IID effect works better at higher frequencies above 1400 Hz (Dodge and Jerse, 1997).

The Figure 1 screencast video continues the discussion by deriving the equations needed to implement the IID effect using a two-speaker arrangement.

Figure 1: [video] Development of the equations needed to implement the interaural intensity difference (IID) localization cue
Figure 1 (snd_localization-iid.html)

Interaural Timing Difference (IID)

The interaural timing difference (ITD) localization cue relies on the fact that sound waves from an off-center source arrives at one ear slightly after the other ear. We can perceive this slight difference in time down to about 20 microseconds (Dodge and Jerse, 1997), and this difference helps us to place the sound source either to the left or right. The ITD cue works best in the lower frequency range of 270 to 500 Hz (Dodge and Jerse, 1997).

The Figure 2 screencast video continues the discussion by deriving the equation needed to implement the ITD effect using a two-speaker arrangement.

Figure 2: [video] Development of the equation needed to implement the interaural timing difference (ITD) localization cue
Figure 2 (snd_localization-itd.html)

Project: Implement the IID and ITD Localization Cues in LabVIEW

You can easily experiment with both the IID and ITD localization cues in LabVIEW. The cues are probably easier to perceive when you choose a speech signal for your source.

The ITD cue requires a delay or time shift between the two stereo channels. The delay line can be constructed as a digital filter with the transfer function shown in (Reference):

H(z)= z N 1 H(z)= z N 1 MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8YjY=vipgYlh9vqqj=hEeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9q8qqaq=dir=f0=yqaiVgFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamisaiaacIcacaWG6bGaaiykaiabg2da9maalaaabaGaamOEamaaCaaaleqabaGaeyOeI0IaamOtaaaaaOqaaiaaigdaaaaaaa@3D28@
(1)

Stated as a difference equation, the filter is y(n)=x(nN) y(n)=x(nN) MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8YjY=vipgYlh9vqqj=hEeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9q8qqaq=dir=f0=yqaiVgFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyEaiaacIcacaWGUbGaaiykaiabg2da9iaadIhacaGGOaGaamOBaiabgkHiTiaad6eacaGGPaaaaa@3E95@ , which states that the output is the same as the input but delayed by N samples. The forward (or "b") coefficients are therefore zero for all but b N =1 b N =1 MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8YjY=vipgYlh9vqqj=hEeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9q8qqaq=dir=f0=yqaiVgFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOyamaaBaaaleaacaWGobaabeaakiabg2da9iaaigdaaaa@38ED@ , and the reverse (or "a") coefficients are zero for all but a 0 =1 a 0 =1 MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8YjY=vipgYlh9vqqj=hEeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9q8qqaq=dir=f0=yqaiVgFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyyamaaBaaaleaacaaIWaaabeaakiabg2da9iaaigdaaaa@38D3@ .

LabVIEW.png The Figure 3 screencast video provides LabVIEW coding tips to implement the equations and to generate a stereo audio signal.

Figure 3: [video] LabVIEW coding tips for the IID and ITD localization cues
Figure 3 (snd_localization-build.html)

References

  • Dodge, C., and T.A. Jerse, "Computer Music: Synthesis, Composition, and Performance," 2nd ed., Schirmer Books, 1997, ISBN 0-02-864682-7

Collection Navigation

Content actions

Download module as:

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks