# Multiple activation of the same stimulus in a routine

**URL:** https://discourse.psychopy.org/t/multiple-activation-of-the-same-stimulus-in-a-routine/28655
**Category:** Builder
**Created:** [April 15, 2022, 3:12pm UTC](https://discourse.psychopy.org/t/multiple-activation-of-the-same-stimulus-in-a-routine/28655 "2022-04-15T15:12:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gabriel\_Terhoch](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/gabriel_terhoch/32/34275_2.png) [@Gabriel\_Terhoch](https://discourse.psychopy.org/u/Gabriel_Terhoch)
#### Post date: [April 15, 2022, 3:12pm UTC](https://discourse.psychopy.org/t/multiple-activation-of-the-same-stimulus-in-a-routine/28655/1 "2022-04-15T15:12:12Z")

</div>

I want a sound stimulus to be activated multiple times in a routine.  
I have a list of the times that the sound is supposed to be activated.  
Is there any way I can make this work without having to create multiple sound stimulus?

It would be even better if I could make the same stimulus activate everytime a condition is set True.

Thanks!

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 16, 2022, 7:23am UTC](https://discourse.psychopy.org/t/multiple-activation-of-the-same-stimulus-in-a-routine/28655/2 "2022-04-16T07:23:01Z")

</div>

What I do is create a sound component with zero volume in the first routine (let’s assume I’ve called it sound \_1).

Then in Begin Routine of the routine where I want it (or any routine after the first and before I need it) I change the volume using sound\_1.setVolume(1)

Then I can play the sound in my main routine using sounds\_1.play()

Online there is an issue about playing the same sound twice. If this isn’t solved yet then the solution is to either alternate between two sound components which both play the same sound, or have a brief silent sound that gets played just before the next play of the soun\_1

---

<div class="post-metadata">

### Author: ![Gabriel\_Terhoch](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/gabriel_terhoch/32/34275_2.png) [@Gabriel\_Terhoch](https://discourse.psychopy.org/u/Gabriel_Terhoch)
#### Post date: [April 16, 2022, 6:02pm UTC](https://discourse.psychopy.org/t/multiple-activation-of-the-same-stimulus-in-a-routine/28655/3 "2022-04-16T18:02:51Z")

</div>

Thanks @wakecarter, that worked perfectly.
