Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
chaos.hpp File Reference

Deterministic chaos as a control source. More...

#include <algorithm>
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Classes

class  pulp::signal::LogisticMapT< SampleType >
 Logistic map: x <- r * x * (1 - x) (May, "Simple mathematical models with very complicated dynamics", Nature 261, 1976). More...

Namespaces

namespace  pulp
namespace  pulp::signal

Typedefs

using pulp::signal::LogisticMap = LogisticMapT<float>
using pulp::signal::LogisticMap64 = LogisticMapT<double>

Detailed Description

Deterministic chaos as a control source.

RT contract: scalar state, no owned memory. set_r(), seed(), next(), and reset() allocate nothing and are audio-thread safe.

USE: one cheap deterministic source that runs the whole way from periodic to chaotic on a single control, for generative patches. Unlike an LFO it never repeats; unlike noise its trajectory is continuous and its character changes with the control rather than only its amplitude. Step it at control rate — at audio rate it is broadband noise with extra steps.