Global manoeuvring of confined active particle swarms via emergent threshold-based control | Synapse