openshot-audio
0.1.5
|
#include <juce_NormalisableRange.h>
Public Member Functions | |
NormalisableRange () noexcept | |
NormalisableRange (const NormalisableRange &other) noexcept | |
NormalisableRange & | operator= (const NormalisableRange &other) noexcept |
NormalisableRange (ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor) noexcept | |
NormalisableRange (ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue) noexcept | |
NormalisableRange (ValueType rangeStart, ValueType rangeEnd) noexcept | |
ValueType | convertTo0to1 (ValueType v) const noexcept |
ValueType | convertFrom0to1 (ValueType proportion) const noexcept |
ValueType | snapToLegalValue (ValueType v) const noexcept |
Public Attributes | |
ValueType | start |
ValueType | end |
ValueType | interval |
ValueType | skew |
Represents a mapping between an arbitrary range of values and a normalised 0->1 range.
The properties of the mapping also include an optional snapping interval and skew-factor.
|
inlinenoexcept |
Creates a continuous range that performs a dummy mapping.
|
inlinenoexcept |
Creates a copy of another range.
|
inlinenoexcept |
Creates a NormalisableRange with a given range, interval and skew factor.
|
inlinenoexcept |
Creates a NormalisableRange with a given range and interval, but a dummy skew-factor.
|
inlinenoexcept |
Creates a NormalisableRange with a given range, continuous interval, but a dummy skew-factor.
|
inlinenoexcept |
Uses the properties of this mapping to convert a normalised 0->1 value to its full-range representation.
|
inlinenoexcept |
Uses the properties of this mapping to convert a non-normalised value to its 0->1 representation.
|
inlinenoexcept |
Creates a copy of another range.
|
inlinenoexcept |
Takes a non-normalised value and snaps it based on the interval property of this NormalisedRange.
ValueType NormalisableRange< ValueType >::end |
The end of the non-normalised range.
ValueType NormalisableRange< ValueType >::interval |
The snapping interval that should be used (in non-normalised value). Use 0 for a continuous range.
ValueType NormalisableRange< ValueType >::skew |
An optional skew factor that alters the way values are distribute across the range.
The skew factor lets you skew the mapping logarithmically so that larger or smaller values are given a larger proportion of the avilable space.
A factor of 1.0 has no skewing effect at all. If the factor is < 1.0, the lower end of the range will fill more of the slider's length; if the factor is > 1.0, the upper end of the range will be expanded.
ValueType NormalisableRange< ValueType >::start |
The start of the non-normalised range.