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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…