android
  #1  
Old 06-12-2010, 04:50 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default Bpm Calc. Proof-of-Concept

Quote:
Originally Posted by Brett_val View Post
I'd love to be able to use input from the mic, but yeah as of now, that's not possible..

As for the metronome app, it's been discussed before, and although this thread is mostly about bugs, a metronome is very possible:

http://www.anythingbutipod.com/forum...ad.php?t=54618

I'm not sure if it would be possible to add a touch-to-calculate the bpm functionlaty though..
I'm pretty sure a touch-to-calculate bpm is very possible to do, actually pretty easy. At least if I remember correctly how we could access the time the app had been running and we can perform arithmetics on it to calculate the time between screen taps, that would after 5 or so samples be able to provide an estimated bpm based on the average time between your taps.


Here is a quick Proof-Of-Concept that you can indeed calculate the Bpm by reading taps.
Feel free to use this in a Metronome app, just give a line of credit or something in the code or OP and I'm happy =P
Attached Files
File Type: zip Bpm calc POC.zip (1.4 KB, 70 views)
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^

Last edited by Habhome; 06-12-2010 at 08:58 AM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 06-13-2010, 02:05 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by Habhome View Post
I'm pretty sure a touch-to-calculate bpm is very possible to do, actually pretty easy. At least if I remember correctly how we could access the time the app had been running and we can perform arithmetics on it to calculate the time between screen taps, that would after 5 or so samples be able to provide an estimated bpm based on the average time between your taps.


Here is a quick Proof-Of-Concept that you can indeed calculate the Bpm by reading taps.
Feel free to use this in a Metronome app, just give a line of credit or something in the code or OP and I'm happy =P
Aah.. os.ostime() does milliseconds! I only thought of os.time().. Hmm.. a while ago, I was experimenting with a simple beep-metronome. I just dug it up and it's working pretty well, aside from the fact that the UI sucks. I pm'd x130844 to ask how it's going with his metronome app.
Reply With Quote

  #3  
Old 06-13-2010, 02:59 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Quote:
Originally Posted by Brett_val View Post
Aah.. os.ostime() does milliseconds! I only thought of os.time().. Hmm.. a while ago, I was experimenting with a simple beep-metronome. I just dug it up and it's working pretty well, aside from the fact that the UI sucks. I pm'd x130844 to ask how it's going with his metronome app.
Nice. If you want you can implement my Bmp calc if you want, or just design one yourself now that you know about os.ostime(). What in the UI is bad? If you need some nicer graphics I'm always there to help. Also, should I split these posts about us discussing metronome app into the existing metronome one or into one of its own?
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #4  
Old 06-13-2010, 05:54 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by Habhome View Post
Nice. If you want you can implement my Bmp calc if you want, or just design one yourself now that you know about os.ostime(). What in the UI is bad? If you need some nicer graphics I'm always there to help. Also, should I split these posts about us discussing metronome app into the existing metronome one or into one of its own?
Well the UI is non-existant I just set it to change the bmp when you drag up/down or click the upper/lower side of the screen, and to display the current bpm.. just so that I could try it out myself.

But yeah it would be great if you could help with that

I was thinking of a circular dail for the bpm, so you could drag it around to change the bpm, but I'm not sure how to do that coding wise.. on the other hand, it might also be nice to resemble an analog metronome in portraitmode, and keep the up/down dragging.

I think the best place for this discussion would be in the existing metronome tread. That way we could be of assistance if x130844 still wants to release his app, and x130844 could use our input and future help to accomplish that.

But, on the other hand, x130844 has given op on it, we could start our own thread instead.
Reply With Quote

  #5  
Old 06-14-2010, 09:49 AM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

I personally think a classic metronome with sliding it vertically and the stick moving back and forth and use an animation for it and what you set the bmp to you do some math and then you have how fast the stick moves
Reply With Quote

  #6  
Old 06-16-2010, 07:44 AM
VortexSurfer VortexSurfer is offline
Junior Member
 
Join Date: Feb 2010
Posts: 6
Default

Great job Habhome. That's exactly what I meant and you were super fast too... looking forward to see this function implemented in a metronome app! (ideally it should be possible to determine the bpm and then press a play button to start the metronome at exactly that speed...). Well, thank you all so far for you efforts, I wish I was able to help out...
Reply With Quote

  #7  
Old 06-17-2010, 06:00 PM
x130844 x130844 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 11
Default

Quote:
Originally Posted by jbob182 View Post
I personally think a classic metronome with sliding it vertically and the stick moving back and forth and use an animation for it and what you set the bmp to you do some math and then you have how fast the stick moves
The sliders and dials etc are all cool on metronomes, but really, i found that entering numbers was way more accurate and faster than dials while practicing and during live performance.
See the metronome app i released, you may not like it, but i know that's exactly what our band wanted.
(and it automatically stops after 16 beats), so really this is more used to start songs.
one could edit the code and make it go on for ever like real metronomes.
Reply With Quote

  #8  
Old 12-19-2010, 06:28 AM
jameswalker101 jameswalker101 is offline
Junior Member
 
Join Date: Jul 2010
Location: United Kingdom
Posts: 91
Lightbulb

Quote:
Originally Posted by x130844 View Post
The sliders and dials etc are all cool on metronomes, but really, i found that entering numbers was way more accurate and faster than dials while practicing and during live performance.
See the metronome app i released, you may not like it, but i know that's exactly what our band wanted.
(and it automatically stops after 16 beats), so really this is more used to start songs.
one could edit the code and make it go on for ever like real metronomes.
It would be great with a "16 beat" button and a "forever" button in the app!
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:17 PM.