PageRenderTime 119ms CodeModel.GetById 15ms app.highlight 76ms RepoModel.GetById 1ms app.codeStats 1ms

/apidocs/echonest.support.midi.MidiToText-pysrc.html

http://echo-nest-remix.googlecode.com/
HTML | 317 lines | 286 code | 10 blank | 21 comment | 0 complexity | 6ea927c499aefa71e43d5c2ad2c4cfb4 MD5 | raw file

Large files files are truncated, but you can click here to view the full 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.MidiToText</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        Module&nbsp;MidiToText
 46      </span>
 47    </td>
 48    <td>
 49      <table cellpadding="0" cellspacing="0">
 50        <!-- hide/show private -->
 51        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
 52    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
 53        <tr><td align="right"><span class="options"
 54            >[<a href="frames.html" target="_top">frames</a
 55            >]&nbsp;|&nbsp;<a href="echonest.support.midi.MidiToText-pysrc.html"
 56            target="_top">no&nbsp;frames</a>]</span></td></tr>
 57      </table>
 58    </td>
 59  </tr>
 60</table>
 61<h1 class="epydoc">Source Code for <a href="echonest.support.midi.MidiToText-module.html">Module echonest.support.midi.MidiToText</a></h1>
 62<pre class="py-src">
 63<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: ISO-8859-1 -*-</tt>
 </tt>
 64<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line">
 </tt>
 65<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module echonest.support.midi.MidiOutStream=echonest.support.midi.MidiOutStream-module.html,Class echonest.support.midi.MidiOutStream.MidiOutStream=echonest.support.midi.MidiOutStream.MidiOutStream-class.html"><a title="echonest.support.midi.MidiOutStream
 66echonest.support.midi.MidiOutStream.MidiOutStream" class="py-name" href="#" onclick="return doclink('link-0', 'MidiOutStream', 'link-0');">MidiOutStream</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name"><a title="echonest.support.midi.MidiOutStream
 67echonest.support.midi.MidiOutStream.MidiOutStream" class="py-name" href="#" onclick="return doclink('link-1', 'MidiOutStream', 'link-0');">MidiOutStream</a></tt> </tt>
 68<a name="MidiToText"></a><div id="MidiToText-def"><a name="L4"></a><tt class="py-lineno">  4</tt> <a class="py-toggle" href="#" id="MidiToText-toggle" onclick="return toggle('MidiToText');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html">MidiToText</a><tt class="py-op">(</tt><tt class="py-base-class">MidiOutStream</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 69</div><div id="MidiToText-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="MidiToText-expanded"><a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line">
 </tt>
 70<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line">
 </tt>
 71<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line">    <tt class="py-docstring">"""
</tt> </tt>
 72<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    This class renders a midi file as text. It is mostly used for debugging
</tt> </tt>
 73<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
 74<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line">
 </tt>
 75<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line">    <tt class="py-comment">#############################</tt>
 </tt>
 76<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line">    <tt class="py-comment"># channel events</tt>
 </tt>
 77<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line">    
 </tt>
 78<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    
 </tt>
 79<a name="MidiToText.channel_message"></a><div id="MidiToText.channel_message-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="MidiToText.channel_message-toggle" onclick="return toggle('MidiToText.channel_message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#channel_message">channel_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">message_type</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 80</div><div id="MidiToText.channel_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.channel_message-expanded"><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">        <tt class="py-docstring">"""The default event handler for channel messages"""</tt> </tt>
 81<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'message_type:%X, channel:%X, data size:%X'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">message_type</tt><tt class="py-op">,</tt> <tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
 82</div><a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">
 </tt>
 83<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">
 </tt>
 84<a name="MidiToText.note_on"></a><div id="MidiToText.note_on-def"><a name="L20"></a><tt class="py-lineno"> 20</tt> <a class="py-toggle" href="#" id="MidiToText.note_on-toggle" onclick="return toggle('MidiToText.note_on');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#note_on">note_on</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">note</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">,</tt> <tt class="py-param">velocity</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 85</div><div id="MidiToText.note_on-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.note_on-expanded"><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'note_on  - ch:%02X,  note:%02X,  vel:%02X time:%s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">note</tt><tt class="py-op">,</tt> <tt class="py-name">velocity</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Method echonest.support.midi.MidiOutStream.MidiOutStream.rel_time()=echonest.support.midi.MidiOutStream.MidiOutStream-class.html#rel_time"><a title="echonest.support.midi.MidiOutStream.MidiOutStream.rel_time" class="py-name" href="#" onclick="return doclink('link-2', 'rel_time', 'link-2');">rel_time</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
 86</div><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">
 </tt>
 87<a name="MidiToText.note_off"></a><div id="MidiToText.note_off-def"><a name="L23"></a><tt class="py-lineno"> 23</tt> <a class="py-toggle" href="#" id="MidiToText.note_off-toggle" onclick="return toggle('MidiToText.note_off');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#note_off">note_off</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">note</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">,</tt> <tt class="py-param">velocity</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 88</div><div id="MidiToText.note_off-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.note_off-expanded"><a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'note_off - ch:%02X,  note:%02X,  vel:%02X time:%s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">note</tt><tt class="py-op">,</tt> <tt class="py-name">velocity</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="echonest.support.midi.MidiOutStream.MidiOutStream.rel_time" class="py-name" href="#" onclick="return doclink('link-3', 'rel_time', 'link-2');">rel_time</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
 89</div><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">
 </tt>
 90<a name="MidiToText.aftertouch"></a><div id="MidiToText.aftertouch-def"><a name="L26"></a><tt class="py-lineno"> 26</tt> <a class="py-toggle" href="#" id="MidiToText.aftertouch-toggle" onclick="return toggle('MidiToText.aftertouch');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#aftertouch">aftertouch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">note</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">,</tt> <tt class="py-param">velocity</tt><tt class="py-op">=</tt><tt class="py-number">0x40</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 91</div><div id="MidiToText.aftertouch-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.aftertouch-expanded"><a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'aftertouch'</tt><tt class="py-op">,</tt> <tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">note</tt><tt class="py-op">,</tt> <tt class="py-name">velocity</tt> </tt>
 92</div><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">
 </tt>
 93<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">
 </tt>
 94<a name="MidiToText.continuous_controller"></a><div id="MidiToText.continuous_controller-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="MidiToText.continuous_controller-toggle" onclick="return toggle('MidiToText.continuous_controller');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#continuous_controller">continuous_controller</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">,</tt> <tt class="py-param">controller</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 95</div><div id="MidiToText.continuous_controller-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.continuous_controller-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'controller - ch: %02X, cont: #%02X, value: %02X'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">controller</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
 96</div><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">
 </tt>
 97<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">
 </tt>
 98<a name="MidiToText.patch_change"></a><div id="MidiToText.patch_change-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="MidiToText.patch_change-toggle" onclick="return toggle('MidiToText.patch_change');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#patch_change">patch_change</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">,</tt> <tt class="py-param">patch</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
 99</div><div id="MidiToText.patch_change-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.patch_change-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'patch_change - ch:%02X, patch:%02X'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">patch</tt><tt class="py-op">)</tt> </tt>
100</div><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">
 </tt>
101<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">
 </tt>
102<a name="MidiToText.channel_pressure"></a><div id="MidiToText.channel_pressure-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="MidiToText.channel_pressure-toggle" onclick="return toggle('MidiToText.channel_pressure');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#channel_pressure">channel_pressure</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">,</tt> <tt class="py-param">pressure</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
103</div><div id="MidiToText.channel_pressure-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.channel_pressure-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'channel_pressure'</tt><tt class="py-op">,</tt> <tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">pressure</tt> </tt>
104</div><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">
 </tt>
105<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">
 </tt>
106<a name="MidiToText.pitch_bend"></a><div id="MidiToText.pitch_bend-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <a class="py-toggle" href="#" id="MidiToText.pitch_bend-toggle" onclick="return toggle('MidiToText.pitch_bend');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#pitch_bend">pitch_bend</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
107</div><div id="MidiToText.pitch_bend-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.pitch_bend-expanded"><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'pitch_bend ch:%s, value:%s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">channel</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
108</div><a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">
 </tt>
109<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">
 </tt>
110<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">
 </tt>
111<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt class="py-comment">#####################</tt>
 </tt>
112<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">    <tt class="py-comment">## Common events</tt>
 </tt>
113<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">
 </tt>
114<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">
 </tt>
115<a name="MidiToText.system_exclusive"></a><div id="MidiToText.system_exclusive-def"><a name="L51"></a><tt class="py-lineno"> 51</tt> <a class="py-toggle" href="#" id="MidiToText.system_exclusive-toggle" onclick="return toggle('MidiToText.system_exclusive');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#system_exclusive">system_exclusive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
116</div><div id="MidiToText.system_exclusive-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.system_exclusive-expanded"><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'system_exclusive - data size: %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">date</tt><tt class="py-op">)</tt> </tt>
117</div><a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">
 </tt>
118<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">
 </tt>
119<a name="MidiToText.song_position_pointer"></a><div id="MidiToText.song_position_pointer-def"><a name="L55"></a><tt class="py-lineno"> 55</tt> <a class="py-toggle" href="#" id="MidiToText.song_position_pointer-toggle" onclick="return toggle('MidiToText.song_position_pointer');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#song_position_pointer">song_position_pointer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
120</div><div id="MidiToText.song_position_pointer-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.song_position_pointer-expanded"><a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'song_position_pointer: %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">value</tt> </tt>
121</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">
 </tt>
122<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">
 </tt>
123<a name="MidiToText.song_select"></a><div id="MidiToText.song_select-def"><a name="L59"></a><tt class="py-lineno"> 59</tt> <a class="py-toggle" href="#" id="MidiToText.song_select-toggle" onclick="return toggle('MidiToText.song_select');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#song_select">song_select</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">songNumber</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
124</div><div id="MidiToText.song_select-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.song_select-expanded"><a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'song_select: %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">songNumber</tt> </tt>
125</div><a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">
 </tt>
126<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">
 </tt>
127<a name="MidiToText.tuning_request"></a><div id="MidiToText.tuning_request-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="MidiToText.tuning_request-toggle" onclick="return toggle('MidiToText.tuning_request');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#tuning_request">tuning_request</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
128</div><div id="MidiToText.tuning_request-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.tuning_request-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'tuning_request'</tt> </tt>
129</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">
 </tt>
130<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">
 </tt>
131<a name="MidiToText.midi_time_code"></a><div id="MidiToText.midi_time_code-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="MidiToText.midi_time_code-toggle" onclick="return toggle('MidiToText.midi_time_code');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#midi_time_code">midi_time_code</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">msg_type</tt><tt class="py-op">,</tt> <tt class="py-param">values</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
132</div><div id="MidiToText.midi_time_code-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.midi_time_code-expanded"><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'midi_time_code - msg_type: %s, values: %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">msg_type</tt><tt class="py-op">,</tt> <tt class="py-name">values</tt><tt class="py-op">)</tt> </tt>
133</div><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">
 </tt>
134<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">
 </tt>
135<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">
 </tt>
136<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">    <tt class="py-comment">#########################</tt>
 </tt>
137<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">    <tt class="py-comment"># header does not really belong here. But anyhoo!!!</tt>
 </tt>
138<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">
 </tt>
139<a name="MidiToText.header"></a><div id="MidiToText.header-def"><a name="L75"></a><tt class="py-lineno"> 75</tt> <a class="py-toggle" href="#" id="MidiToText.header-toggle" onclick="return toggle('MidiToText.header');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#header">header</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">format</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">nTracks</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-param">division</tt><tt class="py-op">=</tt><tt class="py-number">96</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
140</div><div id="MidiToText.header-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.header-expanded"><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'format: %s, nTracks: %s, division: %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">format</tt><tt class="py-op">,</tt> <tt class="py-name">nTracks</tt><tt class="py-op">,</tt> <tt class="py-name">division</tt><tt class="py-op">)</tt> </tt>
141<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'----------------------------------'</tt> </tt>
142<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">''</tt> </tt>
143</div><a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">
 </tt>
144<a name="MidiToText.eof"></a><div id="MidiToText.eof-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="#" id="MidiToText.eof-toggle" onclick="return toggle('MidiToText.eof');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#eof">eof</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
145</div><div id="MidiToText.eof-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.eof-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'End of file'</tt> </tt>
146</div><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">
 </tt>
147<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">
 </tt>
148<a name="MidiToText.start_of_track"></a><div id="MidiToText.start_of_track-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="MidiToText.start_of_track-toggle" onclick="return toggle('MidiToText.start_of_track');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#start_of_track">start_of_track</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n_track</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
149</div><div id="MidiToText.start_of_track-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.start_of_track-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'Start - track #%s'</tt> <tt class="py-op">%</tt> <tt class="py-name">n_track</tt> </tt>
150</div><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">
 </tt>
151<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">
 </tt>
152<a name="MidiToText.end_of_track"></a><div id="MidiToText.end_of_track-def"><a name="L88"></a><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="MidiToText.end_of_track-toggle" onclick="return toggle('MidiToText.end_of_track');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#end_of_track">end_of_track</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
153</div><div id="MidiToText.end_of_track-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.end_of_track-expanded"><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'End of track'</tt> </tt>
154<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">''</tt> </tt>
155</div><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">
 </tt>
156<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">
 </tt>
157<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">
 </tt>
158<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">    <tt class="py-comment">###############</tt>
 </tt>
159<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt class="py-comment"># sysex event</tt>
 </tt>
160<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">
 </tt>
161<a name="MidiToText.sysex_event"></a><div id="MidiToText.sysex_event-def"><a name="L97"></a><tt class="py-lineno"> 97</tt> <a class="py-toggle" href="#" id="MidiToText.sysex_event-toggle" onclick="return toggle('MidiToText.sysex_event');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#sysex_event">sysex_event</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
162</div><div id="MidiToText.sysex_event-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.sysex_event-expanded"><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'sysex_event - datasize: %X'</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
163</div><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">
 </tt>
164<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">
 </tt>
165<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">    <tt class="py-comment">#####################</tt>
 </tt>
166<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-comment">## meta events</tt>
 </tt>
167<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">
 </tt>
168<a name="MidiToText.meta_event"></a><div id="MidiToText.meta_event-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="MidiToText.meta_event-toggle" onclick="return toggle('MidiToText.meta_event');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#meta_event">meta_event</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">meta_type</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
169</div><div id="MidiToText.meta_event-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.meta_event-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'undefined_meta_event:'</tt><tt class="py-op">,</tt> <tt class="py-name">meta_type</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
170</div><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">
 </tt>
171<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">
 </tt>
172<a name="MidiToText.sequence_number"></a><div id="MidiToText.sequence_number-def"><a name="L108"></a><tt class="py-lineno">108</tt> <a class="py-toggle" href="#" id="MidiToText.sequence_number-toggle" onclick="return toggle('MidiToText.sequence_number');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#sequence_number">sequence_number</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
173</div><div id="MidiToText.sequence_number-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.sequence_number-expanded"><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'sequence_number'</tt><tt class="py-op">,</tt> <tt class="py-name">number</tt> </tt>
174</div><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">
 </tt>
175<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">
 </tt>
176<a name="MidiToText.text"></a><div id="MidiToText.text-def"><a name="L112"></a><tt class="py-lineno">112</tt> <a class="py-toggle" href="#" id="MidiToText.text-toggle" onclick="return toggle('MidiToText.text');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#text">text</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
177</div><div id="MidiToText.text-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.text-expanded"><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'text'</tt><tt class="py-op">,</tt> <tt id="link-4" class="py-name" targets="Method echonest.support.midi.MidiOutFile.MidiOutFile.text()=echonest.support.midi.MidiOutFile.MidiOutFile-class.html#text,Method echonest.support.midi.MidiOutStream.MidiOutStream.text()=echonest.support.midi.MidiOutStream.MidiOutStream-class.html#text,Method echonest.support.midi.MidiToText.MidiToText.text()=echonest.support.midi.MidiToText.MidiToText-class.html#text"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
178echonest.support.midi.MidiOutStream.MidiOutStream.text
179echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-4', 'text', 'link-4');">text</a></tt> </tt>
180</div><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">
 </tt>
181<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">
 </tt>
182<a name="MidiToText.copyright"></a><div id="MidiToText.copyright-def"><a name="L116"></a><tt class="py-lineno">116</tt> <a class="py-toggle" href="#" id="MidiToText.copyright-toggle" onclick="return toggle('MidiToText.copyright');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#copyright">copyright</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
183</div><div id="MidiToText.copyright-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.copyright-expanded"><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'copyright'</tt><tt class="py-op">,</tt> <tt id="link-5" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
184echonest.support.midi.MidiOutStream.MidiOutStream.text
185echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-5', 'text', 'link-4');">text</a></tt> </tt>
186</div><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">
 </tt>
187<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">
 </tt>
188<a name="MidiToText.sequence_name"></a><div id="MidiToText.sequence_name-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="MidiToText.sequence_name-toggle" onclick="return toggle('MidiToText.sequence_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#sequence_name">sequence_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
189</div><div id="MidiToText.sequence_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.sequence_name-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'sequence_name:'</tt><tt class="py-op">,</tt> <tt id="link-6" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
190echonest.support.midi.MidiOutStream.MidiOutStream.text
191echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-6', 'text', 'link-4');">text</a></tt> </tt>
192</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">
 </tt>
193<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">
 </tt>
194<a name="MidiToText.instrument_name"></a><div id="MidiToText.instrument_name-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="MidiToText.instrument_name-toggle" onclick="return toggle('MidiToText.instrument_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#instrument_name">instrument_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
195</div><div id="MidiToText.instrument_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.instrument_name-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'instrument_name:'</tt><tt class="py-op">,</tt> <tt id="link-7" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
196echonest.support.midi.MidiOutStream.MidiOutStream.text
197echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-7', 'text', 'link-4');">text</a></tt> </tt>
198</div><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">
 </tt>
199<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">
 </tt>
200<a name="MidiToText.lyric"></a><div id="MidiToText.lyric-def"><a name="L128"></a><tt class="py-lineno">128</tt> <a class="py-toggle" href="#" id="MidiToText.lyric-toggle" onclick="return toggle('MidiToText.lyric');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#lyric">lyric</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
201</div><div id="MidiToText.lyric-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.lyric-expanded"><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'lyric'</tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
202echonest.support.midi.MidiOutStream.MidiOutStream.text
203echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-8', 'text', 'link-4');">text</a></tt> </tt>
204</div><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">
 </tt>
205<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">
 </tt>
206<a name="MidiToText.marker"></a><div id="MidiToText.marker-def"><a name="L132"></a><tt class="py-lineno">132</tt> <a class="py-toggle" href="#" id="MidiToText.marker-toggle" onclick="return toggle('MidiToText.marker');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#marker">marker</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
207</div><div id="MidiToText.marker-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.marker-expanded"><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'marker'</tt><tt class="py-op">,</tt> <tt id="link-9" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
208echonest.support.midi.MidiOutStream.MidiOutStream.text
209echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-9', 'text', 'link-4');">text</a></tt> </tt>
210</div><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">
 </tt>
211<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">
 </tt>
212<a name="MidiToText.cuepoint"></a><div id="MidiToText.cuepoint-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="MidiToText.cuepoint-toggle" onclick="return toggle('MidiToText.cuepoint');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#cuepoint">cuepoint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
213</div><div id="MidiToText.cuepoint-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.cuepoint-expanded"><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'cuepoint'</tt><tt class="py-op">,</tt> <tt id="link-10" class="py-name"><a title="echonest.support.midi.MidiOutFile.MidiOutFile.text
214echonest.support.midi.MidiOutStream.MidiOutStream.text
215echonest.support.midi.MidiToText.MidiToText.text" class="py-name" href="#" onclick="return doclink('link-10', 'text', 'link-4');">text</a></tt> </tt>
216</div><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">
 </tt>
217<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">
 </tt>
218<a name="MidiToText.midi_ch_prefix"></a><div id="MidiToText.midi_ch_prefix-def"><a name="L140"></a><tt class="py-lineno">140</tt> <a class="py-toggle" href="#" id="MidiToText.midi_ch_prefix-toggle" onclick="return toggle('MidiToText.midi_ch_prefix');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#midi_ch_prefix">midi_ch_prefix</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">channel</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
219</div><div id="MidiToText.midi_ch_prefix-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.midi_ch_prefix-expanded"><a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'midi_ch_prefix'</tt><tt class="py-op">,</tt> <tt class="py-name">channel</tt> </tt>
220</div><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">
 </tt>
221<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">
 </tt>
222<a name="MidiToText.midi_port"></a><div id="MidiToText.midi_port-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="MidiToText.midi_port-toggle" onclick="return toggle('MidiToText.midi_port');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#midi_port">midi_port</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
223</div><div id="MidiToText.midi_port-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.midi_port-expanded"><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'midi_port:'</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> </tt>
224</div><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">
 </tt>
225<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">
 </tt>
226<a name="MidiToText.tempo"></a><div id="MidiToText.tempo-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="MidiToText.tempo-toggle" onclick="return toggle('MidiToText.tempo');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#tempo">tempo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
227</div><div id="MidiToText.tempo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.tempo-expanded"><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'tempo:'</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> </tt>
228</div><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">
 </tt>
229<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">
 </tt>
230<a name="MidiToText.smtp_offset"></a><div id="MidiToText.smtp_offset-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="MidiToText.smtp_offset-toggle" onclick="return toggle('MidiToText.smtp_offset');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#smtp_offset">smtp_offset</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hour</tt><tt class="py-op">,</tt> <tt class="py-param">minute</tt><tt class="py-op">,</tt> <tt class="py-param">second</tt><tt class="py-op">,</tt> <tt class="py-param">frame</tt><tt class="py-op">,</tt> <tt class="py-param">framePart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
231</div><div id="MidiToText.smtp_offset-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.smtp_offset-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'smtp_offset'</tt><tt class="py-op">,</tt> <tt class="py-name">hour</tt><tt class="py-op">,</tt> <tt class="py-name">minute</tt><tt class="py-op">,</tt> <tt class="py-name">second</tt><tt class="py-op">,</tt> <tt class="py-name">frame</tt><tt class="py-op">,</tt> <tt class="py-name">framePart</tt> </tt>
232</div><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">
 </tt>
233<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">
 </tt>
234<a name="MidiToText.time_signature"></a><div id="MidiToText.time_signature-def"><a name="L156"></a><tt class="py-lineno">156</tt> <a class="py-toggle" href="#" id="MidiToText.time_signature-toggle" onclick="return toggle('MidiToText.time_signature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="echonest.support.midi.MidiToText.MidiToText-class.html#time_signature">time_signature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">nn</tt><tt class="py-op">,</tt> <tt class="py-param">dd</tt><tt class="py-op">,</tt> <tt class="py-param">cc</tt><tt class="py-op">,</tt> <tt class="py-param">bb</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
235</div><div id="MidiToText.time_signature-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MidiToText.time_signature-expanded"><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">'time_signature:'</tt><tt class="py-op">,</tt> <tt class="py-name">nn</tt><tt class="py-op">,</tt> <tt class="py-name">dd</tt><tt class="py-op">,</tt> <tt class="py-name">cc</tt><tt class="py-op">,</tt> <tt class="py-name">bb</tt> </tt>
236</div><a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">
 </tt>
237<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">
 </tt>
238<a name="MidiToText.key_signature"></a><div id="MidiToText.key_signature-def"><a name="L160"></a><tt class="py-lineno">160</tt> <a class="py-toggle" href="#" id="MidiToTe…

Large files files are truncated, but you can click here to view the full file