fixing setting of gain value, by setValueAtTime