/jmg

Real-time music generator written on Java.

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

#Java Music Generator

By Artyom Chubaryan.

Java Music Generator (or JMG) is based on jMusic library and allows you to create music in real time, play it and save to MIDI or MP3. Started as a master's degree final project it continued to grow, and I hope the quality of the generated music will be perfected with time.

##Before Starting

Getting Started

  • Install JDK 7.
  • Download the project.
  • Add gervill.jar and jave-1.0.2.jar from /libs to build path.
  • Install additional soundfonts (see below).

Installing Soundfonts

You can use custom soundbanks to make generator sound better. All you need is to put .sf2 file in /soundfonts directory and use it in RealtimePlayer.java. I suggest you to download free soundbank Fluid R3, which includes all the General Midi instruments.

  1. Download Fluid R3 (141 Mb).
  2. Extract it to /soundfonts.
  3. Rename the file to fluid.sf2 or change constant SOUNDFONT_FILENAME in /src/player/RealtimePlayer.java
  4. Enjoy the new amazing sound of generator :)

License

JMG is distributed under the GNU GPL v2.