Results 1 to 3 of 3
- 03-14-2012, 11:17 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
New to Java, want to make an app which manipulates midi data
Hello! I am a musician who wants to make a midi-based application. I took a class in my Master's program where I made a very neat little program using LISP. I would like to take this program and turn it into a usable app, possibly something I could put up on the android marketplace for free. To get started, I need to know how to turn entire midi files into lists of usable data (I think this would be an array of arrays - LISP was all about lists, so that's the terminology I know) so that I can manipulate them and then output a new midi file using the new data. I think I can tackle transferring the basic algorithms of the code to Java, but I have no idea how to even begin getting data from actual midi file. Can anyone help me?
I need to turn midi files of any type into a series of "Cope events". Each "event" has 5 variables:
1. is ontime in 1000s of a second
2. is midi note (60 = middle C)
3. is duration in 1000s of a second
4. is channel (1 through16)
5. is loudness (0 through127)Last edited by jedbeetle; 03-14-2012 at 11:22 PM.
- 03-15-2012, 05:13 AM #2
Re: New to Java, want to make an app which manipulates midi data
Take a look at the classes in the javax.sound.* package tree. You'll probably want to start with understanding MidiFileReader. It's an abstract class, but there's a private concrete implementation somewhere in (I think) the sun.com.media.* package tree.
This guide dates from Java 1.4 but AFAIK nothing much has changed in Java sound since then: http://java.sun.com/j2se/1.4/pdf/programmer_guide.pdf
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-15-2012, 05:31 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
midi sequencer with java
By jon in forum Advanced JavaReplies: 1Last Post: 01-13-2012, 03:36 PM -
Java won't play midi sequences. How can I get this to work?
By misternopps in forum New To JavaReplies: 1Last Post: 05-26-2011, 10:14 AM -
Java Midi player
By Suende in forum New To JavaReplies: 21Last Post: 04-17-2011, 06:32 PM -
Manually edit volume of MIDI file in Java
By Ravaa in forum New To JavaReplies: 1Last Post: 03-04-2009, 05:57 PM -
how to play MIDI in java application?
By oregon in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 02:26 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks