GithubHelp home page GithubHelp logo

metronome's Introduction

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

metronome's People

Contributors

sandeepkrsuman avatar

Watchers

 avatar

metronome's Issues

Inconsistent Audio Playback Issue with Dynamic BPM Input

When the BPM (Beats Per Minute) input dynamically changes, the audio playback of the metronome becomes inconsistent. This inconsistency could be attributed to the asynchronous nature of setInterval(), leading to timing discrepancies.

Possible Causes:

  1. Asynchronous nature of setInterval()
  2. Lack of synchronization between BPM changes and audio playback.
  3. Delay in updating state value of bpm using useState()

Steps to Reproduce:

  1. Change the BPM input dynamically while audio playback is ongoing.
  2. Observe the inconsistency in audio playback timing.

Tasks:

  1. Investigate the current implementation of audio playback and BPM synchronization.
  2. Experiment with alternative timing mechanisms to achieve consistent playback.
  3. Implement and test potential solutions.
  4. Encourage discussion and suggestions in the comments section.

Expected Outcome:

By resolving this issue, we aim to ensure consistent audio playback even when the BPM input changes dynamically, improving the overall user experience of the metronome.

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.