# Buttons and sounds drums

**URL:** <https://in-thread.sonic-pi.net/t/buttons-and-sounds-drums/570>\
**Category:** \[P\] Patreon Support\
**Created:** [December 26, 2017, 5:24pm UTC](https://in-thread.sonic-pi.net/t/buttons-and-sounds-drums/570 "2017-12-26T17:24:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucianotpereira](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@lucianotpereira](https://in-thread.sonic-pi.net/u/lucianotpereira)\
**Post date:** [December 26, 2017, 5:24pm UTC](https://in-thread.sonic-pi.net/t/buttons-and-sounds-drums/570/1 "2017-12-26T17:24:45Z")

</div>

Hello Guys,  
I’m a newer in sonic pi and i would like to know how i can make a routine that play a sound when a press a button. My idea is to make a drum for my 5 old son. thanks all

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [December 26, 2017, 10:31pm UTC](https://in-thread.sonic-pi.net/t/buttons-and-sounds-drums/570/2 "2017-12-26T22:31:36Z")

</div>

I think this article of mine could be useful. Does Sonic Pi 3 being controlled by a push button on a Raspberry Pi gpio pin

> **[Sonic Pi 3 says hello to Raspberry Pi GPIO](https://rbnrpi.wordpress.com/2017/07/26/sonic-pi-3-says-hello-to-raspberry-pi-gpio/)**
>
> The latest version of Sonic Pi, version 3.0 is aptly named the IO version. It adds comprehensive facilities to allow Sonic Pi to communicate with the outside world, by midi or OSC messages, and it …
