musicdata.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 1,179 行 · 第 1/5 页

HTML
1,179
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a stuffed big-endian order QuickTime extended music event this method will extract the knob's value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/MusicData.html#xNoteDuration(long)">xNoteDuration</A></B>(long&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a stuffed big-endian order QuickTime extended music event this method will extract the note duration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/MusicData.html#xNotePitch(long)">xNotePitch</A></B>(long&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a stuffed big-endian order QuickTime extended music event this method will extract the note pitch.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/MusicData.html#xNoteVelocity(long)">xNoteVelocity</A></B>(long&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a stuffed big-endian order QuickTime extended music event this method will extract the note velocity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/MusicData.html#xPart(long)">xPart</A></B>(long&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a stuffed big-endian order QuickTime extended music event this method will extract the part number.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.util.QTHandle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../../quicktime/util/QTHandle.html">QTHandle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/util/QTHandle.html#clone()">clone</A>, <A HREF="../../../quicktime/util/QTHandle.html#concatenate(quicktime.util.QTHandleRef)">concatenate</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromEncodedImage(quicktime.util.EncodedImage)">fromEncodedImage</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromGraphicsExporterInput(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterInput</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromGraphicsExporterOutput(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterOutput</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromGraphicsExporterText(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterText</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromGraphicsImporterAlias(quicktime.std.image.GraphicsImporter)">fromGraphicsImporterAlias</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromGraphicsImporterData(quicktime.std.image.GraphicsImporter)">fromGraphicsImporterData</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromImageDescription(quicktime.std.image.ImageDescription, int, int)">fromImageDescription</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromSoundDescription(quicktime.std.movies.media.SoundDescription, int)">fromSoundDescription</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromTimeCoderCurrent(quicktime.std.qtcomponents.TimeCoder)">fromTimeCoderCurrent</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromTimeCoderSource(quicktime.std.qtcomponents.TimeCoder, quicktime.std.qtcomponents.TimeCodeDescription)">fromTimeCoderSource</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromTimeCoderTime(quicktime.std.qtcomponents.TimeCoder, int)">fromTimeCoderTime</A>, <A HREF="../../../quicktime/util/QTHandle.html#fromTrack(quicktime.std.movies.Track)">fromTrack</A>, <A HREF="../../../quicktime/util/QTHandle.html#reserveMemory(int)">reserveMemory</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.util.QTHandleRef"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../../quicktime/util/QTHandleRef.html">QTHandleRef</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, byte[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, char[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, double[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, float[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, int[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, long[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#copyToArray(int, short[], int, int)">copyToArray</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#fromCompressionDialogState(quicktime.std.qtcomponents.CompressionDialog)">fromCompressionDialogState</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#fromSCSequence(quicktime.std.qtcomponents.SCSequence, quicktime.qd.QDGraphics, quicktime.qd.QDRect)">fromSCSequence</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#getBytes()">getBytes</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#getSize()">getSize</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#inMemory()">inMemory</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#isLocked()">isLocked</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#lock()">lock</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#lockHigh()">lockHigh</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#moveHigh()">moveHigh</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#toQTPointer()">toQTPointer</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#toQTPointer(int, int)">toQTPointer</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#toString()">toString</A>, <A HREF="../../../quicktime/util/QTHandleRef.html#unlock()">unlock</A></CODE></TD></TR></TABLE>&nbsp;<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></CODE></TD></TR></TABLE>&nbsp;<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>&nbsp;<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="kNoteRequestHeaderEventLength"><!-- --></A><H3>kNoteRequestHeaderEventLength</H3><PRE>public static final int <B>kNoteRequestHeaderEventLength</B></PRE><DL><DD>The size (numer of ints) of a kNoteRequestEvent (including its header and footer)</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="MusicData(int)"><!-- --></A><H3>MusicData</H3><PRE>public <B>MusicData</B>(int&nbsp;size)          throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Create a MusicData object of the specified number of bytes. The end of sequence marker is inserted in the last four bytes of the MusicData object.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size in bytes of the required MusicData object</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="stuffGeneralEvent_Header(int, int)"><!-- --></A><H3>stuffGeneralEvent_Header</H3><PRE>public static int <B>stuffGeneralEvent_Header</B>(int&nbsp;part,                                           int&nbsp;length)</PRE><DL><DD>Returns an int that is the stuffed representation of the header portion of a general music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the event applies to<DD><CODE>length</CODE> - the length (including the surrounding general event header and footer)  of the size of the general event. This size is in bytes.<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffGeneralEvent_Footer(int, int)"><!-- --></A><H3>stuffGeneralEvent_Footer</H3><PRE>public static int <B>stuffGeneralEvent_Footer</B>(int&nbsp;subType,                                           int&nbsp;length)</PRE><DL><DD>Returns an int that is the stuffed representation of the footer portion of a general music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the event applies to<DD><CODE>length</CODE> - the length (including the surrounding general event header and footer)  of the size of the general event. This size is in bytes.<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffRestEvent(int)"><!-- --></A><H3>stuffRestEvent</H3><PRE>public static int <B>stuffRestEvent</B>(int&nbsp;duration)</PRE><DL><DD>Returns an int that is the stuffed representation of the rest music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>duration</CODE> - the duration in the time scale of the TunePlayer or the MusicMedia<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffNoteEvent(int, int, int, int)"><!-- --></A><H3>stuffNoteEvent</H3><PRE>public static int <B>stuffNoteEvent</B>(int&nbsp;part,                                 int&nbsp;pitch,                                 int&nbsp;velocity,                                 int&nbsp;duration)</PRE><DL><DD>Returns an int that is the stuffed representation of the note music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the note is played by<DD><CODE>pitch</CODE> - the MIDI note pitch of the note - valid range is 32 - 95 (with middle C as 60)<DD><CODE>velocity</CODE> - the note-on velocity when the note is played<DD><CODE>duration</CODE> - the duration in the time scale of the TunePlayer or the MusicMedia<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffControlEvent(int, int, int)"><!-- --></A><H3>stuffControlEvent</H3><PRE>public static int <B>stuffControlEvent</B>(int&nbsp;part,                                    int&nbsp;control,                                    int&nbsp;value)</PRE><DL><DD>Returns an int that is the stuffed representation of the control music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the note is played by<DD><CODE>control</CODE> - the number of the controller<DD><CODE>value</CODE> - 8.8 bit fixed point signed controller specific value<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffMarkerEvent(int, int)"><!-- --></A><H3>stuffMarkerEvent</H3><PRE>public static int <B>stuffMarkerEvent</B>(int&nbsp;markerType,                                   int&nbsp;markerValue)</PRE><DL><DD>Returns an int that is the stuffed representation of the marker music event.<DD><DL><DT><B>Parameters:</B><DD><CODE>markerType</CODE> - the type of marker that is required<DD><CODE>markerValue</CODE> - the value applied to the specified marker<DT><B>Returns:</B><DD>the stuffed representation of this type of music event in big endian order</DL></DD></DL><HR><A NAME="stuffXNoteEvent(int, int, int, int)"><!-- --></A><H3>stuffXNoteEvent</H3><PRE>public static long <B>stuffXNoteEvent</B>(int&nbsp;part,                                   int&nbsp;pitch,                                   int&nbsp;volume,                                   int&nbsp;duration)</PRE><DL><DD>Returns a long that is the stuffed representation of the extended note music event. Extended music events are 2 big endian ints stuffed into a long.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the note is played by<DD><CODE>pitch</CODE> - a 8.8 pitch value where the high 8 bits are the MIDI note number and the low 8 bits represent some fractional value of a semitone<DD><CODE>velocity</CODE> - the note-on velocity when the note is played<DD><CODE>duration</CODE> - the duration in the time scale of the TunePlayer or the MusicMedia<DT><B>Returns:</B><DD>the stuffed representation of this type of extended music event.</DL></DD></DL><HR><A NAME="stuffXControlEvent(int, int, int)"><!-- --></A><H3>stuffXControlEvent</H3><PRE>public static long <B>stuffXControlEvent</B>(int&nbsp;part,                                      int&nbsp;control,                                      int&nbsp;value)</PRE><DL><DD>Returns a long that is the stuffed representation of the extended note music event. Extended music events are 2 big endian ints stuffed into a long.<DD><DL><DT><B>Parameters:</B><DD><CODE>part</CODE> - the part that the note is played by<DD><CODE>control</CODE> - the number of the controller<DD><CODE>value</CODE> - 8.8 bit fixed point signed controller specific value<DT><B>Returns:</B><DD>the stuffed representation of this type of extended music event.</DL></DD></DL><HR><A NAME="stuffXKnobEvent(int, int, int)"><!-- --></A><H3>stuffXKnobEvent</H3><PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?