# How to use Midi note\_on messages from drum pads

**URL:** <https://in-thread.sonic-pi.net/t/how-to-use-midi-note-on-messages-from-drum-pads/4583>\
**Category:** Support, Help & Resources\
**Created:** [November 6, 2020, 9:17pm UTC](https://in-thread.sonic-pi.net/t/how-to-use-midi-note-on-messages-from-drum-pads/4583 "2020-11-06T21:17:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mrkarlsson](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mrkarlsson](https://in-thread.sonic-pi.net/u/mrkarlsson)\
**Post date:** [April 24, 2022, 2:43pm UTC](https://in-thread.sonic-pi.net/t/how-to-use-midi-note-on-messages-from-drum-pads/4583/4 "2022-04-24T14:43:08Z")

</div>

Hi,  
did you try match on  
note, velocity = sync “/midi\*10/note\_on”  
This works for me on v4 beta version

I also found out how to get the channel name from another [post](https://in-thread.sonic-pi.net/t/code-for-artiphone-instrument1/2922/3) by @robin.newman:  
puts get\_event("/midi:\*/\*").to\_s.split(",")[6]

---

_[View the full topic](https://in-thread.sonic-pi.net/t/how-to-use-midi-note-on-messages-from-drum-pads/4583)._
