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
0
votes
0 answers

JFugue Android 40BPM until 57BPM error

When I set T40 it supposed to play in tempo 40 bpm but it plays in tempo 135 bpm!!! When I set T41 it is in tempo 145 bpm and this continue until T57. From T58 it is ok I mean is in tempo 58 bpm. Pattern pattern = new Pattern("T40 V0 I[Piano] Cq Cq…
John
  • 19
  • 1
  • 4
0
votes
3 answers

How to call a Java class on button click to play Jfugue

When I only run the java file it produces sound. I now want on button click to call the java file and produce the sound in eclipse. Here is my Java code: import org.jfugue.player.Player; public class HelloWorld { public static void main(String[]…
John
  • 19
  • 1
  • 4
0
votes
0 answers

JFugue 5.0.4 loading Synthesizer does not work

I was doing some really cool stuff with JFugue 4.0.3 when 5 came and I noticed it came with lots of new features. Now trying to move some code to jfugue 5.0.4 I see that my external soundfont is not being loaded, even when trying it in the new way…
0
votes
0 answers

Is it possible for JFugue to output to an audio cast?

I want to run JFugue on an Amazon cloud instance to create a music stream from data on the cloud instance...and then listen to the music stream on my local laptop via some audio cast system. Is there any way to get JFugue to output a music stream…
Brian Tarbox
  • 2,335
  • 1
  • 20
  • 30
0
votes
1 answer

JFugue hangs while parsing from music xml parser

I am trying to write a simple parser to read MusicXML and play it back. I am using JFugue 5.0.3. The library simply hangs in the middle half the time. My code:- public void play() throws ParserConfigurationException, ParsingException, IOException…
Arunav Sanyal
  • 1,708
  • 1
  • 16
  • 36
0
votes
2 answers

How to link an external jar file in two java projects

ok guys, I'm trying to import the jfugue android port library into a libdx project, but I don't know how to add the jar files from the core project to the android one, since they don't appear as jar in the add jar option in the android build path…
Cristian Ceron
  • 695
  • 1
  • 8
  • 12
0
votes
1 answer

Jfugue 5 on Mac

Anyone know how to get JFugue to work on MacOS X 10.10 / JDK 8, talking to a default synthesiser? Even trivial examples which work fine on Windows give results like this, indicating a failure to find a default synth: Exception in thread "main"…
Ralph
  • 1
  • 1
0
votes
1 answer

JFugue 5 external midi device

Been trying for a long time to send a sequence to a midi device with jFugue 5: MusicReceiver device = getDeviceByName("name"); Player player = new Player(); Pattern pattern = new Pattern("A"); …
Yan
  • 582
  • 2
  • 6
  • 22
0
votes
0 answers

Hearing clickings at the beginning and after jfugue pattern

Making the first steps with jfugue... Pretty easy! But at the beginning and after the pattern I hear small clicks(pops). It is very important to me avoid them. Working on Windows with Eclipse import org.jfugue.*; public class PlayFreq { …
Jarilo
  • 1
0
votes
1 answer

How to play parallel melody Pattern's in jFugue?

I'm learning JFugue but I couldn't find in the documentation how can I play two or more melody lines at the same time, you know, like in a band when the line bass plays in parallel with the drums, guitars and keyboards. Thanks in advance
Nisanio
  • 4,056
  • 5
  • 34
  • 46
0
votes
1 answer

jFugue + Gervill: using different soundbanks the sounds doesn't change

I'm trying to use jFugue + gervill to create music with Java 7. I've the following code Soundbank soundbank = MidiSystem.getSoundbank(new File("/home/morelli/tmp/SoundBanks/JR_elepiano.sf2")); Synthesizer synt = MidiSystem.getSynthesizer(); …
Enrico Morelli
  • 185
  • 3
  • 16
0
votes
1 answer

JFugue not changing tempo in the middle of a song with 2 voices

I am using jFugue 4.03 and attempting to read in a song using the MusicXML reader class. Something odd is happening upon read in - the tempos are not being acknowledged. Here is a code snippet that I am trying, just to mock up what the "music…
KevinL
  • 1,238
  • 11
  • 28
0
votes
1 answer

JButton stops working after several clicks with nothing else changed

I am trying to create a piano program where you click the key and using an actionlistener is plays the note from the jfugue library. For some reason after about 18 clicks without changing anything the buttons stop working. I cut down the code to…
0
votes
1 answer

Get Pixels from BufferedImage while Manipulating Height Value

I am currently writing a program to convert a BufferedImage to music. When I get the width and height of the BufferedImage, the values are correct. However, inside the FOR loop I am using to get the pixels, I am manipulating one of the FOR loop…
user1950613
0
votes
1 answer

Pausing Music in JFugue

I am working on a program that plays music in the background via multithreading, because the GUI freezes up otherwise. I have a basic knowledge of multithreading (volatile, synchronizing, etc.) but I was wondering how to immediately stop/pause a…
EpicDavi
  • 6,732
  • 3
  • 19
  • 20