Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Methods
signalsmith::curves::Linear< Sample > Class Template Reference

#include <curves.h>

Detailed Description

template<typename Sample = double>
class signalsmith::curves::Linear< Sample >

Linear map for real values.

Methods

 Linear (Sample a0, Sample a1)
 
 Linear (Sample x0, Sample x1, Sample y0, Sample y1)
 Construct by from/to value pairs. More...
 
Sample operator() (Sample x) const
 
Sample dx () const
 
Linear inverse () const
 Returns the inverse map (with some numerical error) More...
 

Constructor & Destructor Documentation

◆ Linear()

template<typename Sample = double>
signalsmith::curves::Linear< Sample >::Linear ( Sample  x0,
Sample  x1,
Sample  y0,
Sample  y1 
)
inline

Construct by from/to value pairs.

Method Details

◆ inverse()

template<typename Sample = double>
Linear signalsmith::curves::Linear< Sample >::inverse ( ) const
inline

Returns the inverse map (with some numerical error)