📄 notechannel.html
字号:
Modifies the pan controller setting for the note channel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setController(int, float)">setController</A></B>(int controllerNumber, float controllerValue)</CODE><BR> Changes the specified controller to the specified value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setControllerRaw(int, int)">setControllerRaw</A></B>(int controllerNumber, int controllerValue)</CODE><BR> Changes the specified controller to the specified value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setInstrumentNumber(int)">setInstrumentNumber</A></B>(int instrumentNumber)</CODE><BR> Change the instrument setting to the specified instrument number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setKnob(int, int)">setKnob</A></B>(int knobNumber, int knobValue)</CODE><BR> Sets the value of a knob for the note channel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setSoundLocalization(quicktime.std.music.SoundLocalization)">setSoundLocalization</A></B>(<A HREF="../../../quicktime/std/music/SoundLocalization.html">SoundLocalization</A> slData)</CODE><BR> Passes sound localization data to a note channel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#setVolume(float)">setVolume</A></B>(float volume)</CODE><BR> Sets the volume on the note channel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/NoteChannel.html#unroll()">unroll</A></B>()</CODE><BR> Marks a note channel as available to be stolen.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A>, <A HREF="../../../quicktime/QTObject.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="kMicrotonalResolution"><!-- --></A><H3>kMicrotonalResolution</H3><PRE>public static final float <B>kMicrotonalResolution</B></PRE><DL><DD>The smallest microtone is a semitone / 128. This constant expresses that value (1/128).</DL><HR><A NAME="kMicroControllerResolution"><!-- --></A><H3>kMicroControllerResolution</H3><PRE>public static final float <B>kMicroControllerResolution</B></PRE><DL><DD>The smallest step that will effect a change in controller resolution</DL><!-- ========= 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="NoteChannel(int, int)"><!-- --></A><H3>NoteChannel</H3><PRE>public <B>NoteChannel</B>(int gmNumber, int poly) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a new NoteChannel object with the request instrument and polyphony. This constructor will use the system created NoteAllocator, which can be retrieved if required, through the NoteChannel.getNoteAllocator() method once the NoteChannel is created. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#32754">QuickTime::NANewNoteChannel</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>na</CODE> - the NoteAllocator component instance to use<DD><CODE>nr</CODE> - attributes of note request</DL></DD></DL><HR><A NAME="NoteChannel(quicktime.std.music.NoteRequest)"><!-- --></A><H3>NoteChannel</H3><PRE>public <B>NoteChannel</B>(<A HREF="../../../quicktime/std/music/NoteRequest.html">NoteRequest</A> nr) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a new NoteChannel object using the default NoteAllocator <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#32754">QuickTime::NANewNoteChannel</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>na</CODE> - the NoteAllocator component instance to use<DD><CODE>nr</CODE> - attributes of note request</DL></DD></DL><HR><A NAME="NoteChannel(quicktime.std.music.NoteAllocator, quicktime.std.music.NoteRequest)"><!-- --></A><H3>NoteChannel</H3><PRE>public <B>NoteChannel</B>(<A HREF="../../../quicktime/std/music/NoteAllocator.html">NoteAllocator</A> na, <A HREF="../../../quicktime/std/music/NoteRequest.html">NoteRequest</A> nr) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a new NoteChannel object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#32754">QuickTime::NANewNoteChannel</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>na</CODE> - the NoteAllocator component instance to use<DD><CODE>nr</CODE> - attributes of note request</DL></DD></DL><HR><A NAME="NoteChannel(quicktime.std.music.NoteAllocator, int)"><!-- --></A><H3>NoteChannel</H3><PRE>public <B>NoteChannel</B>(<A HREF="../../../quicktime/std/music/NoteAllocator.html">NoteAllocator</A> na, int gmNumber) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a new NoteChannel object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#32754">QuickTime::NANewNoteChannel</a> </b><BR><BR> <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.38.htm#33072">QuickTime::NAStuffToneDescription</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>na</CODE> - the NoteAllocator component instance to use<DD><CODE>gmNumber</CODE> - the general MIDI number for the desired instrument</DL></DD></DL><!-- ============ 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="getNoteAllocator()"><!-- --></A><H3>getNoteAllocator</H3><PRE>public final <A HREF="../../../quicktime/std/music/NoteAllocator.html">NoteAllocator</A> <B>getNoteAllocator</B>()</PRE><DL><DD>Returns the NoteAllocator that owns this NoteChannel<DD><DL></DL></DD></DL><HR><A NAME="getIndexInfo()"><!-- --></A><H3>getIndexInfo</H3><PRE>public final int <B>getIndexInfo</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the index of the NoteAllocator of the MusicComponent that is used by this NoteChannel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#41660">QuickTime::NAGetNoteChannelInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>index</DL></DD></DL><HR><A NAME="getPartInfo()"><!-- --></A><H3>getPartInfo</H3><PRE>public final int <B>getPartInfo</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the part number within the NoteChannel's MusicComponent that corresponds to this channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#41660">QuickTime::NAGetNoteChannelInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>part number</DL></DD></DL><HR><A NAME="getMusicComponent()"><!-- --></A><H3>getMusicComponent</H3><PRE>public <A HREF="../../../quicktime/std/music/MusicComponent.html">MusicComponent</A> <B>getMusicComponent</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the Music component in use by the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#41660">QuickTime::NAGetNoteChannelInfo</a> </b><BR><BR> <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>index</DL></DD></DL><HR><A NAME="preroll()"><!-- --></A><H3>preroll</H3><PRE>public final void <B>preroll</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Will attempt to re-allocate the note channel if it was invalid previously. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#11463">QuickTime::NAPrerollNoteChannel</a> </b><BR><BR></DL></DD></DL><HR><A NAME="unroll()"><!-- --></A><H3>unroll</H3><PRE>public final void <B>unroll</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Marks a note channel as available to be stolen. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#17361">QuickTime::NAUnrollNoteChannel</a> </b><BR><BR></DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public final void <B>reset</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Turns off all currently sounding notes, and resets all controllers to their default values. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#14445">QuickTime::NAResetNoteChannel</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setVolume(float)"><!-- --></A><H3>setVolume</H3><PRE>public final void <B>setVolume</B>(float volume) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the volume on the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#24176">QuickTime::NASetNoteChannelVolume</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>volume</CODE> - volume value</DL></DD></DL><HR><A NAME="setBalance(int)"><!-- --></A><H3>setBalance</H3><PRE>public final void <B>setBalance</B>(int balance) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -