]> code.delx.au - virtualtones/blobdiff - stringinstrument.cpp
Few polish fixes
[virtualtones] / stringinstrument.cpp
index b9ba3920115bb287349cd48b5e3ce6f66d967bc6..8d369a1b1d9f106a3fe0083d81ef635d642b154d 100644 (file)
@@ -156,7 +156,7 @@ QString StringInstrument::generateHelp()
 "<li>The row 'q' 'w' 'e' 'r' is the A string</li>"
 "<li>The row 'a' 's' 'd' 'f' is the D string</li>"
 "<li>The row 'z' 'x' 'c' 'v' is the G string</li>"
-"<li>The further right the key is, the higher the note</li>"
+"<li>The further to the right the key is, the higher the note</li>"
 "<li>Try pressing multiple keys on the same string to get sharp notes. On the A,D,G strings try the Tab, Caps and Shift keys for sharp notes</li>"
 "</ul>"
 
@@ -332,7 +332,7 @@ void StringInstrument::keyPressEvent(QKeyEvent *e)
                return;
        }
        e->accept();
-       emitSounds();
+       QTimer::singleShot(50, this, SLOT(emitSounds()));
 }
 
 void StringInstrument::keyReleaseEvent(QKeyEvent *e)
@@ -480,7 +480,7 @@ void StringInstrument::keyReleaseEvent(QKeyEvent *e)
                return;
        }
        e->accept();
-       emitSounds();
+       QTimer::singleShot(50, this, SLOT(emitSounds()));
 }
 
 void StringInstrument::zeroArray(bool array[4][4])