2#include <ossia/dataflow/graph_node.hpp>
3#include <ossia/dataflow/port.hpp>
8class percentage final :
public ossia::nonowning_graph_node
11 ossia::value_outlet outlet;
12 percentage(ossia::destination d)
13 : outlet{&d.address()}
15 m_outlets.push_back(&outlet);
18 std::string label() const noexcept
override {
return "percentage"; }
19 void run(
const ossia::token_request& tk, ossia::exec_state_facade e)
noexcept override
21 const auto [tick_start, d] = e.timings(tk);
22 outlet->write_value((
float)tk.position(), tick_start);