Fix envelope infinite gain problem

Prevents keyup from happening if the user holds down c, plays another
note, and then lets go of the second note.