score2OSSIA.hpp
1 #pragma once
2 #include <State/Expression.hpp>
3 #include <State/Value.hpp>
4 
5 #include <Process/TimeValue.hpp>
6 
7 #include <ossia/editor/expression/expression.hpp>
8 #include <ossia/editor/scenario/time_value.hpp>
9 
10 #include <score_plugin_scenario_export.h>
11 
12 #include <memory>
13 namespace Execution
14 {
15 struct Context;
16 }
17 namespace Scenario
18 {
19 class StateModel;
20 }
21 namespace ossia
22 {
23 struct execution_state;
24 class state;
25 } // namespace OSSIA
26 namespace Engine
27 {
28 namespace score_to_ossia
29 {
30 
31 void state(
32  ossia::state& ossia_state, const Scenario::StateModel& score_state,
33  const ossia::execution_state& ctx);
34 
35 SCORE_PLUGIN_SCENARIO_EXPORT
36 ossia::state
37 state(const Scenario::StateModel& score_state, const ossia::execution_state& ctx);
38 
39 SCORE_PLUGIN_SCENARIO_EXPORT
40 void play_state_from_ui(
41  const Scenario::StateModel& score_state, const Execution::Context& ctx);
42 
43 ossia::expression_ptr
44 condition_expression(const State::Expression& expr, const ossia::execution_state&);
45 ossia::expression_ptr
46 trigger_expression(const State::Expression& expr, const ossia::execution_state&);
47 }
48 }
Definition: StateModel.hpp:63
Link of score with the OSSIA API execution engine.
Definition: CurveConversion.hpp:8
Components used for the execution of a score.
Definition: ProcessComponent.cpp:12
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ExecutionContext.hpp:75