- java.lang.Object
-
- javax.sound.midi.Sequencer.SyncMode
-
- Enclosing interface:
- Sequencer
public static class Sequencer.SyncMode extends Object
ASyncMode
object represents one of the ways in which a MIDI sequencer's notion of time can be synchronized with a master or slave device. If the sequencer is being synchronized to a master, the sequencer revises its current time in response to messages from the master. If the sequencer has a slave, the sequencer similarly sends messages to control the slave's timing.There are three predefined modes that specify possible masters for a sequencer:
INTERNAL_CLOCK
,MIDI_SYNC
, andMIDI_TIME_CODE
. The latter two work if the sequencer receives MIDI messages from another device. In these two modes, the sequencer's time gets reset based on system real-time timing clock messages or MIDI time code (MTC) messages, respectively. These two modes can also be used as slave modes, in which case the sequencer sends the corresponding types of MIDI messages to its receiver (whether or not the sequencer is also receiving them from a master). A fourth mode,NO_SYNC
, is used to indicate that the sequencer should not control its receiver's timing.
-
-
Field Summary
Fields Modifier and Type Field and Description static Sequencer.SyncMode
INTERNAL_CLOCK
A master synchronization mode that makes the sequencer get its timing information from its internal clock.static Sequencer.SyncMode
MIDI_SYNC
A master or slave synchronization mode that specifies the use of MIDI clock messages.static Sequencer.SyncMode
MIDI_TIME_CODE
A master or slave synchronization mode that specifies the use of MIDI Time Code.static Sequencer.SyncMode
NO_SYNC
A slave synchronization mode indicating that no timing information should be sent to the receiver.
-
Constructor Summary
Constructors Modifier Constructor and Description protected
Sequencer.SyncMode(String name)
Constructs a synchronization mode.
-
-
-
Field Detail
-
INTERNAL_CLOCK
public static final Sequencer.SyncMode INTERNAL_CLOCK
A master synchronization mode that makes the sequencer get its timing information from its internal clock. This is not a legal slave sync mode.
-
MIDI_SYNC
public static final Sequencer.SyncMode MIDI_SYNC
A master or slave synchronization mode that specifies the use of MIDI clock messages. If this mode is used as the master sync mode, the sequencer gets its timing information from system real-time MIDI clock messages. This mode only applies as the master sync mode for sequencers that are also MIDI receivers. If this is the slave sync mode, the sequencer sends system real-time MIDI clock messages to its receiver. MIDI clock messages are sent at a rate of 24 per quarter note.
-
MIDI_TIME_CODE
public static final Sequencer.SyncMode MIDI_TIME_CODE
A master or slave synchronization mode that specifies the use of MIDI Time Code. If this mode is used as the master sync mode, the sequencer gets its timing information from MIDI Time Code messages. This mode only applies as the master sync mode to sequencers that are also MIDI receivers. If this mode is used as the slave sync mode, the sequencer sends MIDI Time Code messages to its receiver. (See the MIDI 1.0 Detailed Specification for a description of MIDI Time Code.)
-
NO_SYNC
public static final Sequencer.SyncMode NO_SYNC
A slave synchronization mode indicating that no timing information should be sent to the receiver. This is not a legal master sync mode.
-
-
Constructor Detail
-
Sequencer.SyncMode
protected Sequencer.SyncMode(String name)
Constructs a synchronization mode.- Parameters:
name
- name of the synchronization mode
-
-
Method Detail
-
equals
public final boolean equals(Object obj)
Determines whether two objects are equal. Returnstrue
if the objects are identical- Overrides:
equals
in classObject
- Parameters:
obj
- the reference object with which to compare- Returns:
true
if this object is the same as theobj
argument,false
otherwise- See Also:
Object.hashCode()
,HashMap
-
hashCode
public final int hashCode()
Finalizes the hashcode method.- Overrides:
hashCode
in classObject
- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/sound/midi/sequencer.syncmode.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.