Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
carlou33 committed Sep 9, 2016
1 parent 0a03b30 commit 85e8d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ bool Server::initConf(QSettings *c) {
c->setValue(it->key, it->value.toString());
}

// Debugging
QStringList lst = c->allKeys();
for(QStringList::const_iterator k = lst.constBegin(); k<lst.constEnd(); k++)
qDebug() << *k << " : " << c->value(*k).toString();
Expand Down Expand Up @@ -461,7 +462,7 @@ void Server::updateBeat(double t) { // in seconds
m_previousBeat = time;

sendBeatCount(time);
if(time == 8 || time == 16 || time == 24){ //sync
if(time%8 == 0){ //sync
sendActivatedTracks();
sendBeatCount(time);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct Settings {
*
* Handles the events and dispatch the corresponding actions
*/
class Server : public /*QCoreApplication*/ QObject {
class Server : public QObject {
Q_OBJECT
Q_PROPERTY(int tempo READ getTempo WRITE setTempo)

Expand Down

0 comments on commit 85e8d25

Please sign in to comment.