noteallocator.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 680 行 · 第 1/3 页

HTML
680
字号
</DD></DL><HR><A NAME="numMusicComponents()"><!-- --></A><H3>numMusicComponents</H3><PRE>public int <B>numMusicComponents</B>()                       throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Return the number of MusicComponents that are registered with the note allocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#25691">QuickTime::NAGetRegisteredMusicDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of music components.</DL></DD></DL><HR><A NAME="registerMusicDevice_SoundBank(quicktime.io.QTFile)"><!-- --></A><H3>registerMusicDevice_SoundBank</H3><PRE>public java.lang.String <B>registerMusicDevice_SoundBank</B>(<A HREF="../../../quicktime/io/QTFile.html">QTFile</A>&nbsp;soundBankFile)                                               throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Registers a music component with the NoteAllocator, where the MusicComponent will use the supplied SoundBank for its sample data. The call returns the Name of  the sample bank, which is used in the ToneDescription/NoteRequest as the synthesizerName field to create NoteChannels that use this component (the synthesizerType will be  StdQTConstants.kSoftSynthComponentSubType).	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#34608">QuickTime::NARegisterMusicDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>soundBankFile</CODE> - a DLS or SF2 file of sample data<DT><B>Returns:</B><DD>the name of the synthesizer to use when creating NoteChannels that use this bank</DL></DD></DL><HR><A NAME="registerMusicDevice(int, java.lang.String, quicktime.std.music.SynthesizerConnections)"><!-- --></A><H3>registerMusicDevice</H3><PRE>public void <B>registerMusicDevice</B>(int&nbsp;synthType,                                java.lang.String&nbsp;name,                                <A HREF="../../../quicktime/std/music/SynthesizerConnections.html">SynthesizerConnections</A>&nbsp;connections)                         throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Registers a music component with the NoteAllocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#34608">QuickTime::NARegisterMusicDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>synthType</CODE> - the subType of the MusicComponent of the synth<DD><CODE>name</CODE> - the synthesizer name<DD><CODE>connections</CODE> - a synthesizer connections for a MIDI device.</DL></DD></DL><HR><A NAME="unregisterMusicDevice(int)"><!-- --></A><H3>unregisterMusicDevice</H3><PRE>public void <B>unregisterMusicDevice</B>(int&nbsp;index)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Removes a previously registered music component from the NoteAllocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#25401">QuickTime::NAUnregisterMusicDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the synthesizer to unregister.</DL></DD></DL><HR><A NAME="getRegisteredMusicDevice(int)"><!-- --></A><H3>getRegisteredMusicDevice</H3><PRE>public <A HREF="../../../quicktime/std/music/MusicComponentInfo.html">MusicComponentInfo</A> <B>getRegisteredMusicDevice</B>(int&nbsp;index)                                            throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Return information about music components that are registered with the note allocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#25691">QuickTime::NAGetRegisteredMusicDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the component you are interested in.<DT><B>Returns:</B><DD>music component information</DL></DD></DL><HR><A NAME="getDefaultMIDIInput()"><!-- --></A><H3>getDefaultMIDIInput</H3><PRE>public <A HREF="../../../quicktime/std/music/SynthesizerConnections.html">SynthesizerConnections</A> <B>getDefaultMIDIInput</B>()                                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Obtain external MIDI connection information about the MIDI device that is  attached to the system and selected as the default MIDI input device.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#28158">QuickTime::NAGetDefaultMIDIInput()</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setDefaultMIDIInput(quicktime.std.music.SynthesizerConnections)"><!-- --></A><H3>setDefaultMIDIInput</H3><PRE>public void <B>setDefaultMIDIInput</B>(<A HREF="../../../quicktime/std/music/SynthesizerConnections.html">SynthesizerConnections</A>&nbsp;sc)                         throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Initializes an external MIDI device that is used to receive external MIDI information.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#35746">QuickTime::NASetDefaultMIDIInput()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sc</CODE> - connections for the external MIDI input device</DL></DD></DL><HR><A NAME="saveMusicConfiguration()"><!-- --></A><H3>saveMusicConfiguration</H3><PRE>public void <B>saveMusicConfiguration</B>()                            throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Saves the current list of registered devices to the QuickTime default file.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#19634">QuickTime::NASaveMusicConfiguration()</a> </b><BR><BR></DL></DD></DL><HR><A NAME="getMIDIInPorts()"><!-- --></A><H3>getMIDIInPorts</H3><PRE>public <A HREF="../../../quicktime/std/music/QTMIDIPortList.html">QTMIDIPortList</A> <B>getMIDIInPorts</B>()                              throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Get the MIDI input ports that are available to the NoteAllocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#37872">QuickTime::NAGetMIDIPorts()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the MIDI input ports list.</DL></DD></DL><HR><A NAME="getMIDIOutPorts()"><!-- --></A><H3>getMIDIOutPorts</H3><PRE>public <A HREF="../../../quicktime/std/music/QTMIDIPortList.html">QTMIDIPortList</A> <B>getMIDIOutPorts</B>()                               throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Get the MIDI output ports that are available to the NoteAllocator.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.39.htm#37872">QuickTime::NAGetMIDIPorts()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the MIDI output ports list.</DL></DD></DL><HR><A NAME="loseDefaultMIDIInput()"><!-- --></A><H3>loseDefaultMIDIInput</H3><PRE>public void <B>loseDefaultMIDIInput</B>()                          throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Removes the external default MIDI service procedure call, if previously defined by  the useDefaultMIDIInput call.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#12419">QuickTime::NALoseDefaultMIDIInput()</a> </b><BR><BR></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/NoteAllocator.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/std/music/MusicMIDIPacket.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/std/music/NoteChannel.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="NoteAllocator.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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