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

#include <envelopes.h>

Detailed Description

template<typename Sample = double>
class signalsmith::envelopes::BoxSum< Sample >

Variable-width rectangular sum.

Methods

 BoxSum (int maxLength)
 
void resize (int maxLength)
 Sets the maximum size (and reset contents) More...
 
void reset (Sample value=Sample())
 Resets (with an optional "fill" value) More...
 
Sample read (int width)
 
void write (Sample value)
 
Sample readWrite (Sample value, int width)
 

Method Details

◆ reset()

template<typename Sample = double>
void signalsmith::envelopes::BoxSum< Sample >::reset ( Sample  value = Sample())
inline

Resets (with an optional "fill" value)

◆ resize()

template<typename Sample = double>
void signalsmith::envelopes::BoxSum< Sample >::resize ( int  maxLength)
inline

Sets the maximum size (and reset contents)