Giter Site home page Giter Site logo

forhadakhan / play-drum Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 900 KB

Play Drum: A React-based web application that enables users to play a variety of drum sounds.

Home Page: https://forhadakhan.github.io/play-drum/

License: Other

JavaScript 92.31% HTML 3.20% CSS 4.50%
audio bootstrap bootstrap5 drum html5 javascript js music play react

play-drum's Introduction

Drum Play

An interactive web application built with React, allowing users to experiment with different drum sounds and play them.

Screenshot

Features

  • Power switch to turn the drum machine on and off.
  • Bank switch to toggle between two sets of drum sounds.
  • Drum pads with corresponding keyboard keys to play drum sounds.
  • Volume control to adjust the volume of the drum sounds.
  • Real-time display of the currently played sound and volume level.

Technologies Used

  • React: JavaScript library for building user interfaces.
  • Bootstrap: CSS framework for styling the user interface.
  • HTML5 audio element: Used to play the drum sounds.
  • JavaScript event handling: Used to detect key presses and button clicks.

Local Setup Guide

  1. Clone the repository:

     git clone https://github.com/forhadakhan/play-drum.git
  2. Install the dependencies:

     cd drum-machine
     npm install
  3. Start the development server:

     npm start

Open your web browser and visit http://localhost:3000 to view the drum machine application.

Keyboard Controls

  • Press the corresponding keyboard keys (Q, W, E, A, S, D, Z, X, C) to play the drum sounds.
  • Ensure that the power switch is turned on for the drum pad to work. You can also control the power switch from the keyboard using 'P' key.
  • Use bank switch to toggle between two sets of drum sounds. You can also switch banks from the keyboard using 'B' key.

Credits

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.