Search found 30 matches

by tobiasherzke
Thu Sep 10, 2020 5:19 pm
Forum: User Applications
Topic: Taking into account the direct path
Replies: 4
Views: 210

Re: Taking into account the direct path

comb filtering effects ... are the same in the real world. I think you are right that audiologists take into account the direct path, and I would think that they usually do so by selecting the correct ear canal fitting in the manufacturer's software. What the software does as a consequence to accou...
by tobiasherzke
Mon Sep 07, 2020 2:52 pm
Forum: Hardware
Topic: In-ear headphones with 3D audio playback & record function
Replies: 1
Views: 96

Re: In-ear headphones with 3D audio playback & record function

I've taken a quick glance and these seem to be bluetooth headsets with the option of connecting to a PC by cable. It is not clear to me if the cable in question is a USB cable or an analogue audio cable. If the cables carry analogue audio, then you would need to add a USB soundcard to connect the de...
by tobiasherzke
Fri Sep 04, 2020 5:21 am
Forum: User Applications
Topic: Taking into account the direct path
Replies: 4
Views: 210

Re: Taking into account the direct path

I understand that you want to simulate a system response to an input signal x systemResponse(x) = compressor(x) + linearFilter(x) and right now you have implemented simulatedResponse(x) = compressor(x) and are wondering how to add the missing + linearFilter(x) There are many ways to achieve this. On...
by tobiasherzke
Tue Aug 11, 2020 4:11 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 772

Re: Advantages/disadvantages of using interface classes

So you are saying basically that writeaccess allows for the filter state to remain the same (which is desirable in my case), and valuechanged will reset its state after each update? No, this is not what I meant to say. Sorry for not being clear enough. If the initial state is filter=no, then your u...
by tobiasherzke
Sat Aug 08, 2020 8:52 am
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 772

Re: Advantages/disadvantages of using interface classes

I will share a bit of my code and I invite any recommendation as how to best approach this. I understand that you are in the process of modifying your code to add a runtime configuration class to your plugin, because you want to switch processing on and off during runtime with a boolean switch. And...
by tobiasherzke
Sun Jul 26, 2020 7:13 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 772

Runtime configuration questions

1a) I have written a plugin already with a single interface class, and now I would like to be able to update some of the algorithm's parameters at runtime. How do I know what should stay in that class and what should be moved to the runtime config class? You do not actually move the parameters, but...
by tobiasherzke
Wed Jul 22, 2020 8:13 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 772

Re: Advantages/disadvantages of using runtime configuration classes

You need an interface class (which implements the interface functions prepare(), release(), process(), constructor(),...) in every plugin. Whether you should use an additional runtime configuration class or not is the question. Advantages of using runtime configuration classes: You can allow configu...
by tobiasherzke
Tue Jun 09, 2020 5:20 pm
Forum: Software
Topic: openMHA + openCL
Replies: 1
Views: 406

Re: openMHA + openCL

Yes, this piece of documention is somewhat hard to find. http://www.openmha.org/docs/openMHA_developer_manual.pdf section 2.2.1.1 last paragraph should explain the idea. See it applied like you need it here: https://github.com/HoerTech-gGmbH/openMHA/blob/master/mha/plugins/wave2spec/wave2spec.cpp#L1...
by tobiasherzke
Wed Apr 29, 2020 11:31 am
Forum: Software
Topic: Peak Level Calibration and wavrec Plugin
Replies: 1
Views: 1037

Re: Peak Level Calibration and wavrec Plugin

peaklevels are assigned in plugin transducers. wavrec is a separate plugin and has no knowledge of the peaklevels configured there. wavrec documentation is minimalistic. It says "wav file recorder". wavrec stores the audio samples on disk as they are processed inside MHA, without any scaling. The sa...
by tobiasherzke
Sat Mar 21, 2020 5:04 pm
Forum: Software
Topic: Floating point accuracy of MHA parser variables
Replies: 2
Views: 1735

Re: Floating point accuracy of MHA parser variables

Floating point data representations as used in computers have limited accuracy. Not all decimal numbers can be stored with their exact value in a floating point data type on a computer. The numbers are rounded to the nearest value that can be represented. 0.99 for example cannot be represented exact...