Bladeren bron

cal: add normal drc profile (we still use the minimal profile)

Fernando Pablo Lopez-Lezcano 8 jaren geleden
bovenliggende
commit
3d14632413
2 gewijzigde bestanden met toevoegingen van 220 en 0 verwijderingen
  1. 219 0
      calibration/src/drc/normal.drc
  2. 1 0
      calibration/src/sphear_make_reference_filter

+ 219 - 0
calibration/src/drc/normal.drc

@@ -0,0 +1,219 @@
+# Normal correction settings
+
+# Normal prefiltering windows (500 ms at 20 Hz, 100 ms at 100 Hz, 10 ms at 1 kHz, 0.50 ms at 20 kHz)
+# Normal peak limiting (6.02 dB Max)
+# Minimum phase excess phase allpass recovering to reduce pre-echo
+# Normal pre-echo truncation
+# Minimum phase postfiltering to reduce I/O latency
+# Normal ringing truncation
+
+# Base file directory
+# BCBaseDir = /usr/share/drc/
+
+# BC = Base Configuration
+BCInFile = rs.pcm
+BCSampleRate = 48000
+BCInFileType = F
+BCImpulseCenterMode = A
+BCImpulseCenter = 0
+BCInitWindow = 131072
+BCPreWindowLen = 1024
+BCPreWindowGap = 768
+BCNormFactor = 0.0
+BCNormType = E
+
+# MC = Mic compensation stage
+MCFilterType = M
+MCInterpolationType = H
+MCMultExponent = 3
+MCFilterLen = 65535
+MCNumPoints = 0
+MCPointsFile = drc/flat.txt
+MCMagType = D
+# MCFilterFile = rmcf.pcm
+MCFilterFileType = F
+MCOutWindow = 0
+MCNormFactor = 0.0
+MCNormType = E
+# MCOutFile = rmc.pcm
+MCOutFileType = F
+
+# Base configuration dip limiting stage
+BCDLType = L
+BCDLMinGain = 1e-6 # -120.0 dB Min, just to prevent overflow/underflow problems
+BCDLStartFreq = 20
+BCDLEndFreq = 23500
+BCDLStart = 0.75
+BCDLMultExponent = 3
+
+# HD = Homomorphic Deconvolution
+HDMultExponent = 4
+
+HDMPNormFactor = 1.0
+HDMPNormType = E
+# HDMPOutFile = rmp.pcm
+HDMPOutFileType = F
+
+HDEPNormFactor = 1.0
+HDEPNormType = E
+# HDEPOutFile = rep.pcm
+HDEPOutFileType = F
+
+# MP = Minimum phase frequency dependent windowing
+MPPrefilterType = s
+MPPrefilterFctn = B
+MPWindowGap = 48
+MPLowerWindow = 48000 # 500 ms
+MPUpperWindow = 48 # 0.5 ms
+MPStartFreq = 20
+MPEndFreq = 23500
+MPFilterLen = 65536
+MPFSharpness = 0.25
+MPBandSplit = 3
+MPWindowExponent = 1.0
+MPHDRecover = Y
+MPEPPreserve = Y
+MPHDMultExponent = 3
+MPPFFinalWindow = 48000
+MPPFNormFactor = 0.0
+MPPFNormType = E
+# MPPFOutFile = rmppf.pcm
+MPPFOutFileType = F
+
+# DL = Dip limiting stage
+DLType = M
+DLMinGain = 0.01 # -40.0 dB Min
+DLStartFreq = 20
+DLEndFreq = 23500
+DLStart = 0.75
+DLMultExponent = 3
+
+# EP = Excess phase frequency dependent windowing
+EPPrefilterType = s
+EPPrefilterFctn = B
+EPWindowGap = 48
+EPLowerWindow = 2044 # 21.3 ms
+EPUpperWindow = 48 # 0.5 ms
+EPStartFreq = 20
+EPEndFreq = 23500
+EPFilterLen = 65536
+EPFSharpness = 0.25
+EPBandSplit = 3
+EPWindowExponent = 1.0
+EPPFFlatGain = 1.0
+EPPFOGainFactor = 0.0
+EPPFFlatType = M
+EPPFFGMultExponent = 3
+EPPFFinalWindow = 2044
+EPPFNormFactor = 0.0
+EPPFNormType = E
+# EPPFOutFile = reppf.pcm
+EPPFOutFileType = F
+
+# PC = Prefiltering completion stage
+PCOutWindow = 0
+PCNormFactor = 0.0
+PCNormType = E
+# PCOutFile = rpc.pcm
+PCOutFileType = F
+
+# IS = Inversion stage
+ISType = T
+ISPETType = f
+ISPrefilterFctn = B
+ISPELowerWindow = 1022
+ISPEUpperWindow = 766
+ISPEStartFreq = 20
+ISPEEndFreq = 23500
+ISPEFilterLen = 8192
+ISPEFSharpness = 0.50
+ISPEBandSplit = 3
+ISPEWindowExponent = 1.0
+ISPEOGainFactor = 0.0
+ISSMPMultExponent = 4
+ISOutWindow = 0
+ISNormFactor = 0.0
+ISNormType = E
+# ISOutFile = ris.pcm
+ISOutFileType = F
+
+# PT = Psychoacoustic target stage
+PTType = M
+PTReferenceWindow = 28800 # 300 ms
+PTDLType = M
+PTDLMinGain = 0.1 # -20.0 dB Min
+PTDLStartFreq = 20
+PTDLEndFreq = 23500
+PTDLStart = 0.75
+PTDLMultExponent = 3
+PTBandWidth = -2
+PTPeakDetectionStrength = 15
+PTMultExponent = 0
+PTFilterLen = 65536
+# PTFilterFile = rptf.pcm
+PTFilterFileType = F
+PTNormFactor = 0.0
+PTNormType = E
+# PTOutFile = rpt.pcm
+PTOutFileType = F
+PTOutWindow = 0
+
+# PL = Peak limiting stage
+PLType = W
+PLMaxGain = 2.0 # +6.02 dB Max
+PLStart = 0.75
+PLStartFreq = 100
+PLEndFreq = 10000
+PLMultExponent = 3
+PLOutWindow = 0
+PLNormFactor = 0.0
+PLNormType = E
+# PLOutFile = rpl.pcm
+PLOutFileType = F
+
+# RT = Ringing truncation stage
+RTType = s
+RTPrefilterFctn = B
+RTWindowGap = 48
+RTLowerWindow = 48000 # 500 ms
+RTUpperWindow = 48 # 0.5 ms
+RTStartFreq = 20
+RTEndFreq = 23500
+RTFilterLen = 65536
+RTFSharpness = 0.25
+RTBandSplit = 3
+RTWindowExponent = 1.0
+RTOutWindow = 48000
+RTNormFactor = 0.0
+RTNormType = E
+# RTOutFile = rrt.pcm
+RTOutFileType = F
+
+# PS = Target respose stage
+PSFilterType = T
+PSInterpolationType = S
+PSMultExponent = 3
+PSFilterLen = 65535
+PSNumPoints = 0
+PSPointsFile = pa-48.0.txt
+PSMagType = D
+PSOutWindow = 65536
+PSNormFactor = 1.0
+PSNormType = E
+PSOutFile = rps.pcm
+PSOutFileType = F
+
+# Minimum phase filter extraction stage
+MSMultExponent = 3
+MSOutWindow = 65536
+MSFilterDelay = 1022
+MSNormFactor = 1.0
+MSNormType = E
+# MSOutFile = rms.pcm
+MSOutFileType = F
+
+# Test convolution stage
+TCNormFactor = 0.0
+TCNormType = M
+TCOutFile = rtc.pcm
+TCOutFileType = F

+ 1 - 0
calibration/src/sphear_make_reference_filter

@@ -38,6 +38,7 @@ CAL_DIR="../data/current/cal"
 
 # configuration file (based on the "minimal" stock preset)
 # CONFIG="drc/erb_orig.drc"
+# CONFIG="drc/normal.drc"
 CONFIG="drc/minimal.drc"
 
 # see if we have a microphone calibration file