Loading...
Searching...
No Matches
EmptyMapping.hpp
1#pragma once
2#include <Fx/Types.hpp>
3
4#include <ossia/dataflow/port.hpp>
5
6#include <halp/audio.hpp>
7#include <halp/callback.hpp>
8#include <halp/controls.hpp>
9#include <halp/meta.hpp>
10#include <halp/midi.hpp>
11
12namespace Nodes
13{
14// FIXME all incorrect when token_request smaller than tick
15namespace EmptyValueMapping
16{
17struct Node
18{
19 halp_meta(name, "Empty value mapper")
20 halp_meta(c_name, "EmptyValueMapper")
21 halp_meta(category, "Control/Mappings")
22 halp_meta(author, "ossia score")
23 halp_meta(manual_url, "")
24 halp_meta(description, "Copies its inputs to its outputs")
25 halp_meta(uuid, "70B12B42-BB4B-4A13-861B-53C577601186");
26
27 struct
28 {
29 ossia_port<"in", ossia::value_port> port{};
30 } inputs;
31 struct
32 {
33 ossia_port<"out", ossia::value_port> port{};
34 } outputs;
35
36 void operator()() { outputs.port.value->set_data(inputs.port.value->get_data()); }
37};
38}
39
40namespace EmptyMidiMapping
41{
42struct Node
43{
44 halp_meta(name, "Empty midi mapper")
45 halp_meta(c_name, "EmptyMidiMapper")
46 halp_meta(category, "Control/Mappings")
47 halp_meta(author, "ossia score")
48 halp_meta(manual_url, "")
49 halp_meta(description, "Copies its inputs to its outputs")
50 halp_meta(uuid, "2CE4F3F3-E04F-48CD-B81C-1F6537EC8CFA");
51
52 struct
53 {
54 ossia_port<"in", ossia::midi_port> port{};
55 } inputs;
56 struct
57 {
58 ossia_port<"out", ossia::midi_port> port{};
59 } outputs;
60
61 void operator()() { outputs.port.value->messages = inputs.port.value->messages; }
62};
63}
64
65namespace EmptyAudioMapping
66{
67struct Node
68{
69 halp_meta(name, "Empty audio mapper")
70 halp_meta(c_name, "EmptyAudioMapper")
71 halp_meta(category, "Control/Mappings")
72 halp_meta(author, "ossia score")
73 halp_meta(manual_url, "")
74 halp_meta(description, "Copies its inputs to its outputs")
75 halp_meta(uuid, "D074CC6C-D1CB-47F8-871D-CC949D8EEBEC");
76
77 struct
78 {
79 ossia_port<"in", ossia::audio_port> port{};
80 } inputs;
81 struct
82 {
83 ossia_port<"out", ossia::audio_port> port{};
84 } outputs;
85
86 void operator()() { *outputs.port.value = *inputs.port.value; }
87};
88}
89}
Definition EmptyMapping.hpp:68
Definition EmptyMapping.hpp:43
Definition EmptyMapping.hpp:18
Definition Types.hpp:39