Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
param_subscription.hpp
Go to the documentation of this file.
1// param_subscription.hpp - one JS subscription to a parameter's movement.
2//
3// Split out of widget_bridge.hpp so adding to the paramchange machinery does
4// not widen that header's recompile blast radius (see the registrars.hpp
5// extraction note in hotspot_size_guard.json).
6
7#pragma once
8
10
11#include <cstdint>
12#include <string>
13
14namespace pulp::view {
15
26 std::uint32_t id = 0;
28 std::string param_name;
29
33 float last_value = 0.0f;
34 float last_modulated = 0.0f;
37 bool has_playing = false;
38 float last_playing = 0.0f;
39};
40
41} // namespace pulp::view
uint32_t ParamID
Unique parameter identifier, stable across plugin versions.
Definition parameter.hpp:55
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
A live onParamChanged registration.
Definition param_subscription.hpp:20
state::ParamID param_id
resolved once at subscribe time
Definition param_subscription.hpp:27
bool has_playing
The value a modulator is playing (StateStore::displayed_modulation), normalized; has_playing false wh...
Definition param_subscription.hpp:37
std::string param_name
echoed in the payload
Definition param_subscription.hpp:28
float last_playing
Definition param_subscription.hpp:38
float last_value
Seeded from the store at subscribe time so subscribing is not itself reported as a change.
Definition param_subscription.hpp:33
float last_modulated
Definition param_subscription.hpp:34