Memoryless vs Stateful Nonlinearity
A waveshaper can bend every sample with a nonlinear function. But real analogue devices can also remember what just happened. Their response may depend on level, frequency, stored energy, feedback and previous samples.
z⁻¹ / STORE. Nonlinearity gives us the bend. Memory gives the bend a history.1. Same input value — must it always give the same output?
With a simple memoryless waveshaper, yes. If the input is +0.5, the function gives the same answer every time. A stateful system can give a different answer because its internal state has changed.
Transfer behaviour
Memoryless: one fixed input→output curve. Stateful: the path can differ depending on recent history.
Signal through time
Blue = input. Purple = processed output. Amber = internal state.
2. Watch the state build and recover
Use a burst rather than an endless sine. The signal excites the model, then stops. In the stateful version the internal condition does not necessarily vanish instantly.
This is deliberately a simplified teaching model, not a circuit model of any particular valve, transformer or tape machine. The point is the architecture: the present can depend on the past.
3. State can change while the signal is running
State does not have to mean “remember one old sample”. It can be a value that builds up and leaks away over time. Imagine a fictional component we call HEAT — or think of charge building and leaking away in a capacitor.
We can model that behaviour with numbers. The changing state can then alter another part of the processor:
“HEAT”
DRIVE / BIAS / FILTER
This is already familiar: an envelope follower is a dynamic state. Its value rises and falls according to the recent signal, and we use that changing value to control something else.
4. Why a static waveshaper is not automatically “a valve”
Static waveshaper
Fast, useful and capable of excellent saturation. The same instantaneous input produces the same instantaneous output.
Dynamic / stateful model
The response can change with recent signal history. Filters, feedback and other states can also sit around nonlinear elements.
Nonlinear does not mean irreversible
A nonlinear process changes the mathematical relationship between input and output, but that does not automatically mean information has been destroyed.
Some nonlinear functions are still one-to-one, so every output value points back to one unique input value:
Hard clipping is different. Several different input values can collapse onto the same output value:
Once that happens, the original value cannot be recovered uniquely.
So the important question is not simply “is it nonlinear?” but “does the transformation preserve enough information to be inverted?”
5. The toolbox comes back together
f(x)
f(x,state)
STORE
We have not invented a new universe. We have combined two primitives we already know:
6. How do we model a real device?
If a real amplifier, tape path or other processor is more complicated than one transfer curve, how might software reproduce it?