Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::LogCurve Class Reference

#include <logcurve.h>

Inheritance diagram for ARDOUR::LogCurve:
[legend]

Public Member Functions

 LogCurve (float steepness=0.2, uint32_t len=0)
 
bool operator== (const LogCurve &other) const
 
bool operator!= (const LogCurve &other) const
 
float value (float frac) const
 
float value (uint32_t pos) const
 
float invert_value (float frac) const
 
float invert_value (uint32_t pos) const
 
void fill (float *vec, uint32_t veclen, bool invert) const
 
float steepness () const
 
uint32_t length () const
 
void set_steepness (float steepness)
 
void set_length (uint32_t len)
 

Public Attributes

Glib::Threads::Mutex lock
 

Protected Attributes

float a
 
float b
 
float S
 
uint32_t l
 

Detailed Description

Definition at line 32 of file logcurve.h.

Constructor & Destructor Documentation

◆ LogCurve()

ARDOUR::LogCurve::LogCurve ( float  steepness = 0.2,
uint32_t  len = 0 
)
inline

Definition at line 34 of file logcurve.h.

Member Function Documentation

◆ fill()

void ARDOUR::LogCurve::fill ( float *  vec,
uint32_t  veclen,
bool  invert 
) const
inline

Definition at line 65 of file logcurve.h.

◆ invert_value() [1/2]

float ARDOUR::LogCurve::invert_value ( float  frac) const
inline

Definition at line 57 of file logcurve.h.

◆ invert_value() [2/2]

float ARDOUR::LogCurve::invert_value ( uint32_t  pos) const
inline

Definition at line 61 of file logcurve.h.

◆ length()

uint32_t ARDOUR::LogCurve::length ( ) const
inline

Definition at line 91 of file logcurve.h.

◆ operator!=()

bool ARDOUR::LogCurve::operator!= ( const LogCurve other) const
inline

Definition at line 45 of file logcurve.h.

◆ operator==()

bool ARDOUR::LogCurve::operator== ( const LogCurve other) const
inline

Definition at line 41 of file logcurve.h.

◆ set_length()

void ARDOUR::LogCurve::set_length ( uint32_t  len)
inline

Definition at line 98 of file logcurve.h.

◆ set_steepness()

void ARDOUR::LogCurve::set_steepness ( float  steepness)
inline

Definition at line 93 of file logcurve.h.

◆ steepness()

float ARDOUR::LogCurve::steepness ( ) const
inline

Definition at line 90 of file logcurve.h.

◆ value() [1/2]

float ARDOUR::LogCurve::value ( float  frac) const
inline

Definition at line 49 of file logcurve.h.

◆ value() [2/2]

float ARDOUR::LogCurve::value ( uint32_t  pos) const
inline

Definition at line 53 of file logcurve.h.

Member Data Documentation

◆ a

float ARDOUR::LogCurve::a
protected

Definition at line 103 of file logcurve.h.

◆ b

float ARDOUR::LogCurve::b
protected

Definition at line 104 of file logcurve.h.

◆ l

uint32_t ARDOUR::LogCurve::l
protected

Definition at line 106 of file logcurve.h.

◆ lock

Glib::Threads::Mutex ARDOUR::LogCurve::lock
mutable

Definition at line 100 of file logcurve.h.

◆ S

float ARDOUR::LogCurve::S
protected

Definition at line 105 of file logcurve.h.


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