While doing some testing for #1700 I noticed another bug. In non-midi-based instruments when you have the envelope on, the sustain pedal gets ignored. Video of the behavior (first part of the video is the piano roll recording problem): https://youtu.be/PA0mxaMIVrc?t=33s