PageRenderTime 26ms CodeModel.GetById 9ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/apidocs/echonest.support.midi.MidiFileParser.MidiFileParser-class.html

http://echo-nest-remix.googlecode.com/
HTML | 240 lines | 199 code | 20 blank | 21 comment | 0 complexity | fdd7139c054c9f00a7cd0ddceac4cbd4 MD5 | raw file
  1<?xml version="1.0" encoding="ascii"?>
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3          "DTD/xhtml1-transitional.dtd">
  4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5<head>
  6  <title>echonest.support.midi.MidiFileParser.MidiFileParser</title>
  7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  8  <script type="text/javascript" src="epydoc.js"></script>
  9</head>
 10
 11<body bgcolor="white" text="black" link="blue" vlink="#204080"
 12      alink="#204080">
 13<!-- ==================== NAVIGATION BAR ==================== -->
 14<table class="navbar" border="0" width="100%" cellpadding="0"
 15       bgcolor="#a0c0ff" cellspacing="0">
 16  <tr valign="middle">
 17
 18  <!-- Tree link -->
 19      <th>&nbsp;&nbsp;&nbsp;<a
 20        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 21
 22  <!-- Index link -->
 23      <th>&nbsp;&nbsp;&nbsp;<a
 24        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
 25
 26  <!-- Help link -->
 27      <th>&nbsp;&nbsp;&nbsp;<a
 28        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 29
 30  <!-- Project homepage -->
 31      <th class="navbar" align="right" width="100%">
 32        <table border="0" cellpadding="0" cellspacing="0">
 33          <tr><th class="navbar" align="center"
 34            ><a class="navbar" target="_top" href="http://code.google.com/p/echo-nest-remix/">Project Homepage</a></th>
 35          </tr></table></th>
 36  </tr>
 37</table>
 38<table width="100%" cellpadding="0" cellspacing="0">
 39  <tr valign="top">
 40    <td width="100%">
 41      <span class="breadcrumbs">
 42        <a href="echonest-module.html">Package&nbsp;echonest</a> ::
 43        <a href="echonest.support-module.html">Package&nbsp;support</a> ::
 44        <a href="echonest.support.midi-module.html">Package&nbsp;midi</a> ::
 45        <a href="echonest.support.midi.MidiFileParser-module.html">Module&nbsp;MidiFileParser</a> ::
 46        Class&nbsp;MidiFileParser
 47      </span>
 48    </td>
 49    <td>
 50      <table cellpadding="0" cellspacing="0">
 51        <!-- hide/show private -->
 52        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
 53    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
 54        <tr><td align="right"><span class="options"
 55            >[<a href="frames.html" target="_top">frames</a
 56            >]&nbsp;|&nbsp;<a href="echonest.support.midi.MidiFileParser.MidiFileParser-class.html"
 57            target="_top">no&nbsp;frames</a>]</span></td></tr>
 58      </table>
 59    </td>
 60  </tr>
 61</table>
 62<!-- ==================== CLASS DESCRIPTION ==================== -->
 63<h1 class="epydoc">Class MidiFileParser</h1><p class="nomargin-top"><span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser">source&nbsp;code</a></span></p>
 64The MidiFileParser is the lowest level parser that see the data as
 65midi data. It generates events that gets triggered on the outstream.
 66
 67<!-- ==================== INSTANCE METHODS ==================== -->
 68<a name="section-InstanceMethods"></a>
 69<table class="summary" border="1" cellpadding="3"
 70       cellspacing="0" width="100%" bgcolor="white">
 71<tr bgcolor="#70b0f0" class="table-header">
 72  <td colspan="2" class="table-header">
 73    <table border="0" cellpadding="0" cellspacing="0" width="100%">
 74      <tr valign="top">
 75        <td align="left"><span class="table-header">Instance Methods</span></td>
 76        <td align="right" valign="top"
 77         ><span class="options">[<a href="#section-InstanceMethods"
 78         class="privatelink" onclick="toggle_private();"
 79         >hide private</a>]</span></td>
 80      </tr>
 81    </table>
 82  </td>
 83</tr>
 84<tr>
 85    <td width="15%" align="right" valign="top" class="summary">
 86      <span class="summary-type">&nbsp;</span>
 87    </td><td class="summary">
 88      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 89        <tr>
 90          <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>,
 91        <span class="summary-sig-arg">raw_in</span>,
 92        <span class="summary-sig-arg">outstream</span>)</span><br />
 93      raw_data is the raw content of a midi file as a string.</td>
 94          <td align="right" valign="top">
 95            <span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser.__init__">source&nbsp;code</a></span>
 96            
 97          </td>
 98        </tr>
 99      </table>
