I think it’s a sort of rock-scissors-paper situation. The carpet could muffle and constrict the automated one-man band, but the sloth’s claws would rip it up. The sloth could tear up the carpet, but its claws would be ineffective against the one-man band’s metal exoskeleton and brass instrumentation. The one-man band could daze the sloth with sonic attacks and pummel it with steely fists, but neither dissonance nor blunt trauma would be effective against the tough, flexible, earless fabric of the carpet.