|
From: Tapio V. <aa...@us...> - 2011-01-18 12:37:01
|
Module: editor
Branch: master
Commit: 49ddf67539a46909f9bee315a2f491efd6882ee6
Author: Tapio Vierros <tap...@gm...>
Date: Tue Jan 18 13:18:27 2011 +0200
Further XML export timing tweaks - still doesn't look right.
---
songwriter-xml.cc | 4 ++--
songwriter.hh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/songwriter-xml.cc b/songwriter-xml.cc
index 0fddb1d..557ceee 100644
--- a/songwriter-xml.cc
+++ b/songwriter-xml.cc
@@ -13,7 +13,7 @@ void SingStarXMLWriter::writeXML() {
root.setAttribute("Version", "1");
root.setAttribute("Tempo", QString::number(tempo));
root.setAttribute("FixedTempo", "Yes");
- root.setAttribute("Resolution", "Semiquaver"); // Demisemiquaver = 2x tempo
+ root.setAttribute("Resolution", "Demisemiquaver"); // Demisemiquaver = 2x tempo of Semiquaver
root.setAttribute("Genre", QString::fromStdString(s.genre));
root.setAttribute("Year", QString::fromStdString(s.year));
root.setAttribute("xsi:schemaLocation", "http://www.singstargame.com http://15GMS-SINGSQL/xml_schema/melody.xsd");
@@ -90,5 +90,5 @@ void SingStarXMLWriter::writeXML() {
}
int SingStarXMLWriter::sec2dur(double sec) {
- return round(tempo / 60.0 * sec * 4);
+ return round(tempo / 60.0 * sec * 8); // 8 for Demisemiquaver
}
diff --git a/songwriter.hh b/songwriter.hh
index a8e11db..13016fb 100644
--- a/songwriter.hh
+++ b/songwriter.hh
@@ -13,7 +13,7 @@ struct SongWriter
struct SingStarXMLWriter: public SongWriter
{
SingStarXMLWriter(const Song& s_, const QString& path_)
- : SongWriter(s_, path_), tempo(240) { writeXML(); }
+ : SongWriter(s_, path_), tempo(160) { writeXML(); }
private:
void writeXML();
int sec2dur(double sec);
|