Questions tagged [metronome]

40 questions
3
votes
1 answer

Flutter Audioplayers sound plays with delay

I'd like to write a metronome app in Flutter using the metronome class from quiver async and the audioplayers package. However, the click sound from the audioplayer always plays delayed. Sometimes there are several bars without sound, followed by a…
2
votes
2 answers

Building a metronome in Maui but the soundplayer is irregular and not responsive to timer.interval

I'm building a metronome as part of my practice app in Maui. I am using Plugin.maui.audio to play the sounds, and I'm using System.timer to determine the interval at which the sounds should be played. However the sounds are played at in irregular…
Andreasvkn
  • 23
  • 3
2
votes
1 answer

Metronome JavaScript - function .pause() don't stop the Audio beep

I trying to do a metronome on Codepen. But I have one problem because the function .pause() doesn't stop the beep(my sound). This is the code that I wrote. I read about it but I don't find the problem. The audio I found on Codepen. I don't think…
2
votes
2 answers

Timing issues: Metronome using AVAudioEngine scheduleBuffer's completion handler

I want to build a simple metronome app using AVAudioEngine with these features: Solid timing (I know, I know, I should be using Audio Units, but I'm still struggling with Core Audio stuff / Obj-C wrappers etc.) Two different sounds on the "1" and…
McNail
  • 100
  • 8
2
votes
1 answer

Is there a default interval between each ASCII Bell chime?

Here is a simple metronome script in Bash using ASCII bell. #!/bin/bash read -s tempo interval=$(bc -l <<< "scale=4; 60/$tempo") echo -n "tempo is $tempo interval is $interval seconds" while true do echo -en "\a" sleep…
wileypoots
  • 31
  • 2
2
votes
1 answer

How can I do a precise metronome?

I tried to do a very simple metronome that is working at 30 bpm: While True: winsound.Beep(1000, 200) time.sleep(2 - 0.2) Then, I turned on a metronome app on my phone together with the beep in the computer, and it became less precise as…
Python
  • 127
  • 1
  • 14
2
votes
1 answer

AudioKit: sync recorder, players and metronome

I'm working on a proof of concept for AudioKit to evaluate if it fits our needs. We are currently using AVAudioRecorder, AVPlayer and AVMutableComposition for a multi-track recorder and it works great, but I want to try to do the same with AudioKit…
ernewston
  • 923
  • 6
  • 22
1
vote
0 answers

The metronome on Flutter does not work correctly

I'm trying to create a metronome on Flutter, but the sound (using soundpool library) plays either 20 milliseconds earlier or 20 ms later. But over time the metronome never lags behind, it just sounds a little out of tune sometimes. Timer.periodic or…
1
vote
0 answers

Set Metronome Timer to play a sound precisely at every given interval (e.g.: 500 ms)

I'm making an Metronome app. I wish to have it count precisely 4 beats in a loop with an accent on the first beat. Inside Android Studio on my simulator it works fine, but on my actual phone (Galaxy J3 - 2018, Android v9) that time interval is not…
gab
  • 43
  • 5
1
vote
2 answers

making a Javascript metronome

Newbie here, I'm trying to make a Javascript metronome, but I'm stuck on making the sound play according to the current bpm of the project Here's where I think the problem lies, when I press play, it sounds, but in a fixed bpm, that is not the one…
Zeke Cachi
  • 49
  • 4
1
vote
1 answer

Is there a way to run a funcion on several instances of a class at exactly the same time? Independent Multi-Metronome with MIDI ctrl

Hi :) I am programming an independent multi-metronome and need to run the funciont beat() on a while loop for every instances of my class Metronome(), starting at the same time. import time import mido from numpy import interp from IPython.display…
1
vote
1 answer

Issue clearing a recursive timeout with onClick in React

I'm rebuilding a special type of metronome I built in vanilla js, with React. Everything is working, except when a user clicks the 'STOP' button, the metronome doesn't stop. It seems I'm losing the timeout ID on re-renders, so clearTimeout is not…
1
vote
0 answers

AKMetronomeSampler delay

I'm making a metronome app and use AKSamplerMetronome class. I did synchronization between devices with Ableton link so they could play together. I start playing and after a while sound on the device starts to delay and after couple of minutes I can…
1
vote
1 answer

How to fetch the current run status (i.e. success or failure) of all metronome jobs?

We are using metronome, and we want to create a dashboard for our jobs scheduled by it against its rest API. Alas, the job endpoint /v1/jobs does not contain the last state, i.e. success or failure, but only its configuration. Googling on how to…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
1
vote
4 answers

How to force pull docker images in DC OS?

For docker orchestration, we are currently using mesos and chronos to schedule job runs. Now, we dropped chronos and try to set it up via DCOs, using mesos and metronome. In chronos, I could activate force pulling a docker image via its yml…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
1
2 3