mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 21:57:16 +01:00
Micro-step toward unified FFT API
This commit is contained in:
parent
34f0ed991f
commit
6609ea1564
3 changed files with 16 additions and 9 deletions
|
|
@ -298,7 +298,7 @@ function render_inline (ctx, w, max_h)
|
|||
|
||||
if b1 >= b0 and b1 <= bins and b0 >= 0 then
|
||||
for i = b0, b1 do
|
||||
local level = gaindb + fft:power_at_bin (i, pink and i or 1) -- pink ? i : 1
|
||||
local level = gaindb + fft:power_at_bin (i, 1, pink)
|
||||
if level > -dbrange then
|
||||
local p = (dbrange + level) / dbrange
|
||||
if p > pk then pk = p; end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue