Disassemble the trap into a shulker box as follows:

The most effective way to generate maximum noise in vanilla Minecraft is a high-speed Note Block clock. By placing an observer facing another observer, you create a rapid-fire Redstone clock that ticks 20 times per second. When wired to a cluster of Note Blocks sitting on top of high-resonance blocks (like wood or gold blocks), the resulting sound is a piercing, continuous drone. The Piston Spam Method