fixed timer, added subroutine to set tune len