TVF envelope controls debugged