I wouldn't have thought that making a change on the non-pressured side of the float valve would make a difference - but it might!
The science behind resonance is exact, but finding the causes of resonances (cause of water knock) in a plumbing system ISN'T an exact science!
(Having said that, I'm a scientist, not a plumber.)
If I'm right and it is a resonance (and I could be completely wrong!!!) the problem is more likely to be on the mains pressure side of the valve.
There are three things you can change: The pressure in the pipe, the valve itself or the length of the pipe feeding the valve. The easiest, quickest and cost-free thing to change is the pressure in the pipe.
I'd do this by playing with the stop cock from the rising main. As you close it or open it, you will notice that the resonance gets better or worse, if indeed it IS a resonance.
If it doesn't change, then at least you know to look elsewhere. If it does change, you have isolated the problem and can change either the valve or the pipe.