Results 1 to 3 of 3
  1. #1
    jedbeetle is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default 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

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    jedbeetle is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: New to Java, want to make an app which manipulates midi data

    Thank you.

Similar Threads

  1. midi sequencer with java
    By jon in forum Advanced Java
    Replies: 1
    Last Post: 01-13-2012, 03:36 PM
  2. Replies: 1
    Last Post: 05-26-2011, 10:14 AM
  3. Java Midi player
    By Suende in forum New To Java
    Replies: 21
    Last Post: 04-17-2011, 06:32 PM
  4. Manually edit volume of MIDI file in Java
    By Ravaa in forum New To Java
    Replies: 1
    Last Post: 03-04-2009, 05:57 PM
  5. how to play MIDI in java application?
    By oregon in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 02:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •