Loading...
Searching...
No Matches

Classes

struct  ins
 
struct  ui
 

Public Types

enum class  Mode { Limit , Debounce }
 
using tick = ossia::token_request
 

Public Member Functions

 halp_meta (name, "Rate Limiter") halp_meta(c_name
 
RateLimiter halp_meta (category, "Control/Mappings") halp_meta(manual_url
 
RateLimiter ossia score halp_meta (description, "Limit and quantize a value stream, or debounce after quiet milliseconds " "(debounce ignores quantization)") halp_meta(uuid
 
void reset () noexcept
 
void prepare (halp::setup) noexcept
 
void start () noexcept
 
void stop () noexcept
 
void transport (auto) noexcept
 
bool should_output (float quantif, int64_t ms, const tick &t)
 
void operator() (const tick &t)
 
void debounce (const tick &t, int64_t start, int64_t frames)
 

Public Attributes

RateLimiter https: halp_meta(author
 
struct Nodes::RateLimiter::Node::ins inputs
 
struct { 
 
   halp::timed_callback<"out", ossia::value >   out 
 
outputs 
 
ossia::exec_state_facade ossia_state
 
int64_t last_time {}
 
std::optional< ossia::value > pending
 
long double deadline {}
 
std::optional< int64_t > previous_end
 
Mode previous_mode {Mode::Limit}
 
ossia::small_vector< const ossia::timed_value *, 16 > ordered_events
 

Static Public Attributes

static constexpr int64_t flicks_per_ms = 705'600
 

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