Questions tagged [metronome]

40 questions
0
votes
1 answer

Can´t change knob style from a ranged input in mobile

I´m having trouble with the mobile part of a Javascript metronome project, I want for the knob on the ranged input to grow when is clicked and hold, or when is touched and hold. With the desktop part I have no problem, I just added an :active…
Zeke Cachi
  • 49
  • 4
0
votes
1 answer

Oscillator not stoppingor ramping down in Web Audio API

I am trying to make a metronome as part of a bigger app by using an oscillator that switches on and off at set intervals in Web Audio Api, I have tried both the Start()/Stop() method and the LinearRampToValue(), in the code below. The oscillator…
0
votes
0 answers

How can I make this accurate in terms of making it follow bpm

Im trying to make a gui that displays a metronome that allows the user to change the bpm using a slide on the bottom. At the moment, I believe I have figured out how to display the metronome and even get it to change the rate at which it goes back…
0
votes
0 answers

Reliable metronome with expo

I'm having trouble building a reliable metronome with expo. For web I used the currentTime property of the audio context to schedule the next click (something like this:…
0
votes
0 answers

Metronome Lagging in Flutter

I'm trying to make a metronome in Flutter, but it isn't accurate for some reason. I'm using the AudioPlayers package to play the audio, and a timer to play the audio every n of milliseconds, based on the BPM set. The problem I'm facing is that the…
Code Clickers
  • 85
  • 1
  • 10
0
votes
1 answer

How do I play back an audio file with precise intervals in C# using NAudio?

I am trying to create a precise metronome in C# using NAudio, however there is always a 20 ms delay in either direction when playing the audio file. It is noticable both when listening to the metronome, as well as when recording and inspecting it in…
ViRazY
  • 1
  • 1
0
votes
2 answers

How do I remove the delay between pushing the button and the first sound?

I made a metronome inspired by the famous Chris Wilson's article using React, Hooks, and the Web Audio API. The metronome works but there's a delay between the moment I hit 'play' and the sound itself. This is clearly noticeable if the BPM is very…
Marco Mazzai
  • 95
  • 2
  • 16
0
votes
1 answer

Metronome program not running properly on Raspberry Pi 2

I am new to python and I am trying to create a simple metronome program. When I run my program I am running into a problem where the audio does not sound evenly spread out. I am running this on a Raspberry Pi 2 Model B. I have also tried using…
Leng1
  • 21
  • 4
0
votes
1 answer

If a letter from group "x" play sound "a", if from group "y" play sound "b" + text formatting

I've got that bit of code (see below) which randomly selects between letters A through to X. I created few characters empty space after each letter in string because I'm not sure how to do that otherwise, maybe some of you knows how to fix that as…
0
votes
1 answer

How to differentiate text colour on individual letters in a string?

I'm new in this programming realm and working on a of visual metronome. Each letters has got a drum pattern assigned to it. I will be working on adding a click sound to it later on but want to figure out the visuals first. Unless some of you could…
0
votes
1 answer

Processing - Building Visual Metronome - Drummer craving some code

I'm new to Processing and trying to build a metronome of a specific kind (I'm a drummer) that would enable me to create a random letter generator (string [or is it an array?] from A to X) that would randomly choose a character from a string and then…
0
votes
0 answers

Javascript setInterval metronome doesn't work on mobile

I'm pretty new to Javascript and coding in general so go easy on me! I've made a (very) simple metronome in HTML, JS, etc using setInterval - I'm aware there are limitations to this, and that it's not the most accurate method of doing so etc. With…
0
votes
1 answer

PlaySound() function plays sound with inconsistent delay

I am trying to create a command-line metronome app in C using PlaySound() from windows API. I am using the following code to generate a ticking metronome with 120 bmp tempo. The sound plays perfectly with my local .wav files but the tempo is not…
Ashis Paul
  • 33
  • 4
0
votes
1 answer

Where to find resources for writing a decent metronome app?

Recently I've been trying to figure out how to write a metronome app, but I've come across many difficulties with OS time control (calling functions e.g.) or significantly inaccurate onset detection algorhithms (I've used librosa) and it seems to be…
0
votes
1 answer

What are the ways to improve my metronome written in Python?

I'm trying to write a python based metronome with librosa and sounddevice but I've came across some problems with it's accuracy. Here's the code: from time import sleep, perf_counter import librosa import sounddevice as sd bpm = 200 delay =…