title: Kivy: how to make each buttons play different sound
body: <p>So I'm writing a drum pad:</p>
  
  <pre><code>from kivy.app import App
  from kivy.uix.label import Label
  from kivy.uix.gridlayout import GridLayout
  from kivy.uix.button import Button
  from kivy.core.audio import SoundLoader
  
  
  class GridAction(Button):
      pass
  
  
  class MakingGrid(GridLayout):
  
      def __init__(self, *args, **kwargs):
          super(MakingGrid, self).__init__(*args, **kwargs)
  
          for i in range(16):
              grid_action = GridAction()
              grid_action.bind(on_release=self.button_pressed)
              self.add_widget(grid_action)
  
      def button_pressed(self, button):
          print('pressed')
  
  
  class MyApp(App):
      def build(self):
          return MakingGrid(cols=4)
  
  
  if __name__ == "__main__":
      MyApp().run()
  </code></pre>
  
  <p>There is a grid of buttons as a result, and the purpose is to make them sound different, but I don't know how to do this. Please, help. Thanks in advance) Also, if you see any disadvantages in this code, please, tell me about them, I`m a beginner.</p>