There is a bug in line 40 of chiptune_engine.cc:
for (int i = 0; i < kChordNumNotes; ++i) {
voice_[i].Init();
}
It should be kChordNumVoices instead of kChordNumNotes.
This leads to weird random crashes of the engine, as the fifth voice isn't correctly initialized.