Sound Meter  0.8.0
Fully resizing juce meter module.
sd::SoundMeter::Constants Namespace Reference

Various meter helper constants. More...

Variables

static constexpr auto kMinWidth = 2
 Minimum meter width (in pixels). More...
 
static constexpr auto kMaxWidth = 500
 Maximum meter width (in pixels). More...
 
static constexpr auto kPeakHoldHeight = 2
 Height of the peak hold strip (in pixels). More...
 
static constexpr auto kDefaultHeaderHeight = 30
 Default height of the 'header' part (in pixels). More...
 
static constexpr auto kDefaultHeaderLabelWidth = 30
 Default 'header' label width (in pixels). More...
 
static constexpr auto kDefaultHeaderFontHeight = 12.0f
 Default height of the font used in the 'header' part (in pixels). More...
 
static constexpr auto kLabelStripTextPadding = 2
 Padding around the text in a label strip (in pixels). More...
 
static constexpr auto kLabelStripLeftPadding = 5
 Padding (in pixels) on the left side of the label strip (which can double as a master fader). More...
 
static constexpr auto kFaderRightPadding = 1
 Padding (in pixels) on the right side of the channel faders. More...
 
static constexpr auto kMaxLevel_db = 0.0f
 Maximum meter level (in db). More...
 
static constexpr auto kMinDecay_ms = 100.0f
 Minimum meter decay speed (in milliseconds). More...
 
static constexpr auto kMaxDecay_ms = 4000.0f
 Maximum meter decay speed (in milliseconds). More...
 
static constexpr auto kDefaultDecay_ms = 1000.0f
 Default meter decay speed (in milliseconds). More...
 
static constexpr auto kTickMarkHeight = 2
 Height of a tick mark (in pixels). More...
 
static constexpr auto kFaderFadeTime_ms = 2500
 Fader fade out time (in milliseconds). More...
 
static constexpr auto kFaderSensitivity = 10.0f
 Fader sensitivity value. Must be a positive value > 0. More...
 
static constexpr auto kFaderAlphaMax = 0.3f
 Maximum transparency (alpha) of the fader overlay. More...
 
static constexpr auto kWarningLevel_db = -9.0f
 Dividing level between 'normal' and 'warning' segments (in decibels). More...
 
static constexpr auto kPeakLevel_db = -3.0f
 Dividing level between 'warning' and 'peak' segments (in decibels). More...
 
static constexpr auto kMinModeHeightThreshold = 150
 Meter minimum mode height threshold in pixels (min. mod is just the meter. not value, ticks or fader). More...
 
static constexpr auto kMinModeWidthThreshold = 15
 Meter minimum mode width threshold in pixels (min. mod is just the meter. not value, ticks or fader). More...
 
static constexpr auto kMetersPanelId = "meters_panel"
 ID (name) of all components in the meters panel. More...
 

Detailed Description

Various meter helper constants.

Variable Documentation

◆ kMinWidth

constexpr auto sd::SoundMeter::Constants::kMinWidth = 2
staticconstexpr

◆ kMaxWidth

constexpr auto sd::SoundMeter::Constants::kMaxWidth = 500
staticconstexpr

Maximum meter width (in pixels).

Referenced by sd::SoundMeter::MetersComponent::resized().

◆ kPeakHoldHeight

constexpr auto sd::SoundMeter::Constants::kPeakHoldHeight = 2
staticconstexpr

Height of the peak hold strip (in pixels).

Referenced by sd::SoundMeter::Level::drawPeakHold().

◆ kDefaultHeaderHeight

constexpr auto sd::SoundMeter::Constants::kDefaultHeaderHeight = 30
staticconstexpr

Default height of the 'header' part (in pixels).

Referenced by sd::SoundMeter::Level::drawPeakValue(), and sd::SoundMeter::MeterChannel::resized().

◆ kDefaultHeaderLabelWidth

constexpr auto sd::SoundMeter::Constants::kDefaultHeaderLabelWidth = 30
staticconstexpr

Default 'header' label width (in pixels).

Referenced by sd::SoundMeter::MetersComponent::resized(), and sd::SoundMeter::MetersComponent::setChannelNames().

◆ kDefaultHeaderFontHeight

