Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for a library that can accept a chunk of audio data and return the average amplitude over time within a given frequency band.
I've already asked this question over at comp.dsp, but it's clear to me that acquiring the know-how to build this on my own using a basic FFT library is going to require more time and energy than I have at present. Here is my original question with more detai: http://groups.google.com/group/comp.dsp/browse_thread/thread/e04f78d439e9e2bd
I've found lots of nice libraries for playing with sound (I used JSyn in the past), but none of these seem to be set up to return quick and dirty spectral information about a sound sample.
Any pointers would be much appreciated.
This Archived Blog shows a java implementation of the FFT algorithm which is very concise and reads audio files and calculates the frequency spectrum.
You could also check Jtranforms open source FFT library
Unfortunately the blog is gone, here are some other resources on FFT.
http://web.archive.org/web/20160301081621/http://www.wikijava.org/wiki/The_Fast_Fourier_Transform_in_Java_(part_1)
http://www.royvanrijn.com/blog/2010/06/creating-shazam-in-java/
Not java but added for the explanation: https://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/
have a look at the jAudio package in jMir, there is probably much more than what you need ...
Have you taken a look at this:
http://download.oracle.com/javase/tutorial/sound/TOC.html
I have also used the Java Media Framework for video processing but I believe that they provide a good API for sound processing too. You should also look into that.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking to develop a little Java piece that can capture an image using a digital camera and I can't find a suitable API - I know this is duplicating similar questions but they are old, and after finding lots of old old threads everywhere complaining about the lack of an API I am asking again to see if anybody knows of where this may have been developed - and offered free of course (mine is just a personal project - no distribution).
I want to capture still images from a digital camera, or a DSLR - I have applied for Canons SDK but I do not think it will be approved as it will not be benefiting them at all.
The image must not be a screenshot of a feed retrieved from the camera - I want to capture a native image using the shutter of the camera - and retrieve it in the app for processing - this way I do not get an awfully grainy image, I get one at full quality.
I have been looking into a few API's but if they are not extortionately expensive (JTWAIN), they simply do not do what I want (JFM).
So, are there any out there? Am I just looking in the wrong places?
apparently Xuggler seems to do the job, you can use it with or without maven or even build it yourself, even ant is possible. There are quite a few tutorials on the subject, even on SO
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for a library that will allow me to work with sound. This is just something that occurred to me and the problem is that in a large music collection I need to find tracks similar to another reference track . The simplest of things would be to find tracks with the same/almost-the-same tempo . Is this possible and are there any tools available for this ?
Finding music which is similar to other music is quite a complex field, and will probably require quite a bit of work if you're willing to spend quite a bit of time. If Java is your language of choice, then you could have a look at coMIRVA which will let you compare music based on timbre. From my experience, doing comparisons on that single dimensions isn't always good enough, but it is at least a start.
There's always the other path, which is to use an already existing commercial offering such as the Echo Nest and BMAT. I don't know what they cost, but it's probably quite pricey. However, these are products that have taken years to develop so I assume they must at least provide some sort of value.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for recommendations for a simple open source implementation of a Distributed Hash Table in Java to play around with. No fancy features, just for learning purposes, no production functionality needed. It should be simple to set up (e.g. 1 physical machine with n-JVMs) and well documented preferably with some examples, tutorials or starting guides.
Research yields these candidates: FreePastry and OpenChord but I'm not fully convinced they meet my criteria simplicity-wise.
Have you got any experience with these or other implementations? Recommendations?
Thanks & adios
There is TomP2P on Github.
Maybe JDHT will fit the bill. I haven't checked it out myself, but it's written at a university, sometimes that means it's simple and used for teaching. :-)
I have been working on an implementation of Kademlia lately. It's very simple to setup and use and it's well documented. There are several tests written that demonstrate the different functionality as well as a starting guide in the Readme.md file itself.
You can use openkad
I started with free pastry..I've had a great experience with it. It was very simple to set up and run a ring of nodes. I've been mainly using PAST (File storage) and its been quite easy to get running. I'd suggest having a look at the PAST tutorial here. https://trac.freepastry.org/wiki/tut_past
The code is over simplified in my opinion but you say that is all you need so I guess thats ok.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm working on a OpenGL game in Java and I want to incorporate sound.
I've done some ferreting, and having some trouble finding something. I've seen that JOAL is now defunct, and there's a popular 3D Sound Engine (paulscode) which seems a bit complicated, and there were references to JOrbis but I wasn't sure it was what I wanted.
I will settle for Ogg or WAV format, it's just for a little 2D game so it doesn't have to be super hi-fi quality, just something the players can hear. I would like sound FX and also music.
How should we know what you want if you don't know yourself?
For PCM encoded WAV files, you can use JavaSound directly, which is part of the standard Java API (javax.sound). For Vorbis files, there are several Java decoders available. JOrbis as you already mentioned is one, J-Ogg another and Xiph has also recently released a Java libraries for the Vorbis decoder.
JOAL is maintained and available from JogAmp
http://jogamp.org/joal/www/
http://jogamp.org/joal-demos/www/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I need to find out the time a function takes for computing the performance of the application / function.
is their any open source Java APIs for doing the same ?
You're in luck as there are quite a few open source Java profilers available for you.
Take a look at the official TPTP plugin for Eclipse. This pretty much does all you describe and a (frikkin') whole lot more. I can really recommend it.
I don't know if there are APIS, but you normally use the funciton currenttimemillis for that... You measure the time at the beggining, then again at the end of the execution and voila!!! you got your time substracting
Hiperic provide a GPLv2 licenced tool for monitoring all sort of system resources called SIGAR (System Information Gatherer and Reporter).
This tool is used to provide things like adaptive load balancing in GridGain (a grid computing framework).
http://www.hyperic.com/products/sigar.html
Have a look to this question : Which java profiling tool do you use and which tool you think is the best ?
If it's just one function you care about, wrap a million-iteration loop around it, and time it with a stopwatch. Then seconds translate to microseconds.
On the other hand, if you want to speed it up, all you need is this.