📄 tuneplayer.html
字号:
</DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public void <B>stop</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Stops a currently playing sequence. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#11578">QuickTime::TuneStop</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setVolume(float)"><!-- --></A><H3>setVolume</H3><PRE>public void <B>setVolume</B>(float volume) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the volume for the entire sequence. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#15466">QuickTime::TuneSetVolume</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>volume</CODE> - the new volume</DL></DD></DL><HR><A NAME="getVolume()"><!-- --></A><H3>getVolume</H3><PRE>public float <B>getVolume</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the volume of the sequence. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#40809">QuickTime::TuneGetVolume</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current volume</DL></DD></DL><HR><A NAME="preroll()"><!-- --></A><H3>preroll</H3><PRE>public void <B>preroll</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Prepares the tune player by attempting to reserve note channels for each part in the sequence. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#36706">QuickTime::TunePreroll</a> </b><BR><BR></DL></DD></DL><HR><A NAME="unroll()"><!-- --></A><H3>unroll</H3><PRE>public void <B>unroll</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Releases any note channels that may have been allocated by previous calls to preroll. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#31050">QuickTime::TuneUnroll</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setNoteChannels(quicktime.std.music.NoteChannel[])"><!-- --></A><H3>setNoteChannels</H3><PRE>public void <B>setNoteChannels</B>(<A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A>[] noteChannelList) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Prepares the tune player to accept music event sequences by allocating specified note channels for them. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#38459">QuickTime::TuneSetNoteChannels</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>noteChannelList</CODE> - the note channels to be set for the tune player</DL></DD></DL><HR><A NAME="setPartTranspose(int, float, int)"><!-- --></A><H3>setPartTranspose</H3><PRE>public void <B>setPartTranspose</B>(int part, float transpose, int velocityShift) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Modifies the pitch and velocity of every note of the specified part of a tune. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#39666">QuickTime::TuneSetPartTranspose</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part number for which you want the pitch and velocity changed<DD><CODE>transpose</CODE> - the value by which to modify the pitch of the note - can specify fractional tuning<DD><CODE>velocityShift</CODE> - a value to add to the velocity of each note played</DL></DD></DL><HR><A NAME="getNoteAllocator()"><!-- --></A><H3>getNoteAllocator</H3><PRE>public <A HREF="../../../quicktime/std/music/NoteAllocator.html">NoteAllocator</A> <B>getNoteAllocator</B>()</PRE><DL><DD>Returns the NoteAllocator that the tune player is using. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#41487">QuickTime::TuneGetNoteAllocator</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the note allocator</DL></DD></DL><HR><A NAME="setSofter(boolean)"><!-- --></A><H3>setSofter</H3><PRE>public void <B>setSofter</B>(boolean softer) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Adjusts the volume to play at a generally softer value that was the normal value for QT 2_1, otherwise sets the volume to a normal level. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#19022">QuickTime::TuneSetSofter</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>softer</CODE> - if true it sets the overall volume to a softer level, if false sets it to normal</DL></DD></DL><HR><A NAME="task()"><!-- --></A><H3>task</H3><PRE>public void <B>task</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Call this method periodically to allow the tune player to perform tasks it must perform at foreground task time. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#12852">QuickTime::TuneTask</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setBalance(int)"><!-- --></A><H3>setBalance</H3><PRE>public void <B>setBalance</B>(int balance) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Modifies the pan controller setting for a tune player. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#10980">QuickTime::TuneSetBalance</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>balance</CODE> - the new balance setting: range is -128 (left) to 127 (right)</DL></DD></DL><HR><A NAME="setSoundLocalization(quicktime.std.music.SoundLocalization)"><!-- --></A><H3>setSoundLocalization</H3><PRE>public void <B>setSoundLocalization</B>(<A HREF="../../../quicktime/std/music/SoundLocalization.html">SoundLocalization</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Passes sound localisation data to the tune player. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#23859">QuickTime::TuneSetSoundLocalization</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the sound localisation data</DL></DD></DL><HR><A NAME="setHeaderWithSize(quicktime.std.music.MusicData, int)"><!-- --></A><H3>setHeaderWithSize</H3><PRE>public void <B>setHeaderWithSize</B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> header, int size) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Prepares the tune player to accept subsequence music events by defining one or more parts to be used. You specify the end of the header with the size parameter so that the parsing will not overflow if there is no end marker. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#35921">QuickTime::TuneSetHeaderWithSize</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - a list of general events<DD><CODE>size</CODE> - the size of the header in bytes</DL></DD></DL><HR><A NAME="setPartMix(int, float, float, int)"><!-- --></A><H3>setPartMix</H3><PRE>public void <B>setPartMix</B>(int partNumber, float volume, float balance, int mixFlags) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Alters the volume and the balance of the specified part, with the flags specifying special conditions. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#47184">QuickTime::TuneSetPartMix</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>partNumber</CODE> - the part to effect<DD><CODE>volume</CODE> - the new volume of the specified part<DD><CODE>balance</CODE> - the new balance of the specified part<DD><CODE>mixFlags</CODE> - the mix flags that will apply to that part - mute or solo part.</DL></DD></DL><HR><A NAME="getPartMix(int)"><!-- --></A><H3>getPartMix</H3><PRE>public <A HREF="../../../quicktime/std/music/MixStateInfo.html">MixStateInfo</A> <B>getPartMix</B>(int partNumber) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current state of a part in a mix, its volume, balance, and mute/solo state. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#21238">QuickTime::TuneGetPartMix</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>partNumber</CODE> - the part number you require information about<DT><B>Returns:</B><DD>the mix state of a part</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/TunePlayer.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/ToneDescription.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/std/music/TuneStatus.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="TunePlayer.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 + -