#include <WaveformLayer.h>
Inherits SingleColourLayer.
Inheritance diagram for WaveformLayer:


Definition at line 29 of file WaveformLayer.h.
Public Types | |
| enum | ChannelMode { SeparateChannels, MixChannels, MergeChannels } |
| enum | Scale { LinearScale, MeterScale, dBScale } |
| enum | VerticalPosition { PositionTop, PositionMiddle, PositionBottom } |
| enum | SnapType { SnapLeft, SnapRight, SnapNearest, SnapNeighbouring } |
| enum | ColourSignificance { ColourAbsent, ColourIrrelevant, ColourDistinguishes, ColourAndBackgroundSignificant, ColourHasMeaningfulValue } |
| enum | PropertyType { ToggleProperty, RangeProperty, ValueProperty, ColourProperty, UnitsProperty, InvalidProperty } |
| typedef QString | PropertyName |
| typedef std::vector< PropertyName > | PropertyList |
Public Slots | |
| virtual void | setProperty (const PropertyName &, int value) |
| Set a property. | |
| virtual void | setProperty (QString nameString, QString valueString) |
| Set a property using a fuzzy match. | |
| void | showLayer (View *, bool show) |
| virtual void | setPropertyWithCommand (const PropertyName &, int value) |
| Set a property using a command, supporting undo and redo. | |
| virtual void | setPropertyWithCommand (QString nameString, QString valueString) |
| As above, but using a command. | |
Signals | |
| void | modelChanged () |
| void | modelChanged (size_t startFrame, size_t endFrame) |
| void | modelCompletionChanged () |
| void | modelAlignmentCompletionChanged () |
| void | modelReplaced () |
| void | layerParametersChanged () |
| void | layerParameterRangesChanged () |
| void | layerMeasurementRectsChanged () |
| void | layerNameChanged () |
| void | verticalZoomChanged () |
| void | propertyChanged (PropertyContainer::PropertyName) |
Public Member Functions | |
| WaveformLayer () | |
| ~WaveformLayer () | |
| virtual const ZoomConstraint * | getZoomConstraint () const |
| Return a zoom constraint object defining the supported zoom levels for this layer. | |
| virtual const Model * | getModel () const |
| virtual void | paint (View *v, QPainter &paint, QRect rect) const |
| virtual QString | getFeatureDescription (View *v, QPoint &) const |
| virtual ColourSignificance | getLayerColourSignificance () const |
| This should return the degree of meaning associated with colour in this layer. | |
| virtual int | getVerticalScaleWidth (View *v, QPainter &) const |
| virtual void | paintVerticalScale (View *v, QPainter &paint, QRect rect) const |
| void | setModel (const RangeSummarisableTimeValueModel *model) |
| virtual PropertyList | getProperties () const |
| Get a list of the names of all the supported properties on this container. | |
| virtual QString | getPropertyLabel (const PropertyName &) const |
| virtual QString | getPropertyIconName (const PropertyName &) const |
| virtual PropertyType | getPropertyType (const PropertyName &) const |
| virtual QString | getPropertyGroupName (const PropertyName &) const |
| virtual int | getPropertyRangeAndValue (const PropertyName &, int *min, int *max, int *deflt) const |
| virtual QString | getPropertyValueLabel (const PropertyName &, int value) const |
| virtual RangeMapper * | getNewPropertyRangeMapper (const PropertyName &) const |
| virtual void | setProperty (const PropertyName &, int value) |
| void | setGain (float gain) |
| Set the gain multiplier for sample values in this view. | |
| float | getGain () const |
| void | setAutoNormalize (bool) |
| Toggle automatic normalization of the currently visible waveform. | |
| bool | getAutoNormalize () const |
| void | setShowMeans (bool) |
| Set whether to display mean values as a lighter-coloured area beneath the peaks. | |
| bool | getShowMeans () const |
| void | setUseGreyscale (bool) |
| Set whether to use shades of grey (or of the base colour) to provide additional perceived vertical resolution (i.e. | |
| bool | getUseGreyscale () const |
| void | setChannelMode (ChannelMode) |
| Specify whether multi-channel audio data should be displayed with a separate axis per channel (SeparateChannels), with a single synthetic axis showing channel 0 above the axis and channel 1 below (MergeChannels), or with a single axis showing the average of the channels (MixChannels). | |
| ChannelMode | getChannelMode () const |
| void | setChannel (int) |
| Specify the channel to use from the source model. | |
| int | getChannel () const |
| void | setScale (Scale) |
| Specify the vertical scale for sample levels. | |
| Scale | getScale () const |
| void | setAggressiveCacheing (bool) |
| Enable or disable aggressive pixmap cacheing. | |
| bool | getAggressiveCacheing () const |
| virtual bool | isLayerScrollable (const View *) const |
| This should return true if the layer can safely be scrolled automatically by a given view (simply copying the existing data and then refreshing the exposed area) without altering its meaning. | |
| virtual int | getCompletion (View *) const |
| Return the proportion of background work complete in drawing this view, as a percentage -- in most cases this will be the value returned by pointer from a call to the underlying model's isReady(int *) call. | |
| virtual bool | getValueExtents (float &min, float &max, bool &log, QString &unit) const |
| Return the minimum and maximum values for the y axis of the model in this layer, as well as whether the layer is configured to use a logarithmic y axis display. | |
| virtual bool | getYScaleValue (const View *v, int y, float &value, QString &unit) const |
| Return the value and unit at the given y coordinate in the given view. | |
| virtual bool | getYScaleDifference (const View *v, int y0, int y1, float &diff, QString &unit) const |
| Return the difference between the values at the given y coordinates in the given view, and the unit of the difference. | |
| virtual void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
| Convert the layer's data (though not those of the model it refers to) into XML for file output. | |
| virtual void | setProperties (const QXmlAttributes &attributes) |
| Set the particular properties of a layer (those specific to the subclass) from a set of XML attributes. | |
| virtual int | getVerticalZoomSteps (int &defaultStep) const |
| Get the number of vertical zoom steps available for this layer. | |
| virtual int | getCurrentVerticalZoomStep () const |
| Get the current vertical zoom step. | |
| virtual void | setVerticalZoomStep (int) |
| Set the vertical zoom step. | |
| virtual void | setBaseColour (int) |
| virtual int | getBaseColour () const |
| virtual bool | hasLightBackground () const |
| virtual QPixmap | getLayerPresentationPixmap (QSize size) const |
| virtual QString | getPropertyLabel (const PropertyName &) const =0 |
| Return the human-readable (and i18n'ised) name of a property. | |
| virtual PropertyType | getPropertyType (const PropertyName &) const |
| Return the type of the given property, or InvalidProperty if the property is not supported on this container. | |
| virtual QString | getPropertyGroupName (const PropertyName &) const |
| If this property has something in common with other properties on this container, return a name that can be used to group them (in order to save screen space, for example). | |
| virtual int | getPropertyRangeAndValue (const PropertyName &, int *min, int *max, int *deflt) const |
| Return the minimum and maximum values for the given property and its current value in this container. | |
| virtual QString | getPropertyValueLabel (const PropertyName &, int value) const |
| If the given property is a ValueProperty, return the display label to be used for the given value for that property. | |
| virtual RangeMapper * | getNewPropertyRangeMapper (const PropertyName &) const |
| If the given property is a RangeProperty, return a new RangeMapper object mapping its integer range onto an underlying floating point value range for human-intelligible display, if appropriate. | |
| virtual void | setDefaultColourFor (View *v) |
| virtual Model * | getModel () |
| virtual bool | supportsOtherZoomLevels () const |
| Return true if this layer can handle zoom levels other than those supported by its zoom constraint (presumably less efficiently or accurately than the officially supported zoom levels). | |
| virtual VerticalPosition | getPreferredTimeRulerPosition () const |
| virtual VerticalPosition | getPreferredFrameCountPosition () const |
| virtual QString | getPropertyContainerIconName () const |
| virtual QString | getPropertyContainerName () const |
| virtual void | setPresentationName (QString name) |
| virtual QString | getLayerPresentationName () const |
| virtual bool | getCrosshairExtents (View *, QPainter &, QPoint, std::vector< QRect > &) const |
| virtual void | paintCrosshairs (View *, QPainter &, QPoint) const |
| virtual void | paintMeasurementRects (View *, QPainter &, bool showFocus, QPoint focusPoint) const |
| virtual bool | nearestMeasurementRectChanged (View *, QPoint prev, QPoint now) const |
| virtual bool | snapToFeatureFrame (View *, int &, size_t &resolution, SnapType) const |
| Adjust the given frame to snap to the nearest feature, if possible. | |
| virtual void | drawStart (View *, QMouseEvent *) |
| virtual void | drawDrag (View *, QMouseEvent *) |
| virtual void | drawEnd (View *, QMouseEvent *) |
| virtual void | eraseStart (View *, QMouseEvent *) |
| virtual void | eraseDrag (View *, QMouseEvent *) |
| virtual void | eraseEnd (View *, QMouseEvent *) |
| virtual void | editStart (View *, QMouseEvent *) |
| virtual void | editDrag (View *, QMouseEvent *) |
| virtual void | editEnd (View *, QMouseEvent *) |
| virtual void | measureStart (View *, QMouseEvent *) |
| virtual void | measureDrag (View *, QMouseEvent *) |
| virtual void | measureEnd (View *, QMouseEvent *) |
| virtual void | measureDoubleClick (View *, QMouseEvent *) |
| virtual bool | haveCurrentMeasureRect () const |
| virtual void | deleteCurrentMeasureRect () |
| virtual bool | editOpen (View *, QMouseEvent *) |
| Open an editor on the item under the mouse (e.g. | |
| virtual void | moveSelection (Selection, size_t) |
| virtual void | resizeSelection (Selection, Selection) |
| virtual void | deleteSelection (Selection) |
| virtual void | copy (View *, Selection, Clipboard &) |
| virtual bool | paste (View *, const Clipboard &, int, bool) |
| Paste from the given clipboard onto the layer at the given frame offset. | |
| virtual bool | isLayerOpaque () const |
| This should return true if the layer completely obscures any underlying layers. | |
| virtual bool | isLayerEditable () const |
| This should return true if the layer can be edited by the user. | |
| virtual void | setObjectName (const QString &name) |
| virtual void | toBriefXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
| Produce XML containing the layer's ID and type. | |
| virtual void | addMeasurementRect (const QXmlAttributes &) |
| Add a measurement rectangle from the given XML attributes (presumably taken from a measurement element). | |
| virtual void | setLayerDormant (const View *v, bool dormant) |
| Indicate that a layer is not currently visible in the given view and is not expected to become visible in the near future (for example because the user has explicitly removed or hidden it). | |
| virtual bool | isLayerDormant (const View *v) const |
| Return whether the layer is dormant (i.e. | |
| virtual PlayParameters * | getPlayParameters () |
| virtual bool | needsTextLabelHeight () const |
| virtual bool | hasTimeXAxis () const |
| virtual bool | getDisplayExtents (float &, float &) const |
| Return the minimum and maximum values within the displayed range for the y axis, if only a subset of the whole range of the model (returned by getValueExtents) is being displayed. | |
| virtual bool | setDisplayExtents (float, float) |
| Set the displayed minimum and maximum values for the y axis to the given range, if supported. | |
| virtual bool | getXScaleValue (const View *v, int x, float &value, QString &unit) const |
| Return the value and unit at the given x coordinate in the given view. | |
| virtual RangeMapper * | getNewVerticalZoomRangeMapper () const |
| Create and return a range mapper for vertical zoom step values. | |
| virtual QString | getPropertyIconName (const PropertyName &) const |
| Return an icon for the property, if any. | |
| virtual QString | toXmlString (QString indent="", QString extraAttributes="") const |
| Convert this exportable object to XML in a string. | |
Static Public Member Functions | |
| static QString | encodeEntities (QString) |
| static QString | encodeColour (QColor) |
| static int | getObjectExportId (const void *) |
Protected Types | |
| typedef std::map< int, int > | ColourRefCount |
| typedef std::set< MeasureRect > | MeasureRectSet |
Protected Member Functions | |
| int | dBscale (float sample, int m) const |
| size_t | getChannelArrangement (size_t &min, size_t &max, bool &merging, bool &mixing) const |
| Return value is number of channels displayed. | |
| int | getYForValue (const View *v, float value, size_t channel) const |
| float | getValueForY (const View *v, int y, size_t &channel) const |
| bool | getSourceFramesForX (View *v, int x, size_t modelZoomLevel, size_t &f0, size_t &f1) const |
| float | getNormalizeGain (View *v, int channel) const |
| virtual void | flagBaseColourChanged () |
| virtual QColor | getBaseQColor () const |
| virtual QColor | getBackgroundQColor (View *v) const |
| virtual QColor | getForegroundQColor (View *v) const |
| std::vector< QColor > | getPartialShades (View *v) const |
| virtual int | getDefaultColourHint (bool, bool &) |
| void | connectSignals (const Model *) |
| virtual size_t | alignToReference (View *v, size_t frame) const |
| virtual size_t | alignFromReference (View *v, size_t frame) const |
| bool | clipboardHasDifferentAlignment (View *v, const Clipboard &clip) const |
| void | addMeasureRectToSet (const MeasureRect &r) |
| void | deleteMeasureRectFromSet (const MeasureRect &r) |
| void | updateMeasurePixrects (View *v) const |
| virtual void | updateMeasureRectYCoords (View *v, const MeasureRect &r) const |
| virtual void | setMeasureRectYCoord (View *v, MeasureRect &r, bool start, int y) const |
| virtual void | setMeasureRectFromPixrect (View *v, MeasureRect &r, QRect pixrect) const |
| MeasureRectSet::const_iterator | findFocusedMeasureRect (QPoint) const |
| void | paintMeasurementRect (View *v, QPainter &paint, const MeasureRect &r, bool focus) const |
| virtual bool | convertPropertyStrings (QString nameString, QString valueString, PropertyName &name, int &value) |
Protected Attributes | |
| const RangeSummarisableTimeValueModel * | m_model |
| float | m_gain |
| bool | m_autoNormalize |
| bool | m_showMeans |
| bool | m_greyscale |
| ChannelMode | m_channelMode |
| int | m_channel |
| Scale | m_scale |
| bool | m_aggressive |
| std::vector< float > | m_effectiveGains |
| QPixmap * | m_cache |
| bool | m_cacheValid |
| int | m_cacheZoomLevel |
| int | m_colour |
| bool | m_colourExplicitlySet |
| bool | m_defaultColourSet |
| MeasureRectSet | m_measureRects |
| MeasureRect | m_draggingRect |
| bool | m_haveDraggingRect |
| bool | m_haveCurrentMeasureRect |
| QPoint | m_currentMeasureRectPoint |
| QString | m_presentationName |
Static Protected Attributes | |
| static ColourRefCount | m_colourRefCount |
typedef std::map<int, int> SingleColourLayer::ColourRefCount [protected, inherited] |
Definition at line 68 of file SingleColourLayer.h.
typedef std::set<MeasureRect> Layer::MeasureRectSet [protected, inherited] |
typedef QString PropertyContainer::PropertyName [inherited] |
Definition at line 35 of file PropertyContainer.h.
typedef std::vector<PropertyName> PropertyContainer::PropertyList [inherited] |
Definition at line 36 of file PropertyContainer.h.
Definition at line 103 of file WaveformLayer.h.
| enum WaveformLayer::Scale |
enum Layer::VerticalPosition [inherited] |
enum Layer::SnapType [inherited] |
enum Layer::ColourSignificance [inherited] |
enum PropertyContainer::PropertyType [inherited] |
Definition at line 38 of file PropertyContainer.h.
| WaveformLayer::WaveformLayer | ( | ) |
Definition at line 36 of file WaveformLayer.cpp.
| WaveformLayer::~WaveformLayer | ( | ) |
| virtual const ZoomConstraint* WaveformLayer::getZoomConstraint | ( | ) | const [inline, virtual] |
Return a zoom constraint object defining the supported zoom levels for this layer.
If this returns zero, the layer will support any integer zoom level.
Reimplemented from Layer.
Definition at line 37 of file WaveformLayer.h.
References Model::getZoomConstraint(), and m_model.
| virtual const Model* WaveformLayer::getModel | ( | ) | const [inline, virtual] |
| void WaveformLayer::paint | ( | View * | v, | |
| QPainter & | paint, | |||
| QRect | rect | |||
| ) | const [virtual] |
Implements Layer.
Definition at line 467 of file WaveformLayer.cpp.
References RangeSummarisableTimeValueModel::Range::absmean, AudioLevel::dB_to_multiplier(), dBscale(), dBScale, SingleColourLayer::getBackgroundQColor(), SingleColourLayer::getBaseQColor(), getChannelArrangement(), DenseTimeValueModel::getChannelCount(), SingleColourLayer::getForegroundQColor(), getNormalizeGain(), SingleColourLayer::getPartialShades(), getSourceFramesForX(), RangeSummarisableTimeValueModel::getSummaries(), RangeSummarisableTimeValueModel::getSummaryBlockSize(), View::getViewManager(), getYForValue(), View::getZoomLevel(), View::hasLightBackground(), Model::isOK(), Model::isReady(), LinearScale, m_aggressive, m_autoNormalize, m_cache, m_cacheValid, m_cacheZoomLevel, m_channelMode, m_effectiveGains, m_gain, m_greyscale, m_model, m_scale, m_showMeans, RangeSummarisableTimeValueModel::Range::max, MergeChannels, meterdbs, MeterScale, RangeSummarisableTimeValueModel::Range::min, AudioLevel::multiplier_to_preview(), and ViewManager::shouldShowScaleGuides().
| QString WaveformLayer::getFeatureDescription | ( | View * | v, | |
| QPoint & | ||||
| ) | const [virtual] |
Reimplemented from Layer.
Definition at line 919 of file WaveformLayer.cpp.
References RealTime::frame2RealTime(), getChannelArrangement(), Model::getSampleRate(), getSourceFramesForX(), RangeSummarisableTimeValueModel::getSummaries(), RangeSummarisableTimeValueModel::getSummaryBlockSize(), View::getZoomLevel(), Model::isOK(), m_model, RangeSummarisableTimeValueModel::Range::max, RangeSummarisableTimeValueModel::Range::min, RealTime::msec(), AudioLevel::multiplier_to_dB(), RealTime::sec, and RealTime::toText().
| virtual ColourSignificance WaveformLayer::getLayerColourSignificance | ( | ) | const [inline, virtual] |
This should return the degree of meaning associated with colour in this layer.
If ColourAbsent, the layer does not use colour. If ColourIrrelevant, the layer is coloured and the colour may be set by the user, but it doesn't really matter what the colour is (for example, in a time ruler layer). If ColourDistinguishes, then the colour is used to distinguish this layer from other similar layers (e.g. for data layers). If ColourAndBackgroundSignificant, then the layer should be given greater weight than ColourDistinguishes layers when choosing a background colour (e.g. for waveforms). If ColourHasMeaningfulValue, colours are actually meaningful -- the view will then show selections using unfilled rectangles instead of translucent filled rectangles, so as not to disturb the colours underneath.
Reimplemented from SingleColourLayer.
Definition at line 45 of file WaveformLayer.h.
References Layer::ColourAndBackgroundSignificant.
| int WaveformLayer::getVerticalScaleWidth | ( | View * | v, | |
| QPainter & | ||||
| ) | const [virtual] |
Reimplemented from Layer.
Definition at line 1155 of file WaveformLayer.cpp.
References LinearScale, and m_scale.
| void WaveformLayer::paintVerticalScale | ( | View * | v, | |
| QPainter & | paint, | |||
| QRect | rect | |||
| ) | const [virtual] |
Reimplemented from Layer.
Definition at line 1166 of file WaveformLayer.cpp.
References AudioLevel::dB_to_multiplier(), dBScale, getChannelArrangement(), getYForValue(), Model::isOK(), LinearScale, m_effectiveGains, m_gain, m_model, m_scale, meterdbs, and MeterScale.
| void WaveformLayer::setModel | ( | const RangeSummarisableTimeValueModel * | model | ) |
Definition at line 59 of file WaveformLayer.cpp.
References Layer::connectSignals(), DenseTimeValueModel::getChannelCount(), Model::isOK(), Layer::layerParametersChanged(), m_cacheValid, m_channel, m_model, and Layer::modelReplaced().
Referenced by MainWindow::currentPaneChanged(), and MainWindow::mainModelChanged().
| Layer::PropertyList WaveformLayer::getProperties | ( | ) | const [virtual] |
Get a list of the names of all the supported properties on this container.
These should be fixed (i.e. not internationalized).
Reimplemented from SingleColourLayer.
Definition at line 87 of file WaveformLayer.cpp.
References DenseTimeValueModel::getChannelCount(), SingleColourLayer::getProperties(), m_channel, and m_model.
| QString WaveformLayer::getPropertyLabel | ( | const PropertyName & | ) | const [virtual] |
Reimplemented from SingleColourLayer.
Definition at line 102 of file WaveformLayer.cpp.
References SingleColourLayer::getPropertyLabel().
| QString WaveformLayer::getPropertyIconName | ( | const PropertyName & | ) | const [virtual] |
Definition at line 112 of file WaveformLayer.cpp.
| Layer::PropertyType WaveformLayer::getPropertyType | ( | const PropertyName & | ) | const [virtual] |
Reimplemented from SingleColourLayer.
Definition at line 119 of file WaveformLayer.cpp.
References SingleColourLayer::getPropertyType(), PropertyContainer::RangeProperty, PropertyContainer::ToggleProperty, and PropertyContainer::ValueProperty.
| QString WaveformLayer::getPropertyGroupName | ( | const PropertyName & | ) | const [virtual] |
| int WaveformLayer::getPropertyRangeAndValue | ( | const PropertyName & | , | |
| int * | min, | |||
| int * | max, | |||
| int * | deflt | |||
| ) | const [virtual] |
Reimplemented from SingleColourLayer.
Definition at line 138 of file WaveformLayer.cpp.
References SingleColourLayer::getPropertyRangeAndValue(), m_autoNormalize, m_channelMode, m_gain, m_scale, MergeChannels, and MixChannels.
| QString WaveformLayer::getPropertyValueLabel | ( | const PropertyName & | , | |
| int | value | |||
| ) | const [virtual] |
Reimplemented from SingleColourLayer.
Definition at line 188 of file WaveformLayer.cpp.
References SingleColourLayer::getPropertyValueLabel().
| RangeMapper * WaveformLayer::getNewPropertyRangeMapper | ( | const PropertyName & | ) | const [virtual] |
| void WaveformLayer::setProperty | ( | const PropertyName & | , | |
| int | value | |||
| ) | [virtual] |
Reimplemented from SingleColourLayer.
Definition at line 220 of file WaveformLayer.cpp.
References dBScale, LinearScale, MergeChannels, MeterScale, MixChannels, SeparateChannels, setAutoNormalize(), setChannelMode(), setGain(), SingleColourLayer::setProperty(), and setScale().
| void WaveformLayer::setGain | ( | float | gain | ) |
Set the gain multiplier for sample values in this view.
The default is 1.0.
Definition at line 243 of file WaveformLayer.cpp.
References Layer::layerParametersChanged(), m_cacheValid, m_gain, and Layer::verticalZoomChanged().
Referenced by setProperties(), setProperty(), and setVerticalZoomStep().
| float WaveformLayer::getGain | ( | ) | const [inline] |
| void WaveformLayer::setAutoNormalize | ( | bool | ) |
Toggle automatic normalization of the currently visible waveform.
Definition at line 253 of file WaveformLayer.cpp.
References Layer::layerParametersChanged(), m_autoNormalize, and m_cacheValid.
Referenced by setProperties(), and setProperty().
| bool WaveformLayer::getAutoNormalize | ( | ) | const [inline] |
| void WaveformLayer::setShowMeans | ( | bool | ) |
Set whether to display mean values as a lighter-coloured area beneath the peaks.
Rendering will be slightly faster without but arguably prettier with.
The default is to display means.
Definition at line 262 of file WaveformLayer.cpp.
References Layer::layerParametersChanged(), m_cacheValid, and m_showMeans.
Referenced by setProperties().
| bool WaveformLayer::getShowMeans | ( | ) | const [inline] |
| void WaveformLayer::setUseGreyscale | ( | bool | ) |
Set whether to use shades of grey (or of the base colour) to provide additional perceived vertical resolution (i.e.
using half-filled pixels to represent levels that only just meet the pixel unit boundary). This provides a small improvement in waveform quality at a small cost in rendering speed.
The default is to use greyscale.
Definition at line 271 of file WaveformLayer.cpp.
References Layer::layerParametersChanged(), m_cacheValid, and m_greyscale.
Referenced by setProperties().
| bool WaveformLayer::getUseGreyscale | ( | ) | const [inline] |
| void WaveformLayer::setChannelMode | ( | ChannelMode | ) |
Specify whether multi-channel audio data should be displayed with a separate axis per channel (SeparateChannels), with a single synthetic axis showing channel 0 above the axis and channel 1 below (MergeChannels), or with a single axis showing the average of the channels (MixChannels).
MergeChannels does not work for files with more than 2 channels.
The default is SeparateChannels.
Definition at line 280 of file WaveformLayer.cpp.
References Layer::layerParametersChanged(), m_cacheValid, and m_channelMode.
Referenced by MainWindow::MainWindow(), setProperties(), and setProperty().
| ChannelMode WaveformLayer::getChannelMode | ( | ) | const [inline] |
| void WaveformLayer::setChannel | ( | int | ) |
Specify the channel to use from the source model.
A value of -1 means to show all available channels (laid out to the channel mode). The default is -1.
Definition at line 289 of file