speed() changes sample playback rate; negative values reverse the audio waveform
.speed(n) sets the playback rate of a sample: 1 is normal, 2 is double-speed (one octave up), 0.5 is half-speed (one octave down), and negative values play the sample backwards. This differs from .rev(), which reverses the order of events in a pattern — speed(-1) reverses the audio waveform itself. Speed interacts with pitch when using sample-based instruments: doubling speed raises pitch by an octave, like a tape machine.
Examples
sound(“bd”).speed(2) // double speed, one octave higher sound(“bd rim [~ bd] rim”).speed(“<1 2 -1 -2>“).room(.2) // patterned, incl. reverse
Assessment
What is the tonal difference between sound(“piano”).speed(0.5) and sound(“piano”).speed(2)? Name the interval in each case.