home/ atoms/ strudel-pan

pan() positions each event in the stereo field, from full left at 0 to full right at 1

.pan(n) places a sound in the stereo image: 0 is full left, 1 is full right, 0.5 is centred. Because pan accepts a pattern, successive steps can be placed at different stereo positions, e.g. .pan("0 0.3 .6 1") sweeps events left-to-right across the cycle. Panning creates width and movement and helps separate simultaneous layers so a dense pattern stays legible.

Examples

sound(“numbers:1 numbers:2 numbers:3 numbers:4”).pan(“0 0.3 .6 1”) // sweep L→R sound(“hh*4”).pan(“0 1”) // bounce between speakers

Assessment

Write a hi-hat pattern that alternates hard left and hard right each step using pan(). Describe the stereo image.

“sound("numbers:1 numbers:2 numbers:3 numbers:4").pan("0 0.3 .6 1")”