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.
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