Apply volume Envelope
Now that we have set the starting point of the grain, we need to also apply a volume envelope. This envelope will also define how long the short audio segment will play. In the following example the small chunk of audio has a length of 100ms.
![](http://desres20.netornot.at/wp-content/uploads/2021/07/figure3-1024x639.png)
Pitch up / Pitch down
When the playhead is moved towards the recording head, the audio gets pitched up or down, because it is played back faster or slower. To make it slower we need to increase the delay time in de vd~ object. Its done by the line~ object on top of the vd~ object. In the following example the playhead moves from 300ms to 400ms.
![](http://desres20.netornot.at/wp-content/uploads/2021/07/figure5-1024x620.png)
We can now control the starting time of a grain, the length and the pitch!