Skip to content

Commit

Permalink
[gain] Add manual url
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 14, 2024
1 parent 36b08a8 commit ccd98fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 2 additions & 0 deletions examples/Advanced/Utilities/Gain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class Gain
halp_meta(author, "ossia score")
halp_meta(description, "A simple volume control")
halp_meta(uuid, "6c158669-0f81-41c9-8cc6-45820dcda867")
halp_meta(
manual_url, "https://ossia.io/score-docs/processes/audio-utilities.html#gain")

struct inputs
{
Expand Down
1 change: 1 addition & 0 deletions include/avnd/binding/ossia/data_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class safe_node<T> : public safe_node_base<T, safe_node<T>>
OSSIA_MAXIMUM_INLINE
void run(const ossia::token_request& tk, ossia::exec_state_facade st) noexcept override
{
// FIXME handle splitting execution multiple times per-input for e.g. time_independent mapping objects
if constexpr(avnd::tag_single_exec<T>)
{
if(std::exchange(exec_once, true))
Expand Down
27 changes: 14 additions & 13 deletions include/avnd/binding/ossia/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,24 +1007,25 @@ struct tick_info
};
return sig{.num = tk.signature.upper, .denom = tk.signature.lower};
}
double speed() const noexcept { return tk.speed; };
double tempo() const noexcept { return tk.tempo; };
double relative_position() const noexcept { return tk.position(); };
double parent_duration() const noexcept { return tk.parent_duration.impl; };
double position_in_seconds() const noexcept
{
return position_in_nanoseconds() / 1e9;
};
double speed() const noexcept { return tk.speed; }
double tempo() const noexcept { return tk.tempo; }
double relative_position() const noexcept { return tk.position(); }
double parent_duration() const noexcept { return tk.parent_duration.impl; }
double position_in_seconds() const noexcept { return position_in_nanoseconds() / 1e9; }
double position_in_nanoseconds() const noexcept
{
return (st.currentDate() - st.startDate());
};
}
double last_signature_change() const noexcept
{
return tk.musical_start_last_signature;
}
double start_position_in_quarters() const noexcept
{
return tk.musical_start_position;
};
double end_position_in_quarters() const noexcept { return tk.musical_end_position; };
double bar_at_start() const noexcept { return tk.musical_start_last_bar; };
double bar_at_end() const noexcept { return tk.musical_end_last_bar; };
}
double end_position_in_quarters() const noexcept { return tk.musical_end_position; }
double bar_at_start() const noexcept { return tk.musical_start_last_bar; }
double bar_at_end() const noexcept { return tk.musical_end_last_bar; }
};
}

0 comments on commit ccd98fc

Please sign in to comment.