DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::TruePeakLoops< T > Struct Template Reference

#include <TruePeakDetector.h>

Static Public Member Functions

static void raiseToReadings (const T *s, const T *q, const T *h, const T *t, T *peak, int n) noexcept
 Raises peak[i] to gridReading(s, q, h, t, i) for i in [0, n).
 
static T largestFiniteReading (const T *s, const T *q, const T *h, const T *t, int n, T start) noexcept
 The largest finite gridReading() of the positions [0, n) and start.
 
static void raiseToMagnitudes (T *dst, const T *src, int n) noexcept
 Raises dst[i] to |src[i]| for i in [0, n).
 
static T largestFiniteMagnitude (const T *v, int count, T start) noexcept
 The largest finite magnitude among count values and start.
 
static void raiseToEighthReadings (const T *a, const T *e, T *peak, int n) noexcept
 
static T largestFiniteEighthCrest (const T *a, const T *e, int points, T start) noexcept
 

Detailed Description

template<typename T>
struct dspark::detail::TruePeakLoops< T >

Definition at line 436 of file TruePeakDetector.h.

Member Function Documentation

◆ largestFiniteEighthCrest()

template<typename T >
static T dspark::detail::TruePeakLoops< T >::largestFiniteEighthCrest ( const T *  a,
const T *  e,
int  points,
T  start 
)
inlinestaticnoexcept

The largest finite crest of the points [0, points) of an 8x grid and start.

Definition at line 501 of file TruePeakDetector.h.

◆ largestFiniteMagnitude()

template<typename T >
static T dspark::detail::TruePeakLoops< T >::largestFiniteMagnitude ( const T *  v,
int  count,
T  start 
)
inlinestaticnoexcept

The largest finite magnitude among count values and start.

Definition at line 476 of file TruePeakDetector.h.

◆ largestFiniteReading()

template<typename T >
static T dspark::detail::TruePeakLoops< T >::largestFiniteReading ( const T *  s,
const T *  q,
const T *  h,
const T *  t,
int  n,
T  start 
)
inlinestaticnoexcept

The largest finite gridReading() of the positions [0, n) and start.

Definition at line 452 of file TruePeakDetector.h.

◆ raiseToEighthReadings()

template<typename T >
static void dspark::detail::TruePeakLoops< T >::raiseToEighthReadings ( const T *  a,
const T *  e,
T *  peak,
int  n 
)
inlinestaticnoexcept

Raises peak[i] to the reading of sample i of an 8x grid (see raiseToEighthSamples()) for i in [0, n).

Definition at line 487 of file TruePeakDetector.h.

◆ raiseToMagnitudes()

template<typename T >
static void dspark::detail::TruePeakLoops< T >::raiseToMagnitudes ( T *  dst,
const T *  src,
int  n 
)
inlinestaticnoexcept

Raises dst[i] to |src[i]| for i in [0, n).

Definition at line 463 of file TruePeakDetector.h.

◆ raiseToReadings()

template<typename T >
static void dspark::detail::TruePeakLoops< T >::raiseToReadings ( const T *  s,
const T *  q,
const T *  h,
const T *  t,
T *  peak,
int  n 
)
inlinestaticnoexcept

Raises peak[i] to gridReading(s, q, h, t, i) for i in [0, n).

Definition at line 439 of file TruePeakDetector.h.


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