Push button or other button from python

Hi @Fer, welcome!

I recommend using OSC to communicate the notes to play from Python to Sonic Pi. See this thread for an (similar) example and more detail: Link sonic pi to Python
You can adapt that code to send note values and play them in Sonic Pi - let us know if you need more help.

2 Likes