Copyright © 2008-2023 MultiMedia Soft

WANALYZER_WAVE_RANGE structure

Previous pageReturn to chapter overviewNext page

The WANALYZER_WAVE_RANGE structure describes settings applied to a waveform range added to the Waveform Analyzer through the WaveformAnalyzer.GraphicItemWaveRangeAdd method. The current settings can be retrieved through the WaveformAnalyzer.GraphicItemWaveRangeParamsGet method and modified through the WaveformAnalyzer.GraphicItemWaveRangeParamsSett method.

 

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer object section.

 

Visual C++ definition

 

typedef struct

{

         OLE_COLOR colorBack;

         OLE_COLOR colorWaveLinePeak;

         OLE_COLOR colorWaveLineCenter;

} WANALYZER_WAVE_RANGE;

 

This data structure is defined inside the AdjMmsEngDef.h header file which can be found inside the product's Include directory (default \Program files\MultiMedia Soft\Active Sound Editor\include).

 

Visual Basic definition

 

Public Type WANALYZER_WAVE_RANGE

         colorBack As OLE_COLOR

         colorWaveLinePeak As OLE_COLOR

         colorWaveLineCenter As OLE_COLOR

End Type

 

This data structure is defined inside the AdjMmsEngDef.bas module file which can be found inside the product's Include directory (default \Program files\MultiMedia Soft\Active Sound Editor\include).

 

Inside the screenshot below you can see 2 examples of wave ranges, each with its own set of colors. Please note that "wave ranges" are a different concept respect to "waveform selection": you can only have one single "waveform selection", whose positioning can be managed through code or through mouse movement, but you can have multiple "wave ranges" managed through code without any mouse management for changing the positioning.

 

 

Member

Description

 

 

colorBack

Color used for rendering the waveform background.

colorWaveLinePeak

Color used for rendering the peak of the waveform line

colorWaveLineCenter

Color used for rendering the center of the waveform line

 

 

NOTE: If values of the colorWaveLineCenter e colorWaveLinePeak fields should be identical, the rendering would keep count of the bUseHalfColorsForPeaks field of the WANALYZER_WAVEFORM_SETTINGS data structure.