Commit f5de698e authored by SeeLook's avatar SeeLook 🎸
Browse files

Move class to visualize expected and palyed notes to sound lib

parent dfeff1a7
......@@ -83,7 +83,6 @@ set(LIB_NOOTKACORE_SRC
score/taddnoteitem.cpp
score/tmelodypreview.cpp
score/tdummychord.cpp
score/tnotesbaritem.cpp
instruments/tcommoninstrument.cpp
instruments/tguitarbg.cpp
......
......@@ -31,7 +31,6 @@
#include "score/taddnoteitem.h"
#include "score/tmelodypreview.h"
#include "score/tdummychord.h"
#include "score/tnotesbaritem.h"
#include "instruments/tguitarbg.h"
#include "instruments/tpianobg.h"
#include "instruments/tbandoneonbg.h"
......@@ -88,7 +87,6 @@ TnootkaQML::TnootkaQML(QObject* parent) :
qmlRegisterType<TmelodyPreview>("Score", 1, 0, "TmelodyPreview");
qmlRegisterUncreatableType<TmelodyPart>("Score", 1, 0, "TmelodyPart", QStringLiteral("You cannot create an instance of the TcommonInstrument."));
qmlRegisterType<TdummyChord>("Score", 1, 0, "TdummyChord");
qmlRegisterType<TnotesBarItem>("Score", 1, 0, "TnotesBarItem");
qmlRegisterUncreatableType<TcommonInstrument>("Nootka", 1, 0, "TcommonInstrument", QStringLiteral("You cannot create an instance of the TcommonInstrument."));
qmlRegisterType<TguitarBg>("Nootka", 1, 0, "TguitarBg");
......
......@@ -368,6 +368,7 @@ set(LIB_NOOTKASOUND_SRC
tsound.cpp
ttickcolors.cpp
tonsetlogic.cpp
tnotesbaritem.cpp
tartini/analysisdata.cpp
tartini/array1d.h
......
......@@ -21,8 +21,8 @@
#define TNOTESBARITEM_H
#include "nootkacoreglobal.h"
#include "music/tnote.h"
#include "nootkasoundglobal.h"
#include <music/tnote.h>
#include <QtQuick/qquickitem.h>
......@@ -31,7 +31,7 @@
* which visualizes distance between @p expectedNote() and @p detectedNote()
* and shows names of those notes.
*/
class TnotesBarItem : public QQuickItem
class NOOTKASOUND_EXPORT TnotesBarItem : public QQuickItem
{
Q_OBJECT
......
......@@ -30,6 +30,7 @@
#endif
#include <tnootkaqml.h>
#include "ttickcolors.h"
#include "tnotesbaritem.h"
#include <tglobals.h>
#include <taudioparams.h>
#include <music/tmelody.h>
......@@ -64,9 +65,11 @@ Tsound::Tsound(QObject* parent) :
}
m_instance = this;
qRegisterMetaType<Tchunk>("Tchunk");
qRegisterMetaType<TnoteStruct>("TnoteStruct");
qmlRegisterType<TtickColors>("Nootka", 1, 0, "TtickColors");
qmlRegisterType<TnotesBarItem>("Nootka", 1, 0, "TnotesBarItem");
setQuantization(GLOB->A->quantization);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment