<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import jm.JMC;
import jm.music.data.*;
import jm.util.View;
import jm.util.Play;
&nbsp;
/**
* This class creates a collage of similar parts, each
* of which may overlap and be rhythmically juxtaposed.
* The phrase repetition is in a minimalist style.
* The creation of parts is handled by the NPart class.
*/
&nbsp;
public class Journey implements JMC {
    private Score score = new Score();

    public static void main(String[] args) {
        new Journey();
    }
    
    public Journey() {
	for(int i=0; i&lt;8;i++) {
	    new NPart(newPart());
	}
	View.print(score);
	Play.midi(score);
    }
    
    private Part newPart() {
	Part p = new Part();
	p.setChannel(score.size());
	score.addPart(p);
	return p;
    }
}

</pre></body></html>