I have troubles understanding how do metal cases behave in some cases.
Case 1:
I made passive attenuation box for amplifier(basically L-pad resistor), simple configuration:
Amplifier => attenuation box => speaker
It has 1/4 jack sockets on input and output like this one
And pot resistor with metal on it's case
Everything works fine, but as soon as I touch case or any metal part of pot with my hand it starts screaming from a speaker high-pitch sound. Why does it do that? Other commercial equipment uses the same jacks with metal cases and it has no problems with touching the case. And I can't ground it obviously because it is passive and input is floating from transformer.
Case 2:
On other powered devices without ground connection(example - guitar FX pedals) you also have metal case with metal jacks and it doesn't have any problems with touching either metal case or pots.
In both of these cases I don't see what's the trick here, at first I though I wire something in a wrong way, but there is no way to wire socket in such a way so that sleeve would not touch case - since the outer plane of socket touches case, obviously sleeve of connector will touch it no matter how you wire stuff internally.
So basically the questions are - how to properly wire metal parts that touch the case in order to make case out of the circuit.
I really tried to google that by myself, but it seems that most of people have no troubles at all with it, maybe I miss very basic thing.
Thank you for reading such a long question.