Aubio for BPM tracking on Android - android

I am working on a android audio project which requires BPM tracking. I decided that writing my own would not be a good idea and after looking around, I found a few libraries that does BPM tracking such as aubio, vamp, echonest etc. Out of the lot aubio seemed a good choice. The problem is I cannot find good documentation that can help understand how I can use the library, such as, what sort of input audio formats are compatible (should i pre-process the audio before passing it to the function), etc.
Can you point me to some documentations or implementations of aubio to some open source projects (on android would be a bonus).
If you think there is an easier way (another algorithm/library) to port on android (preferably in c), let me know.
Thanks.

I used the make files provided with aubio to cross compile it for android. I followed some tutorials such as this which shows how to cross compile open source libraries. As for the documentation for aubio, i just used it several times to understand how it works (i studied how the examples worked) and read the phd thesis of the author to get a rough idea on the technical stuff.

Related

mpg123 for Android

I developed an Android app that reads an .mp3-file, does some manipulation on the PCM data and writes the result to another .mp3-file. So far, I have been using JLayer for decoding and LAME (with NDK) for mp3-encoding. Everything works fine - the only issue is that JLayer is very slow (as discussed here). Thus, I would like to switch to mpg123 that presumably is very fast. For LAME there are nice Android NDK tutorials around, but for mpg123 I have not found anything. The only functionality I need is to decode an mp3-file framewise and obtain the data as PCM. I also checked this, this and this question, but my problem remains unsolved. As I am new to Android NDK I have two questions:
Does any of you know a step-by-step tutorial showing how to compile mpg123 for Android using the NDK? In particular, I do not know what the Android.mk and the wrapper.c should look like.
Does any of you have a good alternative? In principle the only thing I am looking for is a fast version of JLayer because the functionality is excellent whereas the performance is poor.
Any help will greatly be appreciated!

Which AR (Augmented Reality) framework (Android & iOS) is suitable for my situation

My Situation
I want to build an Application that can recognize an Image to produce a corresponding model.
i.e. I focus the camera to show a printed image on the card that is designed by myself ( apple logo ) , then it will show a 3D model(.md2) on the screen which is also designed by myself.
I have googled many framework that worked on both Android & iOS, but the documentations are very limited and the trial version does not support me to test it.
for example,
http://www.metaio.com/sdk/
But their demo is not comprehensive enough to suite my situation
My Question
1.Would anyone can share their experience of developing with AR framework (not the AR core) on Android & iOS?
2.Is there any framework that support me to add a image as a key then it will map to my model with just a couples line of codes?
3.if Q2 is not possible, is there any approaches of some framework can also archive the some goal but more complex ?
//Logic flow
String key = "APPLE";
sdk.putKeyImage(key,apple.png);
...
if (sdk.identifiedAs(key)){
//Do something
//Example
sdk.showApple3DModel();
play(showSnakeEatApple.mp4);
}
I'm an android app developer. So according to my experince for android, you can go for
Vuforia (https://developer.vuforia.com/resources/sdk/android)
Wikitude (http://www.wikitude.com/developer/documentation/android)
These above 2 are enough good to implement AR app in android.
Vuforia is having well documented, also they have more libraries & mainly those are free. & Wikitude is best for making apps faster. I recommend you to use any of these for your AR app development in android.
I guess you should compare several AR frameworks to find a proper solution for your problem. Many different AR tools come to my mind. For example, Vuforia, LayAR, Kudan AR. To take a deeper look at the variety of possible options read the comprehensive comparison of the most popular frameworks: http://cases.azoft.com/top-5-tools-creating-augmented-reality-apps/
yes i did work on it not much but little bit i did research on augmented reality and after research i found one open source and cross platform well known sdk its name is
VUFORIA SDK
there are various SDK you find on google but trust me VUFORIA is best and flexible who gives lots of option
for that you need to install NDK in eclipse cause it have core cpp code who compile by NDK in eclipse
video tutorial click here
sdk and documentation click here
steps click here
hope it will be helpful for you thank you happy coding

Any AFSK libraries for Android? (for data input via Android headphone jack)

I'm trying to implement a audio jack data interface using AFSK and a micro-controller.
Through searches I've seen a couple implementations that use iPhones, such as this:
http://www.creativedistraction.com/demos/sensor-data-to-iphone-through-the-headphone-jack-using-arduino/comment-page-1/#comment-243826
There they used "Perceptive Developmentā€™s SerialModem for iPhone", although that seems to contain a hex file and a circuit schematic?
I haven't been able to find anything by searching for "AFSK Android library", "FSK android library" or various other combinations of that. Does anyone know of a good source for these kinds of tools for Android?
Alternatively, is there a library that implements the simplified FFT that you could use to demodulate the data? Naturally you don't want to do a full FFT because you're just trying to distinguish between
(Ideas drawn from here: http://labs.perceptdev.com/how-to-talk-to-tin-can/) but I'm sure there's something like
I looked into spandsp, http://www.soft-switch.org/ , looking for more general DSP libraries. Not sure if these can be used on Android though.
Thanks for your help

is there any lib exists for libspotify 12 for android java?

I want to integrate libspotify as sound/player service and integrate spotify in more then one java applications.
Can anyone suggest me any lib or any code example to get me started?
Disclaimer: I work for Spotify
At the moment, Spotify doesn't have a nice Java wrapper for libspotify, but this is definitely something we are thinking about doing in the future. I can't offer an estimate on when this will be available, so if you are dying to get started writing apps which integrate with Spotify, you should use the natively-compiled libspotify for Android rather than waiting for a Java wrapper.
The current preferred way of doing Android work with libspotify is to use the natively-compiled library which can be found on the libspotify website. You'll have to write your own JNI wrappers around it, which can be a bit tricky, but is definitely not an impossible task. :) Unfortunately the documentation for using libspotify under Android is a bit lacking. Again, this is something that Spotify is working to improve.
There is a third-party project called jlibspotify which offers a Java wrapper around libspotify. I personally have not used it before, so I can't comment on how good the project is, but if I recall correctly it is based on an older version of libspotify, so you might be better off going the JNI route detailed above.
I noticed that there is also libjahspotify out there, which seems newer than jlibspotify. I haven't tried it though.

I'm struggling to find helpful, clear resources for OpenCV

I'm attempting to use OpenCV (on Android) in a project, however I'm struggling to find good resources. I've found example demos from the OpenCV site, and several tutorials, but many of them aren't very clear.
Are there any step-by-step, clear tutorials available, ideally with accompanying code?
(Particularly anything helpful with object recognition - so things such as colour detection, so likely colour histograms, and any means of feature recognition - possibly Haar Training. Though anything on OpenCV would be great!)
The (many) tutorials / demos I have found include the following -
OpenCV Guide
http://cgi.cse.unsw.edu.au/~cs4411/wiki/index.php?title=OpenCV_Guide
(One of the better ones, found through Stack Overflow)
OpenCV on Android
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
(This was very helpful in installing OpenCV to work with Eclipse and Android, though I found it lacking in any kind of documentation for the demo samples)
Haar Training
http://note.sonots.com/SciSoftware/haartraining.html
(I found this a bit vague and confusing)
OpenCV Tutorials
http://www.shervinemami.info/openCV.html
(This was one of the better tutorials)
I've had pretty much the same experience as you have. My strategy for getting good results with opencv has been a two-pronged approach:
Find a tutorial on whatever it is I'm trying to get done and scan for all references to opencv functions, and data structures.
Look up the documentation for all those items referenced in point 1: http://opencv.willowgarage.com/documentation/
Then re-read the tutorial, going to the corresponding documentation whenever there's something I don't understand.
I found that my understanding of the various tutorials went up drastically once I used the documentation and took it a step at a time. Not an exact answer, but hope it helps :-)

Categories

Resources