Skip to content

About

๐ŸŽต Play drums in your browser! Interactive drum kit with keyboard controls, realistic sounds, and visual animations. No installation required.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

ย 

History

7 Commits

Folders and files

Repository files navigation

๐Ÿฅ Music DrumKit

Interactive virtual drum kit that lets you play 8 different drum sounds using your keyboard or mouse clicks.

โœจ Features

  • ๐ŸŽน 8 unique drum sounds with keyboard controls
  • ๐Ÿ–ฑ๏ธ Mouse click support on all drums
  • ๐ŸŽจ Visual feedback with animations on key press
  • ๐Ÿ”Š High-quality drum sound samples
  • ๐Ÿ“ฑ Fully responsive design
  • ๐Ÿš€ No installation required - runs directly in browser

๐ŸŽฎ How to Play

  1. Visit the live demo
  2. Press the corresponding keys on your keyboard
  3. Or click the drum buttons with your mouse
  4. Create your own beats and rhythms!

๐ŸŽต Drum Sounds & Keys

Key Drum Sound
A Clap ๐Ÿ‘
C Hi-Hat (Closed) ๐ŸŽฉ
Z Kick Drum ๐Ÿฅ
F Open Hi-Hat ๐Ÿ”“
G Boom ๐Ÿ’ฅ
H Ride Cymbal ๐ŸŒŠ
S Snare Drum ๐Ÿฅ
K Tom ๐Ÿช˜

๐Ÿ› ๏ธ Technologies Used

  • HTML5 - Structure
  • CSS3 - Styling and animations
  • Vanilla JavaScript - Interactivity and event handling
  • HTML5 Audio API - Sound playback

๐Ÿš€ Local Setup

# Clone the repository
git clone https://github.com/smita1078/Music-DrumKit.git

# Navigate to directory
cd drumkit

# Open in browser
open index.html
# Or simply double-click index.html

๐Ÿ“‚ Project Structure

drumkit/
โ”œโ”€โ”€ index.html  + js script        # Main HTML file # JavaScript logic
โ”œโ”€โ”€ style.css           # Styling and animations          
โ”œโ”€โ”€ sounds/             # Audio files folder
โ”‚   โ”œโ”€โ”€ clap.wav
โ”‚   โ”œโ”€โ”€ hihat.wav
โ”‚   โ”œโ”€โ”€ kick.wav
โ”‚   โ”œโ”€โ”€ openhat.wav
โ”‚   โ”œโ”€โ”€ boom.wav
โ”‚   โ”œโ”€โ”€ ride.wav
โ”‚   โ”œโ”€โ”€ snare.wav
โ”‚   โ””โ”€โ”€ tom.wav
โ””โ”€โ”€ README.md

๐ŸŽฏ Learning Outcomes

This project demonstrates:

  • โœ… DOM manipulation
  • โœ… Event listeners (keyboard events & mouse clicks)
  • โœ… Audio playback in JavaScript
  • โœ… CSS animations and transitions
  • โœ… Responsive web design
  • โœ… Clean code structure

๐Ÿ’ก Key Features Explained

Keyboard Event Handling

document.addEventListener('keypress', function(event) {
    playSound(event.key);
    addAnimation(event.key);
});

Visual Feedback

Each key press triggers a CSS animation for visual feedback, making the experience more interactive and engaging.

๐ŸŽจ Customization

You can easily customize:

  • Sounds: Replace audio files in /sounds folder
  • Keys: Modify key mappings in script.js
  • Styling: Edit style.css for colors and animations
  • Layout: Adjust drum positions in index.html

๐Ÿ“„ License

Free to use for learning and personal projects!

๐Ÿ‘ค Author

Smita Prajapati

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ™ Acknowledgments

  • Built as part of web development learning journey

๐ŸŽต Happy Drumming! ๐Ÿฅ

About

๐ŸŽต Play drums in your browser! Interactive drum kit with keyboard controls, realistic sounds, and visual animations. No installation required.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages