A Hotshot Challenge

The drum machine needs your attention. As a part of your Hotshot challenge, add the following features to your drum machine:

  • The current application checks if the button is green in color to decide whether the button is in the pressed state. Modify the code so that this logic is not decided based on the color of the button, but by a separate variable that keeps track of the selected buttons.
  • Add a tempo scale to your drum machine, which lets the user change the tempo of the beats using a slider.
  • Add volume control for each drum sample, allowing the user to change the volume individually for each drum sample.
  • Add a mute button for each drum sample. If the Checkbutton is clicked for a given drum sample, the sound is not played for that row. This way, a user can stop a complete row from playing without changing the patterns in that row.
  • Add a time clock to your drum machine, which displays the time elapsed since the last press of the play button.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.60.62