📄 notechannel.html
字号:
<DD>Modifies the pan controller setting for the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#28766">QuickTime::NASetNoteChannelBalance</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>balance</CODE> - pan value (-128 left, to 128 right)</DL></DD></DL><HR><A NAME="playNoteRaw(int, int)"><!-- --></A><H3>playNoteRaw</H3><PRE>public final void <B>playNoteRaw</B>(int pitch, int velocity) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Plays a musical note with given pitch and velocity. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#30620">QuickTime::NAPlayNote</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pitch</CODE> - MIDI pitch values (0 to 127, 60 is middle C)<DD><CODE>velocity</CODE> - velocity of note, where 0 = silence - note off.</DL></DD></DL><HR><A NAME="playNoteCents(int, int, int)"><!-- --></A><H3>playNoteCents</H3><PRE>public final void <B>playNoteCents</B>(int noteNumber, int cents, int velocity) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Plays a musical note with given pitch and velocity. The microtone resolution is 128 steps (kMicrotonalResolution) per semitone. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#30620">QuickTime::NAPlayNote</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>noteNumber</CODE> - 0 -> 127 correspond to MIDI note numbers (60 is middle C).<DD><CODE>cents</CODE> - 0 -> 100 correspond to the division of a semitone into 100 logarithmically equal segments.<DD><CODE>velocity</CODE> - velocity of note, where 0 = silence - note off.</DL></DD></DL><HR><A NAME="playNote(float, int)"><!-- --></A><H3>playNote</H3><PRE>public final void <B>playNote</B>(float pitch, int velocity) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Plays a musical note with given pitch and velocity. The microtone resolution is 128 steps (kMicrotonalResolution) per semitone. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#30620">QuickTime::NAPlayNote</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pitch</CODE> - 1.000 -> 127.999 correspond to MIDI note numbers (60 is middle C).<DD><CODE>velocity</CODE> - velocity of note, where 0 = silence - note off.</DL></DD></DL><HR><A NAME="getController(int)"><!-- --></A><H3>getController</H3><PRE>public final float <B>getController</B>(int controllerNumber) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Retrieves the current value for the specified controller The micro controller resolution is 128 steps (kMicroControllerResolution) per semitone. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#39593">QuickTime::NAGetController</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>controllerNumber</CODE> - which controller<DD><CODE>controllerValue</CODE> - the new controller value, range -128.000 to 127.999</DL></DD></DL><HR><A NAME="setControllerRaw(int, int)"><!-- --></A><H3>setControllerRaw</H3><PRE>public final void <B>setControllerRaw</B>(int controllerNumber, int controllerValue) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Changes the specified controller to the specified value. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#17061">QuickTime::NASetController</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>controllerNumber</CODE> - which controller<DD><CODE>controllerValue</CODE> - the new controller value, dealing with raw controller values, which have the full range of a short (-32768 to 32767)</DL></DD></DL><HR><A NAME="setController(int, float)"><!-- --></A><H3>setController</H3><PRE>public final void <B>setController</B>(int controllerNumber, float controllerValue) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Changes the specified controller to the specified value. The micro controller resolution is 128 steps (kMicroControllerResolution) per semitone. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#17061">QuickTime::NASetController</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>controllerNumber</CODE> - which controller<DD><CODE>controllerValue</CODE> - the new controller value, range -128.000 to 127.999</DL></DD></DL><HR><A NAME="getKnob(int)"><!-- --></A><H3>getKnob</H3><PRE>public final int <B>getKnob</B>(int knobNumber) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the value of a knob for the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#41824">QuickTime::NAGetKnob</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobNumber</CODE> - index or ID of the knob<DT><B>Returns:</B><DD>the value of the knob</DL></DD></DL><HR><A NAME="setKnob(int, int)"><!-- --></A><H3>setKnob</H3><PRE>public final void <B>setKnob</B>(int knobNumber, int knobValue) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the value of a knob for the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#12274">QuickTime::NASetKnob</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>knobNumber</CODE> - index or ID of the knob<DD><CODE>knobValue</CODE> - the value of the knob</DL></DD></DL><HR><A NAME="findTone(quicktime.std.music.ToneDescription)"><!-- --></A><H3>findTone</H3><PRE>public final int <B>findTone</B>(<A HREF="../../../quicktime/std/music/ToneDescription.html">ToneDescription</A> td) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Locate the best fitting instrument number for the given ToneDescription. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#13326">QuickTime::NAFindNoteChannelTone</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>td</CODE> - description for instrument fit<DT><B>Returns:</B><DD>the instrument index of fit</DL></DD></DL><HR><A NAME="setAtomicInstrument(quicktime.std.music.AtomicInstrument, int)"><!-- --></A><H3>setAtomicInstrument</H3><PRE>public final void <B>setAtomicInstrument</B>(<A HREF="../../../quicktime/std/music/AtomicInstrument.html">AtomicInstrument</A> instrument, int flags) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Initialises a note channel with an atomic instrument. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#23264">QuickTime::NASetAtomicInstrument</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instrument</CODE> - the AtomicInstrument to set the channel to.<DD><CODE>flags</CODE> - use the set flags from Atomic instrument.</DL></DD></DL><HR><A NAME="setInstrumentNumber(int)"><!-- --></A><H3>setInstrumentNumber</H3><PRE>public final void <B>setInstrumentNumber</B>(int instrumentNumber) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Change the instrument setting to the specified instrument number. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#20079">QuickTime::NASetInstrumentNumber</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instrumentNumber</CODE> - instrument number to apply</DL></DD></DL><HR><A NAME="getNoteRequest()"><!-- --></A><H3>getNoteRequest</H3><PRE>public final <A HREF="../../../quicktime/std/music/NoteRequest.html">NoteRequest</A> <B>getNoteRequest</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Get the NoteRequest that corresponds to this NoteChannel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.32.htm#42086">QuickTime::NAGetNoteRequest</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a new NoteRequest class with the parameters of this NoteChannel</DL></DD></DL><HR><A NAME="pickEditInstrument(java.lang.String, int)"><!-- --></A><H3>pickEditInstrument</H3><PRE>public final void <B>pickEditInstrument</B>(java.lang.String prompt, int flags) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Presents a user interface for changing the instrument used by the note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.38.htm#39972">QuickTime::NAPickEditInstrument</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>prompt</CODE> - Dialog box prompt "New Instrument..."<DD><CODE>flags</CODE> - flags to limit user options</DL></DD></DL><HR><A NAME="sendMIDI(quicktime.std.music.MusicMIDIPacket)"><!-- --></A><H3>sendMIDI</H3><PRE>public final void <B>sendMIDI</B>(<A HREF="../../../quicktime/std/music/MusicMIDIPacket.html">MusicMIDIPacket</A> mp) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Get the NoteRequest that corresponds to this NoteChannel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#21830">QuickTime::NASendMIDI</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setSoundLocalization(quicktime.std.music.SoundLocalization)"><!-- --></A><H3>setSoundLocalization</H3><PRE>public final void <B>setSoundLocalization</B>(<A HREF="../../../quicktime/std/music/SoundLocalization.html">SoundLocalization</A> slData) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Passes sound localization data to a note channel. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.37.htm#38098">QuickTime::NASetNoteChannelSoundLocalization</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>slData</CODE> - sound localization data</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/NoteChannel.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/NoteAllocator.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/std/music/NoteRequest.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="NoteChannel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -