Search found 16 matches

by mandolini_
Mon Sep 14, 2020 7:34 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

SOLVED: Advantages/disadvantages of using interface classes

Thanks for your help @tobiasherzke. Just posting my now-working plugin here for posterity. // Runtime configuration class class filter_t { public: filter_t(unsigned int num_channels, unsigned int fftlen, bool filter_signal); ~filter_t(); mha_spec_t* process(mha_spec_t*); protected: /* different sign...
by mandolini_
Mon Aug 10, 2020 7:19 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

Re: Advantages/disadvantages of using interface classes

Maybe this boolean switch is only the first mutable parameter that you introduce and more will follow in future? That is correct. This is the first, and simplest mutable parameter I would like to change. I've only shown this one to get a general idea for how the rest should work. The advice for [de...
by mandolini_
Sat Aug 01, 2020 12:20 am
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

Re: Advantages/disadvantages of using interface classes

Thanks for your reply. The memory allocation aspect seems the most difficult to topple. I will share a bit of my code and I invite any recommendation as how to best approach this. // Runtime configuration class class filter_t { public: filter_t(MHAParser::bool_t filter_signal); mha_spec_t* process(m...
by mandolini_
Thu Jul 23, 2020 7:37 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

Re: Advantages/disadvantages of using interface classes

Thanks for the reply. Part of my confusion stemmed from not realizing that the interface class and signal processing class are the same thing; the runtime configuration class (which the interface/SP class inherits from) is where updates to the configuration occur by creating a new config each time a...
by mandolini_
Tue Jul 21, 2020 7:07 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

Re: Advantages/disadvantages of using interface classes

Furthermore, what is the role of the release() method in the 2-class topology? It doesn't look like there are release methods to free memory that is created in the prepare() method. Should allocating memory now occur in the constructor, and freeing memory occur in the destructor of the signal proces...
by mandolini_
Mon Jul 20, 2020 11:20 pm
Forum: Software
Topic: Advantages/disadvantages of using interface classes
Replies: 9
Views: 792

Advantages/disadvantages of using interface classes

Hi, I'm having trouble deciphering whether I should use two separate classes (runtime config class and signal processing class) or just a single, signal processing class for my plugins. It seems that you are able to poll your current config file (*.cfg) and modify any MHAParser variables if you use ...
by mandolini_
Mon Jun 08, 2020 11:37 pm
Forum: Software
Topic: openMHA + openCL
Replies: 1
Views: 408

openMHA + openCL

I'm trying to accomplish something with openMHA that is probably out of the ordinary for someone using this framework, so bear with me. I am using openMHA on a BeagleBone AI , which has 2 CPU processors, 2 DSPs, and other co-processors. I have a strict latency limit with this hardware platform, so o...
by mandolini_
Mon Mar 23, 2020 8:04 pm
Forum: Software
Topic: Floating point accuracy of MHA parser variables
Replies: 2
Views: 1737

Re: Floating point accuracy of MHA parser variables

Thanks -- I figured something like this was the case, but wanted to make sure, as I hadn't seen the same behavior when applying analysemhaplugin to most other plugins.

+1 for thoroughness.
by mandolini_
Thu Mar 19, 2020 1:37 am
Forum: Software
Topic: Floating point accuracy of MHA parser variables
Replies: 2
Views: 1737

Floating point accuracy of MHA parser variables

I am trying to allow some of my algorithm's tuning parameters to be updated at runtime with the help of the MHA-parser. However, when I inspect my self-developed plugin with 'analysemhaplugin my_plugin' it seems that the floating point numbers are not quite the same as what I set them as. What is th...
by mandolini_
Sat Feb 29, 2020 1:15 am
Forum: Software
Topic: Converting between MHA signal types and self-developed object types
Replies: 1
Views: 1376

Converting between MHA signal types and self-developed object types

I understand this is going off the beaten path, but I am attempting to create a plugin that can convert the incoming signal to an object format that many of my own, self-developed C++ algorithms commonly use. Specifically, I am trying to create a plugin from the plugin template that has the followin...