Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
164 views
in Technique[技术] by (71.8m points)

algorithm - How to write a sporadic metronome?

So, my reason for this question: I want a metronome that sporadically changes tempo -- I use the metronome during my boxing drills (if you are curious, mostly for jump rope or any footwork). I can script a metronome rather easily by requesting an audio file over a loop -- Also, I can think of ways (perhaps not all elegant) to to change tempo after certain increments of my defined time unit have passed. But if I wanted that, I certainly wouldn't have come to this forum.

A metronome that randomly changes tempos would be invaluable for my purposes (I won't elaborate on them, as they aren't relevant to the forum). I can't think of a way to accomplish this on my own -- Regrettably, I never took an pure algorithms course, since I thought I wouldn't need it for physics. I'm sure there is an obvious one I could recall if I had, and can't figure out a general form on my own.

It doesn't matter what language the script is in -- in fact, a basic form would be better for me to work with.

I hope someone can point me in the right direction, and I would be extremely grateful, thanks.

question from:https://stackoverflow.com/questions/65931898/how-to-write-a-sporadic-metronome

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...