File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes More Music - Any ideas? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "More Music - Any ideas?" Watch "More Music - Any ideas?" New topic
Author

More Music - Any ideas?

Stuart Woodhead
Greenhorn

Joined: Apr 23, 2003
Posts: 2
Hey, my names Stuart, Ive only been on once before and recieved some excellent help with my project from Jessica Sant so many thanks to her. It really is appreciated. It now turns out that its best to write my music analysis program in MATLAB. Apparently this shouldnt be too hard but I do need to write code for a music player. Heres the story...
This program in MATLAB needs to read in a file, analyse it via the fourier series and come out with some frequency analysis results. From these, with the right parameters, the program should be able to distinguish between different styles of music (types of music use different instruments and hence different frequencies). Apparently you cant alter or 'tag' the file with a genre so I need to create a seperate text file or a list with an identifier in it i.e. a number or a reserved letter. The player written in java needs to look at this list and pick out certain files depending on which genre the user has chosen from the very simplistic player. Simple.
Not for me. In my head the idea seems really simple and clear but I dont have the java knowledge to back it up. Do you have any ideas concerning the player or list? Im not sure where or how to start. Any pointers would be greatly appreciated.
Thanks again,
Stuart.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

wahoo! Lets see if I can save the day again... ahh MATLAB -- I remember that from college. Yup it can do all that fancy-shmancy fourier stuff. Good call.
ok -- so this is the main chunk of what you need to do in your java program right? so I need to create a seperate text file or a list with an identifier in it i.e. a number or a reserved letter. The player written in java needs to look at this list and pick out certain files depending on which genre the user has chosen from the very simplistic player. Simple.
So... you need to be able to work with a text file with name-value pairs. Or in your case title-genre pairs? Maybe like this:
#uniqueNumber=Genre
16234=rap
72342=rock
61948=classical
77703=jazz
16602=jazz
Java can easily do these with something called Properties. Check out this tutorial from Sun: Using Properties to Manage Program Attributes


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: More Music - Any ideas?