BroAudio
Quick StartScripting APIAsset Store
  • Overview
    • Introduction
    • Getting Started
    • Compatibility
  • Core Features
    • Library Manager
      • Create The Library
      • Design The Sound
        • 🔊Volume
        • 🎚️Fading
        • 🔁Looping
        • 🎲Randomization
        • 💪Velocity
        • 🎛️Spatial & Mix
    • Audio Player
      • Music Player
      • Dominator Player
    • Playback Group
    • Audio Effect
    • No-Code Components
      • Sound Source
      • Sound Volume
      • Spectrum Analyzer
    • Addressables
    • Customization
  • Designs
    • Audio Mixer
  • Tools
    • Audio Clip Editor
    • Audio Effect Editor
    • Useful Attrubutes
  • Reference
    • Scripting API
      • Class
        • BroAudio
        • SoundSource
        • BroAdvice
      • Interface
        • IAudioPlayer
        • IMusicPlayer
        • IPlayerEffect
        • IAutoResetWaitable
        • IAudioSourceProxy
      • Struct
        • SoundID
        • Effect
        • Fading
      • Enums
        • BroAudioType
        • EffectType
        • StopMode
        • Transition
        • Ease
    • Unity API Integration
    • Audio Terminology
    • Technical Details
  • Others
    • Release Notes
    • Known Issues
      • Duplicate SoundID Issue
    • Roadmap
    • Support & Contact
Powered by GitBook
On this page
  • Sound Source
  • FFT Settings
  • Amplitube Settings
  • Bands
  • Public Methods
  1. Core Features
  2. No-Code Components

Spectrum Analyzer

Getting the spectrum data from an audio source

Last updated 3 months ago

Sound Source

Assign a SoundSource here to obtain spectrum data when it plays. This field is optional, meaning it can be left null, and the spectrum data source can be set via code at runtime.

FFT Settings

FFT (Fast Fourier Transform) is an algorithm used to extract frequency information from a signal. A larger size provides better precision but comes at a higher performance cost.

Block Size Number of data samples used for FFT, which can also be considered as frequency resolution. The bigger the size is, the better precision, but also higher performance cost.

Channel The target channel from which the spectrum is sampled.

Amplitube Settings

Instead of using raw spectrum data, BroAudio processes it into amplitudes for easier use and better readability.

Metering The metering type used to calculate the amplitude of each band during updates.

Attack The time it takes to raise a level of 20dB in milliseconds

Decay The time it takes to reduce a level of 20dB in milliseconds

Smooth Increase this value to smooth the spectrum changes. The higher the value, the smoother it becomes

Bands

Defines the frequency bands used for analysis.

Frequency The starting frequency of the band. You can either enter a value manually or adjust it by dragging the lines in the spectrum view above.

Weight Adjusts the band's response sensitivity, allowing you to emphasize certain frequencies.

Public Methods

Method
Return
Parameters
Description

SetSource

void

Window Type The type to use when sampling.

Set the source for fetching spectrum datas. It should be called when the field is empty.

FFTWindow
IAudioPlayer
SoundSource