Here is a code excerpt that creates a ParallelCollection, a MusicShape, and a MusicJob. The MusicShape and the MusicJob are added as children of the ParallelCollection
ParallelCollection col = new ParallelCollection(); col.setRepeats(3); MusicJob mj = new MusicJob(); mj.setRepeatPause(2.0); mj.setRepeats(4); MusicShape sh = new MusicShape(3); sh.add(1.0, 66, 120); sh.add(1.0, 67, 120); sh.add(1.0, 68, 120); sh.add(1.0, 69, 120); sh.setRepeats(2); col.add(mj); col.add(sh); col.launch(JMSL.now());Next we will see a live application of these ideas, in an interactive instrument called HellCafe.