Manually Entering a Fitting

Post Reply
dpoznan
Posts: 25
Joined: Wed Jun 30, 2021 10:50 pm

Manually Entering a Fitting

Post by dpoznan » Sun Jul 25, 2021 10:40 pm

I have a NAL_NL2 fit from my audiologist. I would like to enter it in the presets. I cannot find where they are stored and the format of the file.

How do I create my own preset?

Is there a fitting type that simply allows manual entry?

If I want to create my own algorithm for fitting, is there an example for doing this that is explained? I suppose I could just
look at one of the provided fitting algorithms, but there is no explanation.

One other query.... where are the presets stored? I assume that the active preset goes into the device. Are the others on the Mac where I am running the MatLAb code?

Thanks,

Dan..

dpoznan
Posts: 25
Joined: Wed Jun 30, 2021 10:50 pm

Re: Manually Entering a Fitting

Post by dpoznan » Tue Jul 27, 2021 8:51 pm

Well I'm impressed.....

I was able to add my own fitting algorithm by adding a file gainrule_Poz.m

Of course I still have to figure out what to put into the matlab file. Currently it is just a copy of the NAL_RP

Dan..

hendrikkayser
Posts: 20
Joined: Fri May 10, 2019 7:58 am

Re: Manually Entering a Fitting

Post by hendrikkayser » Wed Jul 28, 2021 9:49 am

Hi Dan,

if you want to create arbitrary gain rules the dc plugin would be the one of your choice. It uses a gaintable that describes which gain is applied in which band depending on the input level in it 'gtdata' parameter and the related ones 'gtmin' and gtstep'. The Matlab fitting tool basically generates such a gaintable and sets the dc parameters in the loaded openMHA configuration accordingly at runtime, but you can also do this manually.

We have an example in our starting guide that may be helpful for you:
http://www.openmha.org/docs/openMHA_sta ... #section.6

A template for own gain rules is found here:
https://github.com/HoerTech-gGmbH/openM ... template.m

We have an interface for the commercial NAL-NL2 gain prescription rule, see here for further information:
https://github.com/HoerTech-gGmbH/openM ... _NALNL2.md

Note that you can also directly set the gaintable in your openMHA configuration file, so no interaction with Matlab is required when you want to run the compressor with specific settings.

Best,
Hendrik

Post Reply