Sound Meter  0.8.0
Fully resizing juce meter module.
sd_MeterHelpers.h File Reference

Classes

struct  sd::SoundMeter::Padding
 Amount of padding to use on the meters. More...
 
struct  sd::SoundMeter::Options
 All meter options for appearance and functionality. More...
 

Namespaces

 sd
 Namespace containing all concerning the sound_meter module.
 
 sd::SoundMeter
 
 sd::SoundMeter::Constants
 Various meter helper constants.
 
 sd::SoundMeter::Helpers
 Various meter helper functions.
 

Enumerations

enum class  sd::SoundMeter::NotificationOptions { sd::SoundMeter::notify , sd::SoundMeter::dontNotify }
 Type indicating whether to notify the listeners or not. More...
 
enum class  sd::SoundMeter::LabelStripPosition { sd::SoundMeter::left , sd::SoundMeter::right , sd::SoundMeter::none }
 Position of the label strip. More...
 

Functions

juce::Rectangle< int > sd::SoundMeter::Helpers::applyPadding (const juce::Rectangle< int > &rectToPad, Padding paddingToApply)
 Apply padding to a rectangle. More...
 

Variables

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