constexpr auto sd::SoundMeter::Constants::kDefaultHeaderFontHeight = 12.0f
staticconstexpr

Default height of the font used in the 'header' part (in pixels).

Referenced by sd::SoundMeter::MeterChannel::setFont().

◆ kLabelStripTextPadding

constexpr auto sd::SoundMeter::Constants::kLabelStripTextPadding = 2
staticconstexpr

Padding around the text in a label strip (in pixels).

Referenced by sd::SoundMeter::Level::drawLabels().

◆ kLabelStripLeftPadding

constexpr auto sd::SoundMeter::Constants::kLabelStripLeftPadding = 5
staticconstexpr

Padding (in pixels) on the left side of the label strip (which can double as a master fader).

Referenced by sd::SoundMeter::MetersComponent::setChannelNames().

◆ kFaderRightPadding

constexpr auto sd::SoundMeter::Constants::kFaderRightPadding = 1
staticconstexpr

Padding (in pixels) on the right side of the channel faders.

Referenced by sd::SoundMeter::MetersComponent::setChannelNames().

◆ kMaxLevel_db

constexpr auto sd::SoundMeter::Constants::kMaxLevel_db = 0.0f
staticconstexpr

Maximum meter level (in db).

◆ kMinDecay_ms

constexpr auto sd::SoundMeter::Constants::kMinDecay_ms = 100.0f
staticconstexpr

Minimum meter decay speed (in milliseconds).

Referenced by sd::SoundMeter::Level::setDecay().

◆ kMaxDecay_ms

constexpr auto sd::SoundMeter::Constants::kMaxDecay_ms = 4000.0f
staticconstexpr

Maximum meter decay speed (in milliseconds).

Referenced by sd::SoundMeter::Level::setDecay().

◆ kDefaultDecay_ms

constexpr auto sd::SoundMeter::Constants::kDefaultDecay_ms = 1000.0f
staticconstexpr

Default meter decay speed (in milliseconds).

◆ kTickMarkHeight

constexpr auto sd::SoundMeter::Constants::kTickMarkHeight = 2
staticconstexpr

Height of a tick mark (in pixels).

Referenced by sd::SoundMeter::Level::drawTickMarks().

◆ kFaderFadeTime_ms

constexpr auto sd::SoundMeter::Constants::kFaderFadeTime_ms = 2500
staticconstexpr

Fader fade out time (in milliseconds).

Referenced by sd::SoundMeter::Fader::draw().

◆ kFaderSensitivity

constexpr auto sd::SoundMeter::Constants::kFaderSensitivity = 10.0f
staticconstexpr

Fader sensitivity value. Must be a positive value > 0.

◆ kFaderAlphaMax

constexpr auto sd::SoundMeter::Constants::kFaderAlphaMax = 0.3f
staticconstexpr

Maximum transparency (alpha) of the fader overlay.

Referenced by sd::SoundMeter::Fader::draw().

◆ kWarningLevel_db

constexpr auto sd::SoundMeter::Constants::kWarningLevel_db = -9.0f
staticconstexpr

Dividing level between 'normal' and 'warning' segments (in decibels).

◆ kPeakLevel_db

constexpr auto sd::SoundMeter::Constants::kPeakLevel_db = -3.0f
staticconstexpr

Dividing level between 'warning' and 'peak' segments (in decibels).

◆ kMinModeHeightThreshold

constexpr auto sd::SoundMeter::Constants::kMinModeHeightThreshold = 150
staticconstexpr

Meter minimum mode height threshold in pixels (min. mod is just the meter. not value, ticks or fader).

Referenced by sd::SoundMeter::MeterChannel::autoSetMinimalMode().

◆ kMinModeWidthThreshold

constexpr auto sd::SoundMeter::Constants::kMinModeWidthThreshold = 15
staticconstexpr

Meter minimum mode width threshold in pixels (min. mod is just the meter. not value, ticks or fader).

Referenced by sd::SoundMeter::MeterChannel::autoSetMinimalMode().

◆ kMetersPanelId

constexpr auto sd::SoundMeter::Constants::kMetersPanelId = "meters_panel"
staticconstexpr

ID (name) of all components in the meters panel.

Referenced by sd::SoundMeter::MetersComponent::MetersComponent().