1

i love jFugue, but i can't control the volume of a pattern. This 2 patterns, in my laptop, play at the same volume(on the paper the second should be twice louder than the first):

        Pattern pattern1 = new Pattern("X[Volume]=8000 C D E");
        new Player().play(pattern1);

        Pattern pattern2 = new Pattern("X[Volume]=16000 C D E");
        new Player().play(pattern2);

I'm using jFugue 5.0.9.

BabaNew
  • 884
  • 1
  • 13
  • 27

1 Answers1

2

In JFugue 5, the MIDI commands are now invoked through the Function system. To control the coarse volume, try this:

Pattern pattern1 = new Pattern(":CON(7, 40) C D E");
new Player().play(pattern1);
Pattern pattern2 = new Pattern(":CON(7, 127) C D E");
new Player().play(pattern2);

You may refer to Differences in JFugue 5.0 for more information.

jjcipher
  • 147
  • 1
  • 2
  • 7