📄 musiccomponent.html
字号:
</TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="MusicComponent()"><!-- --></A><H3>MusicComponent</H3><PRE>public <B>MusicComponent</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B> <I>should use NoteAllocator calls to get a MusicComponent Instance</I><P><DD>Opens the MusicComponent component. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refComponentMgr.8.htm#28411">QuickTime::OpenADefaultComponent</a> </b><BR><BR><HR><A NAME="MusicComponent(int)"><!-- --></A><H3>MusicComponent</H3><PRE>public <B>MusicComponent</B>(int subType) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Deprecated.</B> <I>should use NoteAllocator calls to get a MusicComponent Instance</I><P><DD>Opens the MusicComponent component with a specified subType. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refComponentMgr.8.htm#28411">QuickTime::OpenADefaultComponent</a> </b><BR><BR><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public <A HREF="../../../quicktime/std/music/SynthesizerDescription.html">SynthesizerDescription</A> <B>getDescription</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a structure describing the synthesizer controlled by the music component device.</DL></DD><DD><DL><DT><B>Returns:</B><DD>a SynthesizerDescription</DL></DD></DL><HR><A NAME="getPartAtomicInstrument(int, int)"><!-- --></A><H3>getPartAtomicInstrument</H3><PRE>public <A HREF="../../../quicktime/std/music/AtomicInstrument.html">AtomicInstrument</A> <B>getPartAtomicInstrument</B>(int part, int flags) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the AtomicInstrument that is set for that part. If not set, this method can return null.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part<DD><CODE>flags</CODE> - Specify what pieces of information about an atomic instrument the caller is interested in.<DT><B>Returns:</B><DD>the AtomicInstrument</DL></DD></DL><HR><A NAME="getKnob(int)"><!-- --></A><H3>getKnob</H3><PRE>public int <B>getKnob</B>(int knobID) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the value of the specified global synthesizer knob. A global knob controls an aspect of the entire synthesizer. It is not specific to a part within the synthesizer. </DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobID</CODE> - the knob id<DT><B>Returns:</B><DD>the knob value</DL></DD></DL><HR><A NAME="setKnob(int, int)"><!-- --></A><H3>setKnob</H3><PRE>public void <B>setKnob</B>(int knobID, int knobValue) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the value of a global knob for a synthesiser. </DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobID</CODE> - the knob id<DD><CODE>knobValue</CODE> - the knob value</DL></DD></DL><HR><A NAME="getPartName(int)"><!-- --></A><H3>getPartName</H3><PRE>public java.lang.String <B>getPartName</B>(int part) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a part's name.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part<DT><B>Returns:</B><DD>the name</DL></DD></DL><HR><A NAME="setPartName(int, java.lang.String)"><!-- --></A><H3>setPartName</H3><PRE>public void <B>setPartName</B>(int part, java.lang.String name) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets a part's name.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part<DD><CODE>name</CODE> - the name</DL></DD></DL><HR><A NAME="setMasterTune(float)"><!-- --></A><H3>setMasterTune</H3><PRE>public void <B>setMasterTune</B>(float masterTune) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets a value in semitones, which is the synthesizer誷 master tuning.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>masterTune</CODE> - the new tuning</DL></DD></DL><HR><A NAME="getMasterTune()"><!-- --></A><H3>getMasterTune</H3><PRE>public float <B>getMasterTune</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a value in semitones, which is the synthesizer誷 master tuning.</DL></DD><DD><DL><DT><B>Returns:</B><DD>tuning</DL></DD></DL><HR><A NAME="getInstrumentKnobDescrption(int)"><!-- --></A><H3>getInstrumentKnobDescrption</H3><PRE>public <A HREF="../../../quicktime/std/music/KnobDescription.html">KnobDescription</A> <B>getInstrumentKnobDescrption</B>(int knobIndex) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a Instrument knob description for the specified knob index or knob ID for the MusicComponent.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobIndex</CODE> - the knob index to get<DT><B>Returns:</B><DD>a KnobDescription</DL></DD></DL><HR><A NAME="getDrumKnobDescrption(int)"><!-- --></A><H3>getDrumKnobDescrption</H3><PRE>public <A HREF="../../../quicktime/std/music/KnobDescription.html">KnobDescription</A> <B>getDrumKnobDescrption</B>(int knobIndex) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a Drum knob description for the specified knob index or knob ID for the MusicComponent.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobIndex</CODE> - the knob index to get<DT><B>Returns:</B><DD>a KnobDescription</DL></DD></DL><HR><A NAME="getKnobDescrption(int)"><!-- --></A><H3>getKnobDescrption</H3><PRE>public <A HREF="../../../quicktime/std/music/KnobDescription.html">KnobDescription</A> <B>getKnobDescrption</B>(int knobIndex) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns a knob description for the specified global knob index or knob ID for the MusicComponent.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobIndex</CODE> - the knob index to get<DT><B>Returns:</B><DD>a KnobDescription</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MusicComponent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/std/music/MixStateInfo.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/std/music/MusicComponentInfo.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> <A HREF="MusicComponent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -