$Page Stretch Simpler
$TargetName Stretch Simpler
*Stretching audio*
This example demonstrates playing back an audio file using [groove~]'s' /timestretching/ attribute. Time stretching refers to playing back audio with a different speed without changing its pitch.
Max wraps the $Link ZTX library 's for this capability. Its pitch shifting functionality can be found in $Link a separate [pitchshift~] object .
This library is focussed on changing time and pitch with as little artifacts as possible. The [groove~] object does not support driving the position with a signal. For that you would use [play~], but that will not work with time stretching.
Stretch-Simpler.png
-> This example uses a simplified version of the Slice feature found in Simpler to trigger positions in the audio file with MIDI notes.
-> [waveform~] has several options that make it useful for visualizing playback.
-> Time stretching a buffer does not introduce latency, as opposed to pitch shifting incoming audio.
An implementation of time stretching built out of basic Max objects can be found in the $Link Grain Cloud Simpler example .