1
package org.herac.tuxguitar.player.base;
3
import org.herac.tuxguitar.player.base.MidiPort;
4
import org.herac.tuxguitar.player.base.MidiSequenceHandler;
6
public interface MidiSequencer {
8
public String getKey();
10
public String getName();
12
public void open() throws MidiPlayerException;
14
public void close() throws MidiPlayerException;
16
public void start() throws MidiPlayerException;
18
public void stop() throws MidiPlayerException;
20
public boolean isRunning() throws MidiPlayerException;
22
public void setTickPosition(long tickPosition) throws MidiPlayerException;
24
public long getTickPosition() throws MidiPlayerException;
26
public long getTickLength() throws MidiPlayerException;
28
public void setMidiPort(MidiPort port) throws MidiPlayerException;
30
public MidiPort getMidiPort() throws MidiPlayerException;
32
public MidiSequenceHandler createSequence(int tracks) throws MidiPlayerException;
34
public void setSolo(int index,boolean solo) throws MidiPlayerException;
36
public void setMute(int index,boolean mute) throws MidiPlayerException;