forked from m-r-s/hearingaid-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenMHA.cfg
65 lines (48 loc) · 5.48 KB
/
openMHA.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
instance = openMHA
nchannels_in = 2
srate = 48000
mhalib = db
mha.fragsize = 48
mha.plugin_name = transducers
mha.transducers.calib_in.peaklevel = [111.4 111.4]
mha.transducers.calib_in.fir = [[0.05715807311106352 -0.09143269871454363 0.1279991931078954 -0.1229917176472585 0.03865469459901275 0.1208478993167953 -0.8820088913999001 -0.2804647683673479 0.01220373264309236 -0.1613181711981604 0.1851746406520001 -0.1149274499260817 0.04848940622236251 0.03877744359967165 -0.0533381761233464 0.06159030633073432];[0.05715807311106352 -0.09143269871454363 0.1279991931078954 -0.1229917176472585 0.03865469459901275 0.1208478993167953 -0.8820088913999001 -0.2804647683673479 0.01220373264309236 -0.1613181711981604 0.1851746406520001 -0.1149274499260817 0.04848940622236251 0.03877744359967165 -0.0533381761233464 0.06159030633073432]]
mha.transducers.calib_out.peaklevel = [92.8 92.8]
mha.transducers.calib_out.fir = [[-0.0008493245925390666 0.212079412419309 -0.2154042301549152 -0.3025302897591955 0.199775619155252 -0.1870229266228919 -0.7938470989741924 0.8603675948896129 0.478909142449632 -0.6085003614478869 0.07361724294587288 -0.2227288472200418 0.5368590771510556 0.09111033102709504 -0.480841985504344 0.4390128813205694 0.1246445045880798 0.1269349882268854 -0.04198884835603302 -0.2353992092127431 0.2510197443337887 0.0874549322159773 -0.02924594207986645 0.03500546824173258 0.02306546293053465 0.02935658669200722 -0.04983617327855945 0.01127518725520369 -0.03557732411817455 -0.08252133997595766 0.09626162395832474 -0.03965187059451832 -0.02978787895722923 -0.02032215684247022 -0.07226667524292203 0.1197853714014079 -0.07509868745444499 -0.06716864521583707 0.01498418308780167 -0.0128555683058882 0.005643946502094473 -0.05468486125562624 -0.03084551017547309 0.01713430717627588 -0.04031926622896171 -0.0001434979760821464 -0.02137092800354339 -0.02993680876827081];[ -0.0008493245925390666 0.212079412419309 -0.2154042301549152 -0.3025302897591955 0.199775619155252 -0.1870229266228919 -0.7938470989741924 0.8603675948896129 0.478909142449632 -0.6085003614478869 0.07361724294587288 -0.2227288472200418 0.5368590771510556 0.09111033102709504 -0.480841985504344 0.4390128813205694 0.1246445045880798 0.1269349882268854 -0.04198884835603302 -0.2353992092127431 0.2510197443337887 0.0874549322159773 -0.02924594207986645 0.03500546824173258 0.02306546293053465 0.02935658669200722 -0.04983617327855945 0.01127518725520369 -0.03557732411817455 -0.08252133997595766 0.09626162395832474 -0.03965187059451832 -0.02978787895722923 -0.02032215684247022 -0.07226667524292203 0.1197853714014079 -0.07509868745444499 -0.06716864521583707 0.01498418308780167 -0.0128555683058882 0.005643946502094473 -0.05468486125562624 -0.03084551017547309 0.01713430717627588 -0.04031926622896171 -0.0001434979760821464 -0.02137092800354339 -0.02993680876827081]]
mha.transducers.calib_out.do_clipping = no
mha.transducers.plugin_name = mhachain
mha.transducers.mhachain.algos = [addsndfile:playback altplugs]
mha.transducers.mhachain.playback.loop = no
mha.transducers.mhachain.playback.mode = add
mha.transducers.mhachain.playback.levelmode = rms
mha.transducers.mhachain.playback.level = 70
mha.transducers.mhachain.playback.channels = [0 1]
mha.transducers.mhachain.altplugs.plugs = [overlapadd:dynamiccompression identity]
mha.transducers.mhachain.altplugs.select = dynamiccompression
mha.transducers.mhachain.altplugs.dynamiccompression.fftlen = 288
mha.transducers.mhachain.altplugs.dynamiccompression.wnd.type = hanning
mha.transducers.mhachain.altplugs.dynamiccompression.wnd.user = []
mha.transducers.mhachain.altplugs.dynamiccompression.wnd.len = 144
mha.transducers.mhachain.altplugs.dynamiccompression.wnd.pos = 0.5
mha.transducers.mhachain.altplugs.dynamiccompression.wnd.exp = 1
mha.transducers.mhachain.altplugs.dynamiccompression.zerownd.type = hanning
mha.transducers.mhachain.altplugs.dynamiccompression.zerownd.user = []
mha.transducers.mhachain.altplugs.dynamiccompression.plugin_name = mhachain
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.algos = [fftfilterbank dc combinechannels]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.fftfilterbank.unit = Hz
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.fftfilterbank.f = [177 297 500 841 1414 2378 4000 6727 11314]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.fftfilterbank.fscale = log
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.fftfilterbank.ovltype = rect
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.fftfilterbank.ftype = center
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.gtdata = [[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0];[0.0 0.0]]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.gtmin = [0]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.gtstep = [1]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.tau_attack = [0.02]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.tau_decay = [0.1]
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.fb = fftfilterbank
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.dc.chname = fftfilterbank_nchannels
mha.transducers.mhachain.altplugs.dynamiccompression.mhachain.combinechannels.outchannels = 2
fragsize = 48
iolib = MHAIOJack
#io.con_in = [system:capture_1 system:capture_2]
#io.con_out = [system:playback_2 system:playback_1]
cmd=start