SetThrehsold et gain