Support for parallelism - sample app

Started by respect, July 09, 2014, 06:02:23 PM

Previous topic - Next topic

respect

Hi Severino,

what is your recommended model for using waveform editors in a parallel processing scenario?
I am thinking about analyzing sounds in a producer - consumer scenario.

I would like to browse sound files in an explorer like user interface, showing a preview for the selected file.
This would mean either generating and serializing and deserializing a few hundred waveform editor objects to disks
or
to create a waveform cache.

Are you planning to add some small app samples with best practices for parallel processing?

Best Regards
Laszlo

Administrator

Hi Laszlo :-)

well, I'm not really sure to have understood your exact needs but, if you are simply going to create a preview of each sound's waveform, it could be convenient simply generating a bitmap representation of the same, through the WaveformAnalyzer.BitmapViewSaveToFile method, that could be stored in png or jpg format on disk or inside a BLOB field of a database.

Hope this helps but, in case you were meaning something different, please, feel free to add further details to your request.

Kind regards

Severino


Quote from: respect on July 09, 2014, 06:02:23 PM
Hi Severino,

what is your recommended model for using waveform editors in a parallel processing scenario?
I am thinking about analyzing sounds in a producer - consumer scenario.

I would like to browse sound files in an explorer like user interface, showing a preview for the selected file.
This would mean either generating and serializing and deserializing a few hundred waveform editor objects to disks
or
to create a waveform cache.

Are you planning to add some small app samples with best practices for parallel processing?

Best Regards
Laszlo


Administrator

Hi,

I'm afraid that this kind of approach won't be implemented in the near future because this is a competency field for which, at the moment, we don't have the needed know-how.

Kind Regards

Severino

Quote from: respect on July 09, 2014, 10:36:23 PM
I am thinking about something like this:

http://msdn.microsoft.com/en-us/library/ee622454%28v=vs.110%29.aspx

http://msdn.microsoft.com/en-us/library/dd460717%28v=vs.110%29.aspx

respect

Hi Severino,

neither do I. I am planning to build up this competence. As far as I have read, task parallelism views the problem as a stream of instructions that can be broken into sequences called tasks that can execute simultaneously. Goal would be to speed up sound analysis by utilizing parallel cores. Maybe this would be something to give to a trainee / student?

In my opinion the design is more or less already conform to the  Event-based Asynchronous model(EAP), where async operations like waveform analysis are represented by a method/event pair.

These operations could be wrapped into tasks. The task parallel library provides eg. dataflow components based on these tasks. Dataflow is useful when the application needs to process the sound waveform images as they become available. I think of these components as hardware circuit components connected together.

Best Regards
Laszlo