翻訳と辞書
Words near each other
・ JFLAP
・ JFM
・ JFM committee
・ JFMIP
・ JFO
・ JForce
・ JFP
・ JFPI Corporation
・ JFR
・ JFreeChart
・ JFS
・ JFS (file system)
・ JFS (school)
・ JFT
・ JFTR
JFugue
・ JFW
・ JFX
・ JG
・ JG Faherty
・ JG Mair
・ JG Montgomery
・ JG Motorsports
・ JG Sport
・ JG Summit Holdings
・ JGA
・ JGB
・ JGB (band)
・ JGC Corporation
・ JGE


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

JFugue : ウィキペディア英語版
JFugue
JFugue is an open source programming library that allows one to program music in the Java programming language without the complexities of MIDI. It was first released in 2002 by David Koelle. The current version, JFugue 5.0, was released in March 2015. Brian Eubanks has described JFugue as "useful for applications that need a quick and easy way to play music or to generate MIDI files."〔Eubanks, Brian D. (2005), "(Wicked Cool Java )". pp. 154–156.〕 JFugue is free software released under the Apache License.〔http://www.jfugue.org/download.html〕
==Example==
Here's an example Java program that will play the C-major scale in JFugue.

import org.jfugue.player.Player;
public class HelloWorld
}

The string passed to JFugue contains a series of musical instructions that JFugue parses and turns into musical events, which by default are rendered in MIDI. This format, called "Staccato," can represent all of the musical features of MIDI 〔"The Complete Guide to JFugue," Chapter 2, "http://www.jfugue.org/4/jfugue-chapter2.pdf"〕 and is specifically designed to be easy for people to read and write.〔"slideshare.net/dmkoelle/4130-musical-programs"〕 While the default use case for JFugue is to convert Staccato to MIDI, the architecture allows it to read and write musical information from and to a variety of formats (e.g., MIDI to MusicXML,〔Recordare LLC, "http://www.recordare.com/xml/software.html〕 Staccato to LilyPond). Below is an example converting a MIDI file to the Staccato format.

MidiParser parser = new MidiParser();
StaccatoParserListener listener = new StaccatoParserListener();
parser.addParserListener(listener);
parser.parse(MidiSystem.getSequence(new File("YourMidiFile.mid"))); // Change to the name of a MIDI file that you own the rights to
Pattern staccatoPattern = listener.getPattern();
System.out.println(staccatoPattern);

JFugue 5.0 contains a set of classes that represent ideas in music theory, including intervals, scales, chords, and chord progressions.
The notion of Patterns is integral to JFugue. Patterns are used to represent phrases of music that can be combined, repeated, and altered using tools that are aware of the musical content of the pattern.

Pattern pattern1 = new Pattern("A B C");
Pattern pattern2 = new Pattern("G F E");
pattern1.add(pattern2).repeat(3);
Player player = new Player();
player.play(pattern1);

JFugue 5.0 makes extensive use of fluent interfaces, also known as method chaining, which lets developers write short, expressive pieces of code like the following:

Chord[] chords = new ChordProgression("I IV V").setRoot("C").getChords();


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「JFugue」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.