-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqml_plugin.cpp
83 lines (60 loc) · 2.37 KB
/
qml_plugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#include "qml_plugin.hpp"
#include <wpn114audio/graph.hpp>
#include <wpn114audio/spatial.hpp>
#include <source/io/external.hpp>
#include <source/basics/audio/sinetest.hpp>
#include <source/basics/audio/vca.hpp>
#include <source/basics/audio/clock.hpp>
#include <source/basics/audio/peakrms.hpp>
#include <source/basics/midi/velocity-table.hpp>
#include <source/basics/midi/transposer.hpp>
#include <source/basics/midi/rwriter.hpp>
#include <QQmlEngine>
#include <qqml.h>
void qml_plugin::registerTypes(const char* uri)
{
Q_UNUSED(uri)
qmlRegisterUncreatableType<Dispatch, 1>
("WPN114.Audio", 1, 1, "Dispatch", "Uncreatable");
qmlRegisterUncreatableType<Node, 1>
("WPN114.Audio", 1, 1, "Node", "Uncreatable");
qmlRegisterUncreatableType<Spatial, 1>
("WPN114.Audio", 1, 1, "Spatial", "Uncreatable");
qmlRegisterUncreatableType<SpatialProcessor, 1>
("WPN114.Audio", 1, 1, "SpatialProcessor", "Uncreatable");
qmlRegisterUncreatableType<Port, 1>
("WPN114.Audio", 1, 1, "Port", "Uncreatable");
qmlRegisterUncreatableType<Routing, 1>
("WPN114.Audio", 1, 1, "Routing", "Uncreatable");
qmlRegisterUncreatableType<External, 1>
("WPN114.Audio", 1, 1, "External", "Uncreatable");
//=============================================================================================
// MODULES
//=============================================================================================
qmlRegisterType<Graph, 1>
("WPN114.Audio", 1, 1, "Graph");
qmlRegisterType<Backend, 1>
("WPN114.Audio", 1, 1, "Backend");
qmlRegisterType<Connection, 1>
("WPN114.Audio", 1, 1, "Connection");
qmlRegisterType<InputProxy, 1>
("WPN114.Audio", 1, 1, "Input");
qmlRegisterType<OutputProxy, 1>
("WPN114.Audio", 1, 1, "Output");
qmlRegisterType<Sinetest, 1>
("WPN114.Audio", 1, 1, "Sinetest");
qmlRegisterType<VCA, 1>
("WPN114.Audio", 1, 1, "VCA");
qmlRegisterType<PeakRMS, 1>
("WPN114.Audio", 1, 1, "PeakRMS");
qmlRegisterType<StereoPanner, 1>
("WPN114.Audio", 1, 1, "StereoPanner");
qmlRegisterType<Gateway, 1>
("WPN114.Audio", 1, 1, "MIDIGateway");
qmlRegisterType<Transposer, 1>
("WPN114.Audio", 1, 1, "MIDITransposer");
qmlRegisterType<VelocityMap, 1>
("WPN114.Audio", 1, 1, "VelocityMap");
qmlRegisterType<Clock, 1>
("WPN114.Audio", 1, 1, "SimpleClock");
}