Lesson 21 +10 XP

Pan & Speed

Move sounds left and right with pan, and play samples faster or slower with speed.

Pan - left to right

pan places a sound in the stereo field: 0 = left, 0.5 = center, 1 = right:


strudel
sound("bd bd, hh hh hh hh").pan("<0 0.5 1 0.5>")

Pan patterns

Automate panning for movement:


strudel
sound("hh hh hh hh").pan("<0 1>")

Speed - playback rate

speed plays a sample faster or slower. speed(2) = twice as fast (and higher pitched), speed(0.5) = half speed:


strudel
n("<0 1 2 3>").sound("casio").speed("<1 2 1 0.5>")

Pitch with speed

Lower speeds make deep, slow sounds:


strudel
n("<0 2 4 6>").sound("casio").speed("0.5 0.75 1 1.5")

TL;DR

  • pan: 0 = left, 0.5 = center, 1 = right.
  • speed: 1 = normal, 2 = twice as fast, 0.5 = half.
  • Both accept patterns for automation.