# How to slow down audio with minim?

**URL:** https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212
**Category:** Libraries
**Created:** [May 14, 2019, 12:05am UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212 "2019-05-14T00:05:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RienziDeal](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@RienziDeal](https://discourse.processing.org/u/RienziDeal)
#### Post date: [May 14, 2019, 12:05am UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212/1 "2019-05-14T00:05:45Z")

</div>

Hi, I’m using a song and I want it to slow down but continue playing slower from the same point when clicked when I click on an alcohol bottle (which will imply that the character is drunk) Any help?

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [May 14, 2019, 4:32am UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212/2 "2019-05-14T04:32:16Z")

</div>

did you check on the MINIM examples?  
/Synthesis / tickRateExample  
/Synthesis / flangerExample

both might be usable

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 17, 2019, 12:45pm UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212/3 "2019-05-17T12:45:46Z")

</div>

It sounds like TickRate is the kind of “slow down” that you want.

> The TickRate UGen can be used to control the generation rate of the UGen that is patched to it. **It is equivalent to slowing down or speeding up a record player.** With a rate of 1, the patched UGen will come through normally, but 0.5 will half as fast and sound an octave lower, whereas 2 will be twice as fast and sound an octave higher. [Minim : : TickRate](http://code.compartmental.net/minim/tickrate_class_tickrate.html)

As @kll suggested, here is the example:

> <https://github.com/ddf/Minim/blob/main/examples/Synthesis/tickRateExample/tickRateExample.pde>

---

<div class="post-metadata">

### Author: ![justin\_lincoln](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/justin_lincoln/32/53_2.png) [@justin\_lincoln](https://discourse.processing.org/u/justin_lincoln)
#### Post date: [October 4, 2020, 7:36am UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212/4 "2020-10-04T07:36:33Z")

</div>

Can this work for samples? While this works with filePlayer and looping I’m not understanding how to patch it in with loadSample and Trigger.
