📄 notechannelcontrol.html
字号:
</DL><HR><A NAME="NoteChannelControl(int, int)"><!-- --></A><H3>NoteChannelControl</H3><PRE>public <B>NoteChannelControl</B>(int gmNumber, int poly) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a new NoteChannelControl and a NoteChannel with the specified instrument and polyphony.<DD><DL><DT><B>Parameters:</B><DD><CODE>gmNumber</CODE> - the specified general MIDI instrument number<DD><CODE>poly</CODE> - the maximum number of notes that are expected to be played by the NoteChannel at the same time.</DL></DD></DL><HR><A NAME="NoteChannelControl(quicktime.std.music.NoteChannel)"><!-- --></A><H3>NoteChannelControl</H3><PRE>public <B>NoteChannelControl</B>(<A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A> nc) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a new NoteChannelControl from the given NoteChannel<DD><DL><DT><B>Parameters:</B><DD><CODE>nc</CODE> - the given NoteChannel</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="isMuted()"><!-- --></A><H3>isMuted</H3><PRE>public boolean <B>isMuted</B>()</PRE><DL><DD>Returns the current mute status<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#isMuted()">isMuted</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current mute status</DL></DD></DL><HR><A NAME="setMuted(boolean)"><!-- --></A><H3>setMuted</H3><PRE>public void <B>setMuted</B>(boolean flag) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allows the muting of the specific channel. When unmuted the AudioSpec object will return to its current volume setting.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#setMuted(boolean)">setMuted</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - turn muting on - true or off - false.</DL></DD></DL><HR><A NAME="setVolume(float)"><!-- --></A><H3>setVolume</H3><PRE>public void <B>setVolume</B>(float volume) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method will set the volume of this object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#setVolume(float)">setVolume</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>volume</CODE> - the desired volume (range: 0.0F - 1.0F)</DL></DD></DL><HR><A NAME="getVolume()"><!-- --></A><H3>getVolume</H3><PRE>public float <B>getVolume</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method will get the volume of this object. (range: 0.0 - 1.0)<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#getVolume()">getVolume</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current volume.</DL></DD></DL><HR><A NAME="setBalance(float)"><!-- --></A><H3>setBalance</H3><PRE>public void <B>setBalance</B>(float val) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method sets the balance of this object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/ExtendedAudioSpec.html#setBalance(float)">setBalance</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/ExtendedAudioSpec.html">ExtendedAudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>val</CODE> - the desired balance (range: -1F -> 1F)</DL></DD></DL><HR><A NAME="getBalance()"><!-- --></A><H3>getBalance</H3><PRE>public float <B>getBalance</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method gets the balance of the this object. (range: -1.0 -> 1.0)<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/ExtendedAudioSpec.html#getBalance()">getBalance</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/ExtendedAudioSpec.html">ExtendedAudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the balance</DL></DD></DL><HR><A NAME="selectInstrument(java.lang.String)"><!-- --></A><H3>selectInstrument</H3><PRE>public void <B>selectInstrument</B>(java.lang.String prompt) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows for the class to allow some selection process whereby the user would choose a particular instrument that will be consequently used by a MusicPart to produce the sounds that it plays.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/MusicPart.html#selectInstrument(java.lang.String)">selectInstrument</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/MusicPart.html">MusicPart</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>prompt</CODE> - - any information that the program wants to display to the user to aid in the selection process.</DL></DD></DL><HR><A NAME="getInstrumentName()"><!-- --></A><H3>getInstrumentName</H3><PRE>public java.lang.String <B>getInstrumentName</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the name of the current instrument for this part.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/MusicPart.html#getInstrumentName()">getInstrumentName</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/MusicPart.html">MusicPart</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>name of the current instrument for this part</DL></DD></DL><HR><A NAME="getNoteChannel()"><!-- --></A><H3>getNoteChannel</H3><PRE>public final <A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A> <B>getNoteChannel</B>()</PRE><DL><DD>This method gets the NoteChannel being controlled by this object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/MusicPart.html#getNoteChannel()">getNoteChannel</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/MusicPart.html">MusicPart</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the NoteChannel</DL></DD></DL><HR><A NAME="playNoteFor(float, int, int)"><!-- --></A><H3>playNoteFor</H3><PRE>public void <B>playNoteFor</B>(float note, int velocity, int duration) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Plays the supplied note for the given duration.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>note</CODE> - the note to play<DD><CODE>velocity</CODE> - the intial volume of the note - how hard it is struck.<DD><CODE>duration</CODE> - the number of milliseconds the note should play for</DL></DD></DL><HR><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>protected final void <B>finalize</B>() throws java.lang.Throwable</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></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/NoteChannelControl.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/app/audio/MusicPartControl.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="NoteChannelControl.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 + -