Questions tagged [jfugue]

JFugue is an open-source library for programming music for Java and JVM languages.

JFugue is an open-source library for programming music for Java and JVM languages.

Example code:

// Example 1
Player player = new Player();
player.play("C D E F G A B");

// Example 2
ChordProgression cp = new ChordProgression("I IV V").setKey("Eb");
new Player().play(cp);

Homepage | JavaDoc

92 questions
2
votes
0 answers

I can not create a MIDI file twice, using JFugue on Android

I am using JFugue for Android and I have been able to generate Midi files, which subsequently reproduce using MediaPlayer. My code is as follows: My problem is that I can only create the MIDI file the first time I pressed the Play button on the UI.…
2
votes
0 answers

Eclipse, Java, Midi, Linux(Debian) - sequencer issue

Here's the problem: Exception in thread "main" org.jfugue.JFugueException: The MIDI System cannot instantiate a sequencer. Although this error is reported by JFugue, the problem is not with JFugue itself. Find resources for using MIDI on your…
2
votes
1 answer

how to add action to new jbutton inside another button for playing jfugue pattern

I want to ask how to add action jbutton in java, im newbie on java. im making a program to optimize chord with Harmony Search algorithm using netbeans. jButton3 has a function to process the algorithms, but i need to make 1 button more named…
Theresia
  • 33
  • 5
2
votes
1 answer

JFugue parser exception in the value of duration, in the case of 'notes sharing same duration'

I'm working with JFugue , when i tried to execute the code Player myPlayer = new Player(); myPlayer.play( ":DEFAULT(duration=.25)"); Pattern test=new Pattern(" m327.0 m348.8 ( m392.4/0.25 m413.393 m392.4 )/0.5 m348.8…
2
votes
3 answers

JFugue Java music API implementation in Android

I already implemented Ksoji's 'jfugue-android' library (https://github.com/kshoji/JFugue-for-Android/tree/master/jfugue-android) in my project, but I can't do anything with it, for example initialize it by typing: MidiSystem.initialize(this); since…
user102
  • 35
  • 6
2
votes
1 answer

Custom note/rest duration in JFugue

is it possible to make custom note and rest duration using JFugue? I have been trying to achieve this by using the / symbol in MusicString for the note duration but with no success. The code used is: Player player = new…
Neos
  • 53
  • 5
2
votes
1 answer

Composing Music for Dholak Instrument in Jfugue

I compose music in java with JFUGUE. Jfugue contains some Indian instruments like Sitar and Shanai etc., but I need to compose for Dholak or Tabla (percussion instruments), which are not enlisted in the list of 127 instruments in Jfugue. Is there…
emm
  • 153
  • 1
  • 1
  • 7
2
votes
0 answers

Jfugue: Improper MusicXML Format

I'm working on a personal project in Java and I'm using JFugue to simplify music generation and playback. I'm trying to output a MusicXML file for each of my saved MIDI files so They can be viewed in Finale NotePad, but the MusicXML files that are…
Leon
  • 21
  • 1
2
votes
1 answer

jFugue Saving MIDI Files While Still Including Loaded Instruments

I am using an external soundfont to play MusicStrings and everything is working find. When I use player.saveMidi(etc, etc) the files are saved with the original MIDI soundfont. Soundbank soundbank = MidiSystem.getSoundbank(new…
2
votes
0 answers

Can we create our own composition using Soundfont and JFugue?

Can we create our own composition using Soundfont? I am using Tabla Soundfont along with JFugue to create the new composition and play it. But after loading the instruments from the Soundbank the program still plays the default sound of Piano.How to…
SubodhD
  • 306
  • 5
  • 16
2
votes
1 answer

Instrument does not change in Jfugue

I am running the Jfugue test program, here is the code: package ge; import org.jfugue.*; public class GE { /** * @param args the command line arguments */ public static void main(String[] args) { Player player = new…
newnewbie
  • 993
  • 2
  • 11
  • 26
2
votes
1 answer

Netbeans project in Eclipse

I am Java beginner. I have developed only two Java desktop applications and I use Eclipse as IDE. Right now I wanted to work on this project https://nbjfuguesupport.dev.java.net/ All code is in Netbeans. I suceeded to import all libraries that are…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
2
votes
1 answer

How to add dependency to jfugue using eclipse?

I'm working on a project on Eclipse IDE that requires jfugue. How do I add this dependency to my project, using Maven? I tried to: Right click to the project name->Maven->Add Dependency; I added a dependency from pom.xml form:
Davide Pastore
  • 8,678
  • 10
  • 39
  • 53
1
vote
2 answers

Dynamics using JFugue

I have been working with JFugue to generate music. Does anybody know how to add dynamics to music strings? Is it even possible?
eboix
  • 5,113
  • 1
  • 27
  • 38
1
vote
1 answer

jFugue - How to use Left Hand and Right Hand on the Piano at the same time?

I am using jFugue to create generative music. So far I was successful with creating music based on probability from an analysis of the song. However, so far I only have the right hand side of the piano being played. I now want to include the left…
Ryan S
  • 3,210
  • 17
  • 48
  • 79