GithubHelp home page GithubHelp logo

01_musicalkeyboard_project's Introduction

Musical KeyBoard


Índice

1. Description
2. User Definition & User Stories (UX)
3. Aceptance Criteria
4. Technical Requirements
5. Hacker edition
6. Expected Learning Outcomes

1. Description

Application to perform music playing from the keyboard, built with JavaScript, HTML 5 & CSS3.


2. User Definition:

User: Music Teacher

User Stories:

  • The User want to play instruments from their computer keyboard.

  • The user want to give to others a concert and have visual explanation of musical notes or instrument played

3. Acceptance Criteria

This applications should allow the user to play an instrument with the keyboard, have a good integration between the sounds and respect the space that the user play in between, if replay should restart the sound from starting. The UI of this app should be tematic to the instrument and be pleasant to see, have efect on the key pressed.


4. Technical Requeriments /

  • Individual projects but with peer programming allowed
  • Fork this repository
  • Follow the folder structures dividing per languages: JS, CSS, HTML5
  • Add an Assets folder to add img, and another folder of music_insturment .mp3 sounds.
  • Follow up Semantic HTML rules, have title, footer, center content and visual alignment.

CLUES:

  • data-key data attributes html
  • keyBoardEvent research
  • get the key code for each keyboard to press as keydown event
  • audio html element
       <div data-key="65" class="key">
        <kbd>A</kbd> <span class="sound"> Goblet drum dum</span>
      </div>
  • document.querySelector()
  • e.keyCode
  • play()
  • document.querySelectorAll()
  • addEventListenner()
  • window.addEventListener()
//get the key values example with query selector
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
  const key = document.querySelector(`.key[data-key="${e.keyCode}"]`);

//global window function example
window.addEventListener('keydown', getSound);

Additional Resources


5. Hacker Edition


Add a login to give access oly to the Teacher. Add a feature to play 2 instruments as music companion.


6. Expected Learning Outcomes


  • QuerySelector
  • Audio Tag
  • Data Key attribute
  • Key Code event
  • Window event listener
  • Play JS method

ReadMe


This Readme should be replaced with the project documentation following the SDLC procedures for Agile Software Development Lyfe Cycle.

01_musicalkeyboard_project's People

Contributors

ajuscocodingbootcamp avatar vaniushar avatar

Watchers

 avatar

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.