Neural and peripheral dynamics as determinants of patterned motor behavior