|
lmms
Cross-platform music production software
|
Stores a audio peak value pairing (i.e., minimum and maximum sample over some amount of time). More...
#include <SampleThumbnailCache.h>
Public Member Functions | |
| auto | operator+= (const Peak &other) -> Peak & |
| In-place accumulates another peak into this peak, expanding this one as necessary. | |
Public Attributes | |
| float | min = std::numeric_limits<float>::infinity() |
| The lowest audio sample found in this frame window. Initialized to positive infinity so that any real sample value will be immediately lower than it. | |
| float | max = -std::numeric_limits<float>::infinity() |
| The highest audio sample found in this frame window. Initialized to negative infinity so that any real sample value will be immediately higher than it. | |
Friends | |
| auto | operator+ (const Peak &left, const Peak &right) -> Peak |
| Combines two peaks together by getting the smallest minimum and largest maximum of the two. | |
Stores a audio peak value pairing (i.e., minimum and maximum sample over some amount of time).
Peaks track the absolute lowest and highest sample values over a specific time window.
In-place accumulates another peak into this peak, expanding this one as necessary.
Combines two peaks together by getting the smallest minimum and largest maximum of the two.
| float lmms::SampleThumbnailCache::Thumbnail::Peak::max = -std::numeric_limits<float>::infinity() |
The highest audio sample found in this frame window. Initialized to negative infinity so that any real sample value will be immediately higher than it.
| float lmms::SampleThumbnailCache::Thumbnail::Peak::min = std::numeric_limits<float>::infinity() |
The lowest audio sample found in this frame window. Initialized to positive infinity so that any real sample value will be immediately lower than it.