Skip to content

Commit

Permalink
change gain structure on ladder bpf2
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperNiCd committed Oct 3, 2020
1 parent 46c8b36 commit 874e2a5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions LadderBPF.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ function BespokeBPF:onLoadGraph(channelCount)
self:createMonoBranch("bw",bw,"In",bw,"Out")
end

local function linMap(min,max,superCoarse,coarse,fine,superFine)
local map = app.LinearDialMap(min,max)
map:setSteps(superCoarse,coarse,fine,superFine)
return map
end

local freqGainMap = linMap(0,13290,11000,100,10,1)

local views = {
expanded = {"tune","freq","resonance","bandwidth"},
collapsed = {},
Expand Down Expand Up @@ -135,8 +143,7 @@ function BespokeBPF:onLoadViews(objects,branches)
biasMap = Encoder.getMap("filterFreq"),
biasUnits = app.unitHertz,
initialBias = 1,
gainMap = Encoder.getMap("freqGain"),
-- scaling = app.octaveScaling
gainMap = freqGainMap
}

return controls, views
Expand Down

0 comments on commit 874e2a5

Please sign in to comment.