From 874e2a5c2967a1b4ac38d1d945880ccb993bf752 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 3 Oct 2020 08:54:43 -0400 Subject: [PATCH] change gain structure on ladder bpf2 --- LadderBPF.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/LadderBPF.lua b/LadderBPF.lua index 1fbf096..0084f39 100644 --- a/LadderBPF.lua +++ b/LadderBPF.lua @@ -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 = {}, @@ -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