Sound Spatialization With MPTK

Maestro MPTK includes a built-in spatial audio system that allows sounds to react naturally to distance and orientation relative to the listener — without requiring any external plugin.

This integrated solution is designed to cover the most common spatial audio needs in games and interactive applications, while remaining lightweight, easy to configure, and fully consistent across all MPTK prefabs.

What Spatialize sound is?

Audio Spatializers use “physical” characteristics of a scene, such as the distance and angle between an AudioListener and an AudioSource, to modify the properties of sound transmitted to the user. Spatialization can improve the perception that a sound originates from a specific location in a scene.

Built-in MPTK Spatialization (No Plugin Required)

MPTK provides its own spatialization features directly inside its audio engine:

  • Distance-based attenuation (all version) using Unity’s built-in rolloff, min/max distance, and volume curves
  • Orientation-based audio behavior (Pro version), including:
    • smooth left/right stereo panning
    • front/back volume attenuation
    • subtle filtering when the sound source is behind the listener

These effects are applied automatically based on the relative position and orientation between the sound source and the AudioListener.

  • No additional plugin is required.
  • No scripting is needed for standard use cases.
  • The behavior is identical across all MPTK prefabs (MidiFilePlayer, MidiStreamPlayer, etc.).

This makes MPTK spatialization ideal for:

  • moving sound sources
  • musical objects in a 3D scene
  • interactive audio feedback
  • lightweight and performant spatial audio setups

How It Works

By default, the camera holds the AudioListener.
When an MPTK prefab is placed in the scene, its audio output is automatically processed according to:

  • the distance from the listener
  • the angle relative to the listener’s forward direction

As the source moves:

  • sounds smoothly pan left and right
  • volume decreases with distance
  • sounds become slightly attenuated and filtered when coming from behind

These cues closely match how sound is perceived in real life and significantly improve immersion — even without full HRTF processing.

When Should You Use an External Spatializer Plugin?

While MPTK’s built-in spatialization covers most needs, Unity spatializer plugins can still be used for advanced audio simulations, such as:

  • sound occlusion by geometry
  • obstruction and diffraction
  • environment-based reflections
  • binaural or HRTF-based rendering

MPTK has been tested with Unity external spatializers such as:

Tips:

  • With an external spatializer, disable MPTK spatialization properties, Attenuation and Orientation in the MPTK inspector. So, MPTK will not change settings in the 3D Audio Source.
  • Do not forget to manually (or by script) defined AudioSource Settings for 3D (see Unity documentation).

Choosing the Right Approach

Use case Recommended solution
Basic 3D positioning MPTK built-in spatialization
Musical objects in a scene MPTK built-in spatialization
Lightweight, no-setup solution MPTK built-in spatialization
Occlusion / obstruction External spatializer plugin + Your AudioSource Settings.
HRTF / binaural audio External spatializer plugin + Your AudioSource Settings.

 

Summary

  • MPTK includes a ready-to-use spatial audio system

  • It works out of the box, with no plugin and no scripting

  • It handles distance and orientation in a perceptually convincing way

  • External plugins remain available for advanced acoustic effects

Start simple with MPTK’s built-in spatialization — and extend it only if your project really needs it.

Get Creative Tools from the Unity store

If you enjoy these creative tools, please leave a review on the Unity Asset Store! Your feedback and support motivate me to keep improving them and creating new features.

Skills for AI assistants

Maestro MPTK now includes AI Skills to help your favorite AI assistant build projects with Maestro! Don’t miss this detailed guide.

AI Skills for Creature Kit are in development.

Note: The custom MPTK LLM has been deprecated.

Contact

If you have questions, please don’t hesitate to contact us via the dedicated Unity forum or our Discord  channel.

Reach the Discord archive by topic.

We are always happy to discuss your projects!

Creature Kit – Wild Beasts Demo

Creature Kit – Beast Generator – Creating a Beast in Unity

Add MIDI Music With 3 Clicks for Free

Midi Synth : Real Time Voice Effect Change

Sound Spatialisation, MPTK is ready for Virtual Reality [Pro]

Euclidean Rhythm demo

Demo on itch!