JMusic
Encyclopedia
jMusic is an open source
Open-source software
Open-source software is computer software that is available in source code form: the source code and certain other rights normally reserved for copyright holders are provided under a software license that permits users to study, change, improve and at times also to distribute the software.Open...

 music programming library written in the Java programming language
Java (Sun)
Java refers to several computer software products and specifications from Sun Microsystems, a subsidiary of Oracle Corporation, that together provide a system for developing application software and deploying it in a cross-platform environment...

. Written by Andrew Sorensen and Andrew Brown, jMusic was released publicly in November 1998. It is under GNU GPL license.

It is designed to assist composers and music software developers by providing support for music data structures, modifications, and input/output to various file formats. It can display notes as sheet music (see music notation).

jMusic has a data structure
Data structure
In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.Different kinds of data structures are suited to different kinds of applications, and some are highly specialized to specific tasks...

 that is based on a musical score metaphor, and consists of a hierarchy of notes, phrases, parts and score. jMusic also has a sound synthesis architecture and "instruments" can be created from a chain of "audio objects" (similar to unit generators in other languages). A jMusic score can be rendered with jMusic instruments to an audio file.

Code Sample

Note n = new Note(C4, CROTCHET); // Middle C (quarter note)
Note n2 = new Note(D4, CROTCHET);

Phrase p = new Phrase;
p.addNote(n); // Add C
p.addNote(n2); // Add D

See also

  • Music notation
  • Sound Object (SndObj) Library
    Sound Object (SndObj) Library
    The Sound Object Library is a C++ object-oriented programming library for music and audio development. It is composed of 100+ classes for signal processing, audio, MIDI and file IO and is available, cross-platform, for Linux, Windows, Mac OS X, IRIX and other Unix-like systems.The library...


External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK