At Oval Station (next to the cricket ground), they have an entertaining anti-loitering strategy: they play classical music. I seem to be immune to its deterrent effect, though.
I have heard one of these in San Francisco, CA in the USA. The music had a really high pitched note behind it that sounded horrible.. like a cross between a mosquito and the buzzing of an input jack