Sound Meter 0.9.0
Fully resizing logarithmic JUCE meter module.
Loading...
Searching...
No Matches
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 = 25
 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 = 14.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 kMinLevel_db = -96.0f
 Minimum 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 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...
 
static constexpr auto kLabelStripId = "label_strip"
 ID (name) of the label-strip (master fader). 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).

◆ kDefaultHeaderHeight

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

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

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

◆ 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 = 14.0f
staticconstexpr

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

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

◆ kLabelStripTextPadding

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

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

◆ 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).

◆ kMinLevel_db

constexpr auto sd::SoundMeter::Constants::kMinLevel_db = -96.0f
staticconstexpr

◆ kMinDecay_ms

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

Minimum meter decay speed (in milliseconds).

◆ kMaxDecay_ms

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

Maximum meter decay speed (in milliseconds).

◆ 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).

◆ 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().

◆ 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().

◆ kLabelStripId

constexpr auto sd::SoundMeter::Constants::kLabelStripId = "label_strip"
staticconstexpr

ID (name) of the label-strip (master fader).