mirror of
https://github.com/overte-org/overte.git
synced 2025-04-27 07:16:22 +02:00
32 lines
No EOL
770 B
C++
32 lines
No EOL
770 B
C++
//
|
|
// MIDIEvent.h
|
|
// libraries/script-engine/src
|
|
//
|
|
// Created by Stephen Birarda on 2014-06-30.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include <QtScript/QScriptEngine>
|
|
|
|
#ifndef hifi_MIDIEvent_h
|
|
#define hifi_MIDIEvent_h
|
|
|
|
class MIDIEvent {
|
|
public:
|
|
double deltaTime;
|
|
unsigned int type;
|
|
unsigned int data1;
|
|
unsigned int data2;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(MIDIEvent)
|
|
|
|
void registerMIDIMetaTypes(QScriptEngine* engine);
|
|
|
|
QScriptValue midiEventToScriptValue(QScriptEngine* engine, const MIDIEvent& event);
|
|
void midiEventFromScriptValue(const QScriptValue &object, MIDIEvent& event);
|
|
|
|
#endif // hifi_MIDIEvent_h
|