⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sequencer.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="getMasterSyncModes()"><!-- --></A><H3>getMasterSyncModes</H3><PRE>public <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html">Sequencer.SyncMode</A>[] <B>getMasterSyncModes</B>()</PRE><DL><DD>Obtains the set of master synchronization modes supported by this  sequencer.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the available master synchronization modes<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#INTERNAL_CLOCK"><CODE>Sequencer.SyncMode.INTERNAL_CLOCK</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_SYNC"><CODE>Sequencer.SyncMode.MIDI_SYNC</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_TIME_CODE"><CODE>Sequencer.SyncMode.MIDI_TIME_CODE</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.html#getMasterSyncMode()"><CODE>getMasterSyncMode()</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.html#setMasterSyncMode(javax.sound.midi.Sequencer.SyncMode)"><CODE>setMasterSyncMode(Sequencer.SyncMode)</CODE></A></DL></DD></DL><HR><A NAME="setSlaveSyncMode(javax.sound.midi.Sequencer.SyncMode)"><!-- --></A><H3>setSlaveSyncMode</H3><PRE>public void <B>setSlaveSyncMode</B>(<A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html">Sequencer.SyncMode</A>&nbsp;sync)</PRE><DL><DD>Sets the slave synchronization mode for the sequencer. This indicates the type of timing information sent by the sequencer to its receiver.  The <code>sync</code> argument must be one of the supported modes, as returned by  <code><A HREF="../../../javax/sound/midi/Sequencer.html#getSlaveSyncModes()"><CODE>getSlaveSyncModes()</CODE></A></code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sync</CODE> - the desired slave synchronization mode<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_SYNC"><CODE>Sequencer.SyncMode.MIDI_SYNC</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_TIME_CODE"><CODE>Sequencer.SyncMode.MIDI_TIME_CODE</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#NO_SYNC"><CODE>Sequencer.SyncMode.NO_SYNC</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.html#getSlaveSyncModes()"><CODE>getSlaveSyncModes()</CODE></A></DL></DD></DL><HR><A NAME="getSlaveSyncMode()"><!-- --></A><H3>getSlaveSyncMode</H3><PRE>public <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html">Sequencer.SyncMode</A> <B>getSlaveSyncMode</B>()</PRE><DL><DD>Obtains the current slave synchronization mode for this sequencer.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current slave synchronization mode<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#setSlaveSyncMode(javax.sound.midi.Sequencer.SyncMode)"><CODE>setSlaveSyncMode(Sequencer.SyncMode)</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.html#getSlaveSyncModes()"><CODE>getSlaveSyncModes()</CODE></A></DL></DD></DL><HR><A NAME="getSlaveSyncModes()"><!-- --></A><H3>getSlaveSyncModes</H3><PRE>public <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html">Sequencer.SyncMode</A>[] <B>getSlaveSyncModes</B>()</PRE><DL><DD>Obtains the set of slave synchronization modes supported by the sequencer.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the available slave synchronization modes<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_SYNC"><CODE>Sequencer.SyncMode.MIDI_SYNC</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#MIDI_TIME_CODE"><CODE>Sequencer.SyncMode.MIDI_TIME_CODE</CODE></A>, <A HREF="../../../javax/sound/midi/Sequencer.SyncMode.html#NO_SYNC"><CODE>Sequencer.SyncMode.NO_SYNC</CODE></A></DL></DD></DL><HR><A NAME="setTrackMute(int, boolean)"><!-- --></A><H3>setTrackMute</H3><PRE>public void <B>setTrackMute</B>(int&nbsp;track,                         boolean&nbsp;mute)</PRE><DL><DD>Sets the mute state for a track.  This method may fail for a number of reasons.  For example, the track number specified may not be valid for the current sequence, or the sequencer may not support this functionality. An application which needs to verify whether this operation succeeded should follow this call with a call to <code><A HREF="../../../javax/sound/midi/Sequencer.html#getTrackMute(int)"><CODE>getTrackMute(int)</CODE></A></code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>track</CODE> - the track number.  Tracks in the current sequence are numbered from 0 to the number of tracks in the sequence minus 1.<DD><CODE>mute</CODE> - the new mute state for the track.  <code>true</code> implies the  track should be muted, <code>false</code> implies the track should be unmuted.<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#getSequence()"><CODE>getSequence()</CODE></A></DL></DD></DL><HR><A NAME="getTrackMute(int)"><!-- --></A><H3>getTrackMute</H3><PRE>public boolean <B>getTrackMute</B>(int&nbsp;track)</PRE><DL><DD>Obtains the current mute state for a track.  The default mute  state for all tracks which have not been muted is false.  In any case where the specified track has not been muted, this method should  return false.  This applies if the sequencer does not support muting  of tracks, and if the specified track index is not valid.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>track</CODE> - the track number.  Tracks in the current sequence are numbered from 0 to the number of tracks in the sequence minus 1.<DT><B>Returns:</B><DD><code>true</code> if muted, <code>false</code> if not.</DL></DD></DL><HR><A NAME="setTrackSolo(int, boolean)"><!-- --></A><H3>setTrackSolo</H3><PRE>public void <B>setTrackSolo</B>(int&nbsp;track,                         boolean&nbsp;solo)</PRE><DL><DD>Sets the solo state for a track.  If <code>solo</code> is <code>true</code>  only this track and other solo'd tracks will sound. If <code>solo</code> is <code>false</code> then only other solo'd tracks will sound, unless no  tracks are solo'd in which case all un-muted tracks will sound. <p> This method may fail for a number of reasons.  For example, the track number specified may not be valid for the current sequence, or the sequencer may not support this functionality. An application which needs to verify whether this operation succeeded should follow this call with a call to <code><A HREF="../../../javax/sound/midi/Sequencer.html#getTrackSolo(int)"><CODE>getTrackSolo(int)</CODE></A></code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>track</CODE> - the track number.  Tracks in the current sequence are numbered from 0 to the number of tracks in the sequence minus 1.<DD><CODE>solo</CODE> - the new solo state for the track.  <code>true</code> implies the  track should be solo'd, <code>false</code> implies the track should not be solo'd.<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#getSequence()"><CODE>getSequence()</CODE></A></DL></DD></DL><HR><A NAME="getTrackSolo(int)"><!-- --></A><H3>getTrackSolo</H3><PRE>public boolean <B>getTrackSolo</B>(int&nbsp;track)</PRE><DL><DD>Obtains the current solo state for a track.  The default mute  state for all tracks which have not been solo'd is false.  In any case where the specified track has not been solo'd, this method should  return false.  This applies if the sequencer does not support soloing  of tracks, and if the specified track index is not valid.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>track</CODE> - the track number.  Tracks in the current sequence are numbered from 0 to the number of tracks in the sequence minus 1.<DT><B>Returns:</B><DD><code>true</code> if solo'd, <code>false</code> if not.</DL></DD></DL><HR><A NAME="addMetaEventListener(javax.sound.midi.MetaEventListener)"><!-- --></A><H3>addMetaEventListener</H3><PRE>public boolean <B>addMetaEventListener</B>(<A HREF="../../../javax/sound/midi/MetaEventListener.html">MetaEventListener</A>&nbsp;listener)</PRE><DL><DD>Registers a meta-event listener to receive notification whenever a meta-event is encountered in the sequence and processed by the sequencer. This method can fail if, for  instance,this class of sequencer does not support meta-event  notification.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - listener to add<DT><B>Returns:</B><DD><code>true</code> if the listener was successfully added,  otherwise <code>false</code><DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#removeMetaEventListener(javax.sound.midi.MetaEventListener)"><CODE>removeMetaEventListener(javax.sound.midi.MetaEventListener)</CODE></A>, <A HREF="../../../javax/sound/midi/MetaEventListener.html"><CODE>MetaEventListener</CODE></A>, <A HREF="../../../javax/sound/midi/MetaMessage.html"><CODE>MetaMessage</CODE></A></DL></DD></DL><HR><A NAME="removeMetaEventListener(javax.sound.midi.MetaEventListener)"><!-- --></A><H3>removeMetaEventListener</H3><PRE>public void <B>removeMetaEventListener</B>(<A HREF="../../../javax/sound/midi/MetaEventListener.html">MetaEventListener</A>&nbsp;listener)</PRE><DL><DD>Removes the specified meta-event listener from this sequencer's list of registered listeners, if in fact the listener is registered.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the meta-event listener to remove<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#addMetaEventListener(javax.sound.midi.MetaEventListener)"><CODE>addMetaEventListener(javax.sound.midi.MetaEventListener)</CODE></A></DL></DD></DL><HR><A NAME="addControllerEventListener(javax.sound.midi.ControllerEventListener, int[])"><!-- --></A><H3>addControllerEventListener</H3><PRE>public int[] <B>addControllerEventListener</B>(<A HREF="../../../javax/sound/midi/ControllerEventListener.html">ControllerEventListener</A>&nbsp;listener,                                        int[]&nbsp;controllers)</PRE><DL><DD>Registers a controller event listener to receive notification  whenever the sequencer processes a control-change event of the  requested type or types.  The types are specified by the <code>controllers</code> argument, which should contain an array of  MIDI controller numbers.  (Each number should be between 0 and 127, inclusive.  See the MIDI 1.0 Specification for the numbers that correspond to various types of controllers.) <p> The returned array contains the MIDI controller numbers for which the listener will now receive events. Some sequencers might not support controller event notification, in which case the array has a length of 0.  Other sequencers might  support notification for some controllers but not all.  This method may be invoked repeatedly.  Each time, the returned array indicates all the controllers that the listener will be notified about, not only the controllers requested in that particular invocation.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the controller event listener to add to the list of registered listeners<DD><CODE>controllers</CODE> - the MIDI controller numbers for which change  notification is requested<DT><B>Returns:</B><DD>the numbers of all the MIDI controllers whose changes will now be reported to the specified listener<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#removeControllerEventListener(javax.sound.midi.ControllerEventListener, int[])"><CODE>removeControllerEventListener(javax.sound.midi.ControllerEventListener, int[])</CODE></A>, <A HREF="../../../javax/sound/midi/ControllerEventListener.html"><CODE>ControllerEventListener</CODE></A></DL></DD></DL><HR><A NAME="removeControllerEventListener(javax.sound.midi.ControllerEventListener, int[])"><!-- --></A><H3>removeControllerEventListener</H3><PRE>public int[] <B>removeControllerEventListener</B>(<A HREF="../../../javax/sound/midi/ControllerEventListener.html">ControllerEventListener</A>&nbsp;listener,                                           int[]&nbsp;controllers)</PRE><DL><DD>Removes a controller event listener's interest in one or more  types of controller event. The <code>controllers</code> argument is an array of MIDI numbers corresponding to the  controllers for  which the listener should no longer receive change notifications.  To completely remove this listener from the list of registered listeners, pass in <code>null</code> for <code>controllers</code>.  The returned array contains the MIDI controller numbers for which the listener will now receive events.  The array has a length of 0 if the listener will not receive change notifications for any controllers.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - old listener<DD><CODE>controllers</CODE> - the MIDI controller numbers for which change  notification should be cancelled, or <code>null</code> to cancel  for all controllers<DT><B>Returns:</B><DD>the numbers of all the MIDI controllers whose changes will now be reported to the specified listener<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/midi/Sequencer.html#addControllerEventListener(javax.sound.midi.ControllerEventListener, int[])"><CODE>addControllerEventListener(javax.sound.midi.ControllerEventListener, int[])</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Sequencer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/sound/midi/Receiver.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/sound/midi/Soundbank.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Sequencer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -