Pregunta

I'm trying to control the volume of a pattern. From the documentation I found this:

X[Volume]=10200;

which they mentioned controls the volume. I'm not sure how to use this. Should I declare something to use this? From what I understand this is a 'Controller' functionality. Below is my code.

import org.jfugue.*;

public class masterVolume {
    public static void main(String[] args)
    {
        Controller controller = new Controller();
        Player player = new Player();
        Pattern pattern = new Pattern("C D E F G A B");
        player.play(pattern);

        X[Volume]=10200; //error    
    }
}
¿Fue útil?

Solución

I think you should pass it to the MIDI controller like so:

    Pattern pattern = new Pattern(" X[Volume]=10200 C D E F G A B");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top