Fixed the bug that the Tesla was unable to play the same note twices.
Steps to reproduce:
Connect Tesla to software MIDI keyboard
Try to play the same note twice with a short break
Result:
First time the note is played, second time the tesla stays silent.
Fix:
If the note was switched off with curTone = 0; the variable lastTone was not changed to 0. This will lead to the Timers not getting set with the correct frequency, curTone will equal lastTone.
Fixed the bug that the Tesla was unable to play the same note twices.
Steps to reproduce:
Fix: If the note was switched off with curTone = 0; the variable lastTone was not changed to 0. This will lead to the Timers not getting set with the correct frequency, curTone will equal lastTone.