100      
101    </td>
102  </tr>
103<tr>
104    <td width="15%" align="right" valign="top" class="summary">
105      <span class="summary-type">&nbsp;</span>
106    </td><td class="summary">
107      <table width="100%" cellpadding="0" cellspacing="0" border="0">
108        <tr>
109          <td><span class="summary-sig"><a name="parseMThdChunk"></a><span class="summary-sig-name">parseMThdChunk</span>(<span class="summary-sig-arg">self</span>)</span><br />
110      Parses the header chunk</td>
111          <td align="right" valign="top">
112            <span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser.parseMThdChunk">source&nbsp;code</a></span>
113            
114          </td>
115        </tr>
116      </table>
117      
118    </td>
119  </tr>
120<tr>
121    <td width="15%" align="right" valign="top" class="summary">
122      <span class="summary-type">&nbsp;</span>
123    </td><td class="summary">
124      <table width="100%" cellpadding="0" cellspacing="0" border="0">
125        <tr>
126          <td><span class="summary-sig"><a href="echonest.support.midi.MidiFileParser.MidiFileParser-class.html#parseMTrkChunk" class="summary-sig-name">parseMTrkChunk</a>(<span class="summary-sig-arg">self</span>)</span><br />
127      Parses a track chunk.</td>
128          <td align="right" valign="top">
129            <span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser.parseMTrkChunk">source&nbsp;code</a></span>
130            
131          </td>
132        </tr>
133      </table>
134      
135    </td>
136  </tr>
137<tr>
138    <td width="15%" align="right" valign="top" class="summary">
139      <span class="summary-type">&nbsp;</span>
140    </td><td class="summary">
141      <table width="100%" cellpadding="0" cellspacing="0" border="0">
142        <tr>
143          <td><span class="summary-sig"><a name="parseMTrkChunks"></a><span class="summary-sig-name">parseMTrkChunks</span>(<span class="summary-sig-arg">self</span>)</span><br />
144      Parses all track chunks.</td>
145          <td align="right" valign="top">
146            <span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser.parseMTrkChunks">source&nbsp;code</a></span>
147            
148          </td>
149        </tr>
150      </table>
151      
152    </td>
153  </tr>
154</table>
155<!-- ==================== METHOD DETAILS ==================== -->
156<a name="section-MethodDetails"></a>
157<table class="details" border="1" cellpadding="3"
158       cellspacing="0" width="100%" bgcolor="white">
159<tr bgcolor="#70b0f0" class="table-header">
160  <td colspan="2" class="table-header">
161    <table border="0" cellpadding="0" cellspacing="0" width="100%">
162      <tr valign="top">
163        <td align="left"><span class="table-header">Method Details</span></td>
164        <td align="right" valign="top"
165         ><span class="options">[<a href="#section-MethodDetails"
166         class="privatelink" onclick="toggle_private();"
167         >hide private</a>]</span></td>
168      </tr>
169    </table>
170  </td>
171</tr>
172</table>
173<a name="parseMTrkChunk"></a>
174<div>
175<table class="details" border="1" cellpadding="3"
176       cellspacing="0" width="100%" bgcolor="white">
177<tr><td>
178  <table width="100%" cellpadding="0" cellspacing="0" border="0">
179  <tr valign="top"><td>
180  <h3 class="epydoc"><span class="sig"><span class="sig-name">parseMTrkChunk</span>(<span class="sig-arg">self</span>)</span>
181  </h3>
182  </td><td align="right" valign="top"
183    ><span class="codelink"><a href="echonest.support.midi.MidiFileParser-pysrc.html#MidiFileParser.parseMTrkChunk">source&nbsp;code</a></span>&nbsp;
184    </td>
185  </tr></table>
186  
187  Parses a track chunk. This is the most important part of the parser.
188  <dl class="fields">
189  </dl>
190</td></tr></table>
191</div>
192<br />
193<!-- ==================== NAVIGATION BAR ==================== -->
194<table class="navbar" border="0" width="100%" cellpadding="0"
195       bgcolor="#a0c0ff" cellspacing="0">
196  <tr valign="middle">
197
198  <!-- Tree link -->
199      <th>&nbsp;&nbsp;&nbsp;<a
200        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
201
202  <!-- Index link -->
203      <th>&nbsp;&nbsp;&nbsp;<a
204        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
205
206  <!-- Help link -->
207      <th>&nbsp;&nbsp;&nbsp;<a
208        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
209
210  <!-- Project homepage -->
211      <th class="navbar" align="right" width="100%">
212        <table border="0" cellpadding="0" cellspacing="0">
213          <tr><th class="navbar" align="center"
214            ><a class="navbar" target="_top" href="http://code.google.com/p/echo-nest-remix/">Project Homepage</a></th>
215          </tr></table></th>
216  </tr>
217</table>
218<table border="0" cellpadding="0" cellspacing="0" width="100%%">
219  <tr>
220    <td align="left" class="footer">
221    Generated by Epydoc 3.0.1 on Wed Sep  1 16:08:58 2010
222    </td>
223    <td align="right" class="footer">
224      <a target="mainFrame" href="http://epydoc.sourceforge.net"
225        >http://epydoc.sourceforge.net</a>
226    </td>
227  </tr>
228</table>
229
230<script type="text/javascript">
231  <!--
232  // Private objects are initially displayed (because if
233  // javascript is turned off then we want them to be
234  // visible); but by default, we want to hide them.  So hide
235  // them unless we have a cookie that says to show them.
236  checkCookie();
237  // -->
238</script>
239</body>
240</html>