for(octave = 0; num >= 12; octave++) {
num -= 12;
}
- return QString(midnotes[num] + " - Octave: " + QString::number(octave - 6)); // Middle C is then "C - Octave: 3"
+ return QString(midnotes[num] + " - Octave: " + QString::number(octave - 2)); // Middle C is then "C - Octave: 3"
}
bool Instrument::checkSharp(int note)
for(int i = 0; i < 4; i++) {
QString text;
text += "Playing note: ";
- text += midi2string(note[i]);
+ text += midi2string(noteStart + note[i]);
text += " - Volume: " + QString::number(volume[i] / 30);
paint.drawText(45, (i+1)*20, text);
}