fixed issues with triangle envelope generator truncating triangle wave output