Results 1 to 2 of 2

Thread: MIDI to PCM

  1. #1
    Ben Wheatley is offline Member
    Join Date
    Jul 2009
    Rep Power

    Question MIDI to PCM

    It seems like a reasonable thing to do for a number of reasons (post-processing, file format conversion, etc.), but I cannot see any obvious way to take a MIDI sequence in Java and turn it into a PCM sequence. Play, yes, but not convert.

    I know it's possible to, for example, play the MIDI file and physically connect the speaker socket to the microphone socket, but there must be a software-only way of doing it, and there should be a pure-Java way of doing it.

    Any ideas?

  2. #2
    freqrush is offline Member
    Join Date
    Jan 2009
    Rep Power


    I'm very new to Java, but not new to MIDI or software synths, here are my $0.02

    The MIDI file can be played in two ways (that I can think of):
    1. by using a SoundFont (actually a collection of pieces of PCM data, to be mixed an glued together and saved as one PCM "block?")
    2. by using one or many "PCM generators", actually software synthesizers that render the PCM data at runtime, and also a mixing method to mix the outputs of up to 16 synths into a stereo PCM file.

    Maybe it's easiest if you choose the SoundFont way, use a GM (General Midi) SoundFont and only accept GM MIDI files to get started.

    Or you could have a look at jvstwrapper dot sourceforge dot net :)

Similar Threads

  1. Getting input from MIDI devices on a Mac
    By Ben Wheatley in forum Advanced Java
    Replies: 1
    Last Post: 08-05-2009, 07:08 PM
  2. midi bytes
    By willemjav in forum Advanced Java
    Replies: 77
    Last Post: 07-29-2008, 04:10 PM
  3. Determining Midi Length
    By Usagi in forum New To Java
    Replies: 0
    Last Post: 12-09-2007, 12:45 AM
  4. help with midi files
    By leonard in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:40 PM

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