Lines Matching refs:seq
75 private static boolean testSequencer(Sequencer seq) throws Exception{
77 out("testing: " + seq);
79 result &= testGetSet(seq);
81 seq.setSequence(createSequence());
83 result &= testGetSet(seq);
85 result &= testPlay(seq);
90 private static boolean testGetSet(Sequencer seq) {
92 Sequence sequence = seq.getSequence();
98 if (seq.getLoopStartPoint() != 0) {
113 if (seq.getLoopEndPoint() != -1) {
120 seq.setLoopStartPoint(25);
121 if (seq.getLoopStartPoint() != 25) {
137 seq.setLoopEndPoint(26);
138 if (seq.getLoopEndPoint() != 26) {
154 seq.setLoopStartPoint(0);
155 if (seq.getLoopStartPoint() != 0) {
171 seq.setLoopEndPoint(sequence.getTickLength());
172 if (seq.getLoopEndPoint() != sequence.getTickLength()) {
179 seq.setLoopEndPoint(-1);
180 if (seq.getLoopEndPoint() != -1) {
187 if (seq.getLoopCount() != 0) {
193 seq.setLoopCount(1001);
194 if (seq.getLoopCount() != 1001) {
200 seq.setLoopCount(Sequencer.LOOP_CONTINUOUSLY);
201 if (seq.getLoopCount() != Sequencer.LOOP_CONTINUOUSLY) {
208 seq.setLoopCount(-55);
217 seq.setLoopCount(0);
218 if (seq.getLoopCount() != 0) {
227 private static boolean testPlay(Sequencer seq) {
234 seq.addMetaEventListener(listener);
237 seq.open();
238 out("Playing sequence, length="+(seq.getMicrosecondLength()/1000)+"millis");
239 seq.start();
256 seq.close();