Questions tagged [metronome]

40 questions
0
votes
0 answers

Swift: how to calculate the correct dispatch time in a metronome

I am developing a metronome in my App and I want to implement a feature where the metronome can change its tempo at a certain time. For example, plays 4 ticks at a tempo = 120 bpm and then plays 8 ticks at a tempo = 200 bpm and then go back to 120…
KamaroY
  • 35
  • 5
0
votes
1 answer

AudioKit AKMetronome callback timing seems imprecise or quantized

I'm new to AudioKit and digital audio in general, so I'm sure there must be something I'm missing. I'm trying to get precise timing from AKMetronome by getting the timestamp of each callback. The timing seems to be quantized in some way though, and…
JiminyKirket
  • 34
  • 1
  • 2
0
votes
1 answer

Accelerating a Timer.periodic while it's still running

I'm new to programming and flutter and I just got stuck with this. I want to build a metronome that can accelerate at fixed intervals. For example, every 5 seconds the timer gets faster by 10 beats per minute. I coded the basic metronome using…
GRC
  • 111
  • 1
  • 1
  • 6
0
votes
1 answer

Metronome ios swift beat visuals lag

I'm trying to create an metronome app by implementing the sample code provided by apple. Everything works fine but i'm seeing an delay in the beat visuals its not properly synchronised with the player time. Here is the sample code provided by…
RAM
  • 119
  • 1
  • 14
0
votes
1 answer

Python metronome with twisted: How to pass parameter for iteration?

I wanted to build a metronome in Python. I have 2 sound files. Every second the first sound file should played and every fourth second the second sound file should played. I found the twisted module, but couldn't figure out how to pass an parameter…
user6451039
0
votes
1 answer

Property of { return 60000 / bpm } always returning 600ms?

I'm trying to build a steady metronome that ticks every beat, but it seems like there is a problem. How long the metronome waits for each beat is determined by this formula: 60000 / BPM But, the value seems to return a specific number no matter what…
IIRawCodeII
  • 375
  • 1
  • 3
  • 9
0
votes
0 answers

Trying to get a JFrame to update every second for a Metronome Program

import java.awt.Color; import java.awt.Graphics; import java.util.Timer; import java.util.TimerTask; import javax.swing.JFrame; public class guiMethod extends JFrame { public static void main(String[] args) { guiMethod metronome =…
Devon Caron
  • 21
  • 1
  • 2
0
votes
1 answer

Unity: accurate Metronome with PlayScheduled() doesn't work

I'm trying to program an accurate metronome in unity. I know, that there are already some questions for that, but I can't find a solution for my problem. My first naive implementation used Play() or PlayOneShot(). But unfortunately it wasn't very…
M. Lang
  • 1
  • 2
-1
votes
1 answer

i've got error during making metronome in python

i'm new here so please understand my stupid format :) Let's get down to the business. i was studying and trying to make metronome programm by Kwisses on github. when i complied the code it says "line 29 def interface(self): ^ IndentationError:…
김동주
  • 1
  • 1
-2
votes
1 answer

Metronome in Java

I am working on an implementation for a metronome in Java. I have read around that using Thread.sleep isn't the best way to actually sync the times properly which may be the root of my problem. However, the issue I am running across in the beginning…
Alien8tr96
  • 23
  • 1
  • 11
1 2
3