Home / Function/ normalizeDb() — ui Function Reference

normalizeDb() — ui Function Reference

Architecture documentation for the normalizeDb() function in elevenlabs.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  a41b87d8_5c56_21a6_835b_29ceb398dd8f["normalizeDb()"]
  a1a6ebaf_3f49_5bb2_b404_b9f06dce2cab["elevenlabs.tsx"]
  a41b87d8_5c56_21a6_835b_29ceb398dd8f -->|defined in| a1a6ebaf_3f49_5bb2_b404_b9f06dce2cab
  e44c6358_72b2_3916_b4f2_57dd5af079e2["useMultibandVolume()"]
  e44c6358_72b2_3916_b4f2_57dd5af079e2 -->|calls| a41b87d8_5c56_21a6_835b_29ceb398dd8f
  style a41b87d8_5c56_21a6_835b_29ceb398dd8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/blocks/elevenlabs.tsx lines 268–274

const normalizeDb = (value: number) => {
  if (value === -Infinity) return 0
  const minDb = -100
  const maxDb = -10
  const db = 1 - (Math.max(minDb, Math.min(maxDb, value)) * -1) / 100
  return Math.sqrt(db)
}

Subdomains

Frequently Asked Questions

What does normalizeDb() do?
normalizeDb() is a function in the ui codebase, defined in apps/v4/registry/bases/base/blocks/elevenlabs.tsx.
Where is normalizeDb() defined?
normalizeDb() is defined in apps/v4/registry/bases/base/blocks/elevenlabs.tsx at line 268.
What calls normalizeDb()?
normalizeDb() is called by 1 function(s): useMultibandVolume.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free