minor changes in midi receive code