Posts: 13,355
Threads: 301
Joined: Apr 2012
Reputation:
235
I've had a chance to explore this a little more - the approach I'm using on Android just has too much initial latency to be used accurately. So I'm going to need to switch to either generating the metronome loop in memory and then playing that, or use the same approach as the Windows version which generates an audio file temporarily that has the entire metronome loop and then I just play that in a loop like I would with any other audio file. I'm probably going to go with the file-based approach because the amount of data needed to represent a very slow bpm over the the entire metronome loop is actually quite a bit, so it's more efficient to generate a temporary file than to consume a lot of memory on the device for this.
Thanks,
Mike
Posts: 59
Threads: 12
Joined: Nov 2018
Reputation:
0
Awesome, sounds like a good solution. Thanks!
Posts: 13,355
Threads: 301
Joined: Apr 2012
Reputation:
235
I released changes with version 3.4.9 that should help with the issues you were encountering with the metronome. With the latest changes, I can now accurately start the metronome to match an existing beat, and I also improved the accuracy over time. In the previous version, even if you did manage to start the metronome at the right time, over time it would gradually get off beat. The new approach works much better in this regard. Please test it when you get a chance and let me know if it works better for you as well.
Mike
Posts: 59
Threads: 12
Joined: Nov 2018
Reputation:
0
Thanks Mike!
Metronome playback now starts instantly, perfect!
I noticed some inaccuracy over time when compared to Google's 'built-in' metronome.
But when I run it along a metronome app on my phone, they stay in sync.
I'm guessing Google's metronome is at fault here.
Thanks for the quick fix!
Posts: 13,355
Threads: 301
Joined: Apr 2012
Reputation:
235
I tested at 120 bpm with a very accurate metronome app, and MobileSheets stayed in sync for 5 minutes without any variation, so I think it should be just fine. When using some bpms that don't divide evenly, each metronome can handle the fractional values differently, so you can get a small amount of variation over time.
Mike