drumstick  1.1.3
rtmidiinput.cpp
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'rtmidiinput.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.7)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../../../../../../../../../../../../../../../include/drumstick/rtmidiinput.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'rtmidiinput.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.12.7. It"
16 #error "cannot be used with the include files from this version of Qt."
17 #error "(The moc has changed too much.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
21 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
23 struct qt_meta_stringdata_drumstick__rt__MIDIInput_t {
24  QByteArrayData data[20];
25  char stringdata0[220];
26 };
27 #define QT_MOC_LITERAL(idx, ofs, len) \
28  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
29  qptrdiff(offsetof(qt_meta_stringdata_drumstick__rt__MIDIInput_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
32 static const qt_meta_stringdata_drumstick__rt__MIDIInput_t qt_meta_stringdata_drumstick__rt__MIDIInput = {
33  {
34 QT_MOC_LITERAL(0, 0, 24), // "drumstick::rt::MIDIInput"
35 QT_MOC_LITERAL(1, 25, 11), // "midiNoteOff"
36 QT_MOC_LITERAL(2, 37, 0), // ""
37 QT_MOC_LITERAL(3, 38, 4), // "chan"
38 QT_MOC_LITERAL(4, 43, 4), // "note"
39 QT_MOC_LITERAL(5, 48, 3), // "vel"
40 QT_MOC_LITERAL(6, 52, 10), // "midiNoteOn"
41 QT_MOC_LITERAL(7, 63, 15), // "midiKeyPressure"
42 QT_MOC_LITERAL(8, 79, 5), // "value"
43 QT_MOC_LITERAL(9, 85, 14), // "midiController"
44 QT_MOC_LITERAL(10, 100, 7), // "control"
45 QT_MOC_LITERAL(11, 108, 11), // "midiProgram"
46 QT_MOC_LITERAL(12, 120, 7), // "program"
47 QT_MOC_LITERAL(13, 128, 19), // "midiChannelPressure"
48 QT_MOC_LITERAL(14, 148, 13), // "midiPitchBend"
49 QT_MOC_LITERAL(15, 162, 9), // "midiSysex"
50 QT_MOC_LITERAL(16, 172, 4), // "data"
51 QT_MOC_LITERAL(17, 177, 16), // "midiSystemCommon"
52 QT_MOC_LITERAL(18, 194, 6), // "status"
53 QT_MOC_LITERAL(19, 201, 18) // "midiSystemRealtime"
54 
55  },
56  "drumstick::rt::MIDIInput\0midiNoteOff\0"
57  "\0chan\0note\0vel\0midiNoteOn\0midiKeyPressure\0"
58  "value\0midiController\0control\0midiProgram\0"
59  "program\0midiChannelPressure\0midiPitchBend\0"
60  "midiSysex\0data\0midiSystemCommon\0status\0"
61  "midiSystemRealtime"
62 };
63 #undef QT_MOC_LITERAL
64 
65 static const uint qt_meta_data_drumstick__rt__MIDIInput[] = {
66 
67  // content:
68  8, // revision
69  0, // classname
70  0, 0, // classinfo
71  10, 14, // methods
72  0, 0, // properties
73  0, 0, // enums/sets
74  0, 0, // constructors
75  0, // flags
76  10, // signalCount
77 
78  // signals: name, argc, parameters, tag, flags
79  1, 3, 64, 2, 0x06 /* Public */,
80  6, 3, 71, 2, 0x06 /* Public */,
81  7, 3, 78, 2, 0x06 /* Public */,
82  9, 3, 85, 2, 0x06 /* Public */,
83  11, 2, 92, 2, 0x06 /* Public */,
84  13, 2, 97, 2, 0x06 /* Public */,
85  14, 2, 102, 2, 0x06 /* Public */,
86  15, 1, 107, 2, 0x06 /* Public */,
87  17, 1, 110, 2, 0x06 /* Public */,
88  19, 1, 113, 2, 0x06 /* Public */,
89 
90  // signals: parameters
91  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5,
92  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5,
93  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 8,
94  QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 10, 8,
95  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 12,
96  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 8,
97  QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 8,
98  QMetaType::Void, QMetaType::QByteArray, 16,
99  QMetaType::Void, QMetaType::Int, 18,
100  QMetaType::Void, QMetaType::Int, 18,
101 
102  0 // eod
103 };
104 
105 void drumstick::rt::MIDIInput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
106 {
107  if (_c == QMetaObject::InvokeMetaMethod) {
108  auto *_t = static_cast<MIDIInput *>(_o);
109  Q_UNUSED(_t)
110  switch (_id) {
111  case 0: _t->midiNoteOff((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
112  case 1: _t->midiNoteOn((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
113  case 2: _t->midiKeyPressure((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
114  case 3: _t->midiController((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2])),(*reinterpret_cast< const int(*)>(_a[3]))); break;
115  case 4: _t->midiProgram((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
116  case 5: _t->midiChannelPressure((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
117  case 6: _t->midiPitchBend((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
118  case 7: _t->midiSysex((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
119  case 8: _t->midiSystemCommon((*reinterpret_cast< const int(*)>(_a[1]))); break;
120  case 9: _t->midiSystemRealtime((*reinterpret_cast< const int(*)>(_a[1]))); break;
121  default: ;
122  }
123  } else if (_c == QMetaObject::IndexOfMethod) {
124  int *result = reinterpret_cast<int *>(_a[0]);
125  {
126  using _t = void (MIDIInput::*)(const int , const int , const int );
127  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiNoteOff)) {
128  *result = 0;
129  return;
130  }
131  }
132  {
133  using _t = void (MIDIInput::*)(const int , const int , const int );
134  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiNoteOn)) {
135  *result = 1;
136  return;
137  }
138  }
139  {
140  using _t = void (MIDIInput::*)(const int , const int , const int );
141  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiKeyPressure)) {
142  *result = 2;
143  return;
144  }
145  }
146  {
147  using _t = void (MIDIInput::*)(const int , const int , const int );
148  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiController)) {
149  *result = 3;
150  return;
151  }
152  }
153  {
154  using _t = void (MIDIInput::*)(const int , const int );
155  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiProgram)) {
156  *result = 4;
157  return;
158  }
159  }
160  {
161  using _t = void (MIDIInput::*)(const int , const int );
162  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiChannelPressure)) {
163  *result = 5;
164  return;
165  }
166  }
167  {
168  using _t = void (MIDIInput::*)(const int , const int );
169  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiPitchBend)) {
170  *result = 6;
171  return;
172  }
173  }
174  {
175  using _t = void (MIDIInput::*)(const QByteArray & );
176  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSysex)) {
177  *result = 7;
178  return;
179  }
180  }
181  {
182  using _t = void (MIDIInput::*)(const int );
183  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSystemCommon)) {
184  *result = 8;
185  return;
186  }
187  }
188  {
189  using _t = void (MIDIInput::*)(const int );
190  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MIDIInput::midiSystemRealtime)) {
191  *result = 9;
192  return;
193  }
194  }
195  }
196 }
197 
198 QT_INIT_METAOBJECT const QMetaObject drumstick::rt::MIDIInput::staticMetaObject = { {
199  &QObject::staticMetaObject,
200  qt_meta_stringdata_drumstick__rt__MIDIInput.data,
201  qt_meta_data_drumstick__rt__MIDIInput,
202  qt_static_metacall,
203  nullptr,
204  nullptr
205 } };
206 
207 
208 const QMetaObject *drumstick::rt::MIDIInput::metaObject() const
209 {
210  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
211 }
212 
213 void *drumstick::rt::MIDIInput::qt_metacast(const char *_clname)
214 {
215  if (!_clname) return nullptr;
216  if (!strcmp(_clname, qt_meta_stringdata_drumstick__rt__MIDIInput.stringdata0))
217  return static_cast<void*>(this);
218  return QObject::qt_metacast(_clname);
219 }
220 
221 int drumstick::rt::MIDIInput::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
222 {
223  _id = QObject::qt_metacall(_c, _id, _a);
224  if (_id < 0)
225  return _id;
226  if (_c == QMetaObject::InvokeMetaMethod) {
227  if (_id < 10)
228  qt_static_metacall(this, _c, _id, _a);
229  _id -= 10;
230  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
231  if (_id < 10)
232  *reinterpret_cast<int*>(_a[0]) = -1;
233  _id -= 10;
234  }
235  return _id;
236 }
237 
238 // SIGNAL 0
239 void drumstick::rt::MIDIInput::midiNoteOff(const int _t1, const int _t2, const int _t3)
240 {
241  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
242  QMetaObject::activate(this, &staticMetaObject, 0, _a);
243 }
244 
245 // SIGNAL 1
246 void drumstick::rt::MIDIInput::midiNoteOn(const int _t1, const int _t2, const int _t3)
247 {
248  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
249  QMetaObject::activate(this, &staticMetaObject, 1, _a);
250 }
251 
252 // SIGNAL 2
253 void drumstick::rt::MIDIInput::midiKeyPressure(const int _t1, const int _t2, const int _t3)
254 {
255  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
256  QMetaObject::activate(this, &staticMetaObject, 2, _a);
257 }
258 
259 // SIGNAL 3
260 void drumstick::rt::MIDIInput::midiController(const int _t1, const int _t2, const int _t3)
261 {
262  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
263  QMetaObject::activate(this, &staticMetaObject, 3, _a);
264 }
265 
266 // SIGNAL 4
267 void drumstick::rt::MIDIInput::midiProgram(const int _t1, const int _t2)
268 {
269  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
270  QMetaObject::activate(this, &staticMetaObject, 4, _a);
271 }
272 
273 // SIGNAL 5
274 void drumstick::rt::MIDIInput::midiChannelPressure(const int _t1, const int _t2)
275 {
276  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
277  QMetaObject::activate(this, &staticMetaObject, 5, _a);
278 }
279 
280 // SIGNAL 6
281 void drumstick::rt::MIDIInput::midiPitchBend(const int _t1, const int _t2)
282 {
283  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
284  QMetaObject::activate(this, &staticMetaObject, 6, _a);
285 }
286 
287 // SIGNAL 7
288 void drumstick::rt::MIDIInput::midiSysex(const QByteArray & _t1)
289 {
290  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
291  QMetaObject::activate(this, &staticMetaObject, 7, _a);
292 }
293 
294 // SIGNAL 8
296 {
297  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
298  QMetaObject::activate(this, &staticMetaObject, 8, _a);
299 }
300 
301 // SIGNAL 9
303 {
304  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
305  QMetaObject::activate(this, &staticMetaObject, 9, _a);
306 }
307 QT_WARNING_POP
308 QT_END_MOC_NAMESPACE
void midiNoteOn(const int chan, const int note, const int vel)
midiNoteOn 0x9
void midiPitchBend(const int chan, const int value)
midiPitchBend 0xE
void midiSysex(const QByteArray &data)
midiSysex
The QObject class is the base class of all Qt objects.
void midiSystemRealtime(const int status)
midiSystemRealtime
void midiSystemCommon(const int status)
midiSystemCommon
void midiController(const int chan, const int control, const int value)
midiController 0xB
void midiChannelPressure(const int chan, const int value)
midiChannelPressure 0xD
void midiKeyPressure(const int chan, const int note, const int value)
midiKeyPressure 0xA
MIDIInput(QObject *parent=0)
MIDIInput constructor.
Definition: rtmidiinput.h:52
void midiProgram(const int chan, const int program)
midiProgram 0xC
void midiNoteOff(const int chan, const int note, const int vel)
midiNoteOff 0x8