From 0cd67afd1506392422fa3229e88abc821535b09c Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 5 Dec 2022 17:15:21 -0500 Subject: [PATCH] cfg/proc_dict.cfg : Add limiter and DC filter --- src/cwtest/cfg/flow_proc_dict.cfg | 136 ++++++++++++++++++++++++++++-- 1 file changed, 130 insertions(+), 6 deletions(-) diff --git a/src/cwtest/cfg/flow_proc_dict.cfg b/src/cwtest/cfg/flow_proc_dict.cfg index b66172f..e1b5b11 100644 --- a/src/cwtest/cfg/flow_proc_dict.cfg +++ b/src/cwtest/cfg/flow_proc_dict.cfg @@ -122,12 +122,86 @@ pv_analysis: { vars: { - in: { type:audio, srcFl:true, doc:"Audio input." }, - hopSmpN: { type:uint, value: 128, doc:"Hop sample count." }, - wndSmpN: { type:uint, value: 512, doc:"Window sample count." }, - hzFl: { type:bool, value: false, doc:"Calculate frequency via the method of phase changeof each bin." }, - out: { type:spectrum, doc:"Spectrum output." } + in: { type:audio, srcFl:true, doc:"Audio input." }, + maxWndSmpN: { type:uint, value: 512, doc:"Maximum window sample count." }, + wndSmpN: { type:uint, value: 512, doc:"Window sample count." }, + hopSmpN: { type:uint, value: 128, doc:"Hop sample count." }, + hzFl: { type:bool, value: false, doc:"Calculate frequency via the method of phase changeof each bin." }, + out: { type:spectrum, doc:"Spectrum output." } } + + presets: { + + dry: { + wndSmpN: 512, + hopSmpN: 128 + } + + kc: { + wndSmpN: 512, + hopSmpN: 128 + } + + a: { + wndSmpN: 512, + hopSmpN: 128 + } + + b: { + wndSmpN: 512, + hopSmpN: 128 + } + + c: { + wndSmpN: 512, + hopSmpN: 128 + } + + d: { + wndSmpN: 512, + hopSmpN: 128 + } + + f_1: { + wndSmpN: 512, + hopSmpN: 128 + } + + f_2: { + wndSmpN: 512, + hopSmpN: 128 + } + + f_3: { + wndSmpN: 512, + hopSmpN: 128 + } + + f_4: { + wndSmpN: 512, + hopSmpN: 128 + } + + g: { + wndSmpN: 512, + hopSmpN: 128 + } + + g_a: { + wndSmpN: 512, + hopSmpN: 128 + } + + g_1_a: { + wndSmpN: 512, + hopSmpN: 128 + } + + g_1_d: { + wndSmpN: 512, + hopSmpN: 128 + } + } } pv_synthesis: { @@ -314,6 +388,17 @@ ogain: 1.0 } + input: { + bypass: false + igain: 2.0 + thresh: 30.0 + ratio: 12.0 + atk_ms: 5.0 + rls_ms: 20.0 + wnd_ms: 20.0 + ogain: 0.5 + } + dry: { } @@ -381,5 +466,44 @@ } } + + limiter: { + vars: { + in: { type:audio, srcFl: true, doc:"Audio input." }, + bypass: { type:bool, value: false, doc:"Bypass the limiter."}, + igain: { type:real, value: 1.0, doc:"Input gain."}, + thresh: { type:real, value: 0.0, doc:"Linear (0.0-1.0) threshold."}, + ogain: { type:real, value: 1.0, doc:"Output gain."}, + out: { type:audio, doc:"Audio output." }, + } + + presets: { + dflt: { + bpass: false, + igain: 1.0 + thresh: 0.9, + ogain: 1.0 + } + + } + } + + dc_filter: { + vars: { + in: { type:audio, srcFl: true, doc:"Audio input." }, + bypass: { type:bool, value: false, doc:"Bypass the DC filter."}, + gain: { type:real, value: 1.0, doc:"Output gain."}, + out: { type:audio, doc:"Audio output." }, + } + + presets: { + dflt: { + bpass: false, + gain: 1.0 + } + + } + } + -} \ No newline at end of file +}