-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get tempo via tap #3
Comments
This could be done with a piezo sensor and a few diodes (to avoid damage to the Arduino). We have some piezos available in UC3Music, and I can give you some more diodes if you need them. This is quite similar to Shiva, so if you have any doubts please ask! 😄 |
Done! ... (?) |
It works ONLY if metronome is stopped?
Maybe you're using global delays for metronome, so the entire board is
halted all time and can't check for button presses.
El sáb., 14 abr. 2018 2:40, Tomás Criado <[email protected]>
escribió:
… Done! ... (?)
I used this library (https://github.com/dxinteractive/ArduinoTapTempo)
and a button.
It works when the metronome stops...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKgbgABp3OT82VAFi47Tp9xlhED-tzYQks5toUV6gaJpZM4TRnSx>
.
|
Things to check out to solve this (proposed in our last meeting):
time = millis();
while(true) // or another condition
{
if (millis()-time = 7)
{
time += 7; // update current measure time
// blink or beep or whatever
}
// do other stuff here, such as checking the buttons
}
|
Little correction about @David-Estevez's last comment:
bpm = 60/T (T in seconds) So at 140bpm => T = 0,4285 s = 428,5 ms So just replace the "7"s with 428. This doesn't affect the algorithms, but may cause some confusion. |
You are absolutely right, my bad 😅 |
I did the next code in order to check the propose idea and I think that it's works well.
The next step is redesign the main part of the code and implement that in the loop ir order to test the buttons all the time. If you see any problem or suggestion, tell me. |
No description provided.
The text was updated successfully, but these errors were encountered: