normalizeDb() — ui Function Reference
Architecture documentation for the normalizeDb() function in elevenlabs.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c32d7dc1_3436_13f7_1100_8c3618d7d9f1["normalizeDb()"] 140880de_8350_c565_0d8f_48f12ee18f06["elevenlabs.tsx"] c32d7dc1_3436_13f7_1100_8c3618d7d9f1 -->|defined in| 140880de_8350_c565_0d8f_48f12ee18f06 309376d6_42d7_5ee3_cee2_ca32001fcef1["useMultibandVolume()"] 309376d6_42d7_5ee3_cee2_ca32001fcef1 -->|calls| c32d7dc1_3436_13f7_1100_8c3618d7d9f1 style c32d7dc1_3436_13f7_1100_8c3618d7d9f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/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)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does normalizeDb() do?
normalizeDb() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/elevenlabs.tsx.
Where is normalizeDb() defined?
normalizeDb() is defined in apps/v4/registry/bases/radix/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