The creation of music using sound samples can include layering, looping, cutting, splicing, reversing, modification of playback rate, filtering, enveloping, etc
Playing back sounds at faster rates will produce higher frequency components and care should be taken (such as filtering) to avoid aliasing.
Amplitude envelopes are generally necessary during cross-fades and to avoid discontinuities and clipping.
Envelopes can also be used to control other time-varying sound-playback parameter changes.
Sample-based music instrument synthesizers will loop or cut the sustain portion of a sound to adjust duration while preserving the attack and decay properties.