Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::IndexedControlT< SampleType > Class Template Reference

Read an externally indexed control waveform. More...

#include <indexed_control.hpp>

Public Member Functions

void set_table (std::span< const SampleType > table) noexcept
SampleType process (double index) const noexcept

Detailed Description

template<typename SampleType = float>
class pulp::signal::IndexedControlT< SampleType >

Read an externally indexed control waveform.

Index is in table samples and may advance, pause, or reverse. The owner keeps the table alive and stable until this view is replaced; a zero length table returns zero. Out-of-range indices hold the nearest endpoint, and non-finite indices return zero.

Member Function Documentation

◆ process()

template<typename SampleType = float>
SampleType pulp::signal::IndexedControlT< SampleType >::process ( double index) const
inlinenoexcept

◆ set_table()

template<typename SampleType = float>
void pulp::signal::IndexedControlT< SampleType >::set_table ( std::span< const SampleType > table)
inlinenoexcept

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