Sound Meter 0.9.0
Fully resizing logarithmic JUCE meter module.
Loading...
Searching...
No Matches
sd::SoundMeter::SegmentOptions Struct Reference

Options defining the meter segments. More...

#include <sd_MeterHelpers.h>

Public Attributes

juce::Range< float > levelRange { Constants::kMinLevel_db, Constants::kMaxLevel_db }
 The range of the segment in decibels. More...
 
juce::Range< float > meterRange { 0.0f, 1.0f }
 The range of the segment in the meter (0.0f - 1.0f, with 0.0f being the bottom of the meter). More...
 
juce::Colour segmentColour { juce::Colours::yellow }
 The colour of the segment. More...
 
juce::Colour nextSegmentColour { segmentColour.brighter() }
 The second colour of the segment (for use in gradients). More...
 

Detailed Description

Options defining the meter segments.

Member Data Documentation

◆ levelRange

juce::Range<float> sd::SoundMeter::SegmentOptions::levelRange { Constants::kMinLevel_db, Constants::kMaxLevel_db }

The range of the segment in decibels.

Referenced by sd::SoundMeter::Segment::setMeterOptions(), and sd::SoundMeter::Segment::setSegmentOptions().

◆ meterRange

juce::Range<float> sd::SoundMeter::SegmentOptions::meterRange { 0.0f, 1.0f }

The range of the segment in the meter (0.0f - 1.0f, with 0.0f being the bottom of the meter).

Referenced by sd::SoundMeter::Segment::setMeterBounds(), and sd::SoundMeter::Segment::setSegmentOptions().

◆ segmentColour

juce::Colour sd::SoundMeter::SegmentOptions::segmentColour { juce::Colours::yellow }

The colour of the segment.

Referenced by sd::SoundMeter::Segment::draw(), and sd::SoundMeter::Segment::setMeterBounds().

◆ nextSegmentColour

juce::Colour sd::SoundMeter::SegmentOptions::nextSegmentColour { segmentColour.brighter() }

The second colour of the segment (for use in gradients).

Referenced by sd::SoundMeter::Segment::setMeterBounds().


The documentation for this struct was generated from the following file: