}
/**
- * Returns a pointer to the current sequence.
+ * Returns the current sequence.
* @return the current sequence
*/
public static Sequence getSequence() {
}
/**
- * Returns a pointer to the MidiChannels of the selected synthesizer.
+ * Returns the current sequencer.
+ * @return the current sequencer
+ */
+ public static Sequencer getSequencer() {
+ return sequencer;
+ }
+
+ /**
+ * Returns the MidiChannels of the selected synthesizer.
* @return the available MidiChannels
*/
public static MidiChannel[] getChannels() {
}
/**
- * Returns a pointer to the currently active MidiChannel.
+ * Returns the currently active MidiChannel.
* @return the active MidiChannel
*/
public static MidiChannel getActiveChannel() {
* @param measures the number of measures to rewind
*/
public static void rewind(long ticks) {
- position -= ticks;
+ setPosition(position - ticks);
}
/**
* @param measures the number of measures to fast forward
*/
public static void forward(long ticks) {
- position += ticks;
+ setPosition(position + ticks);
}
/**