PageRenderTime 501ms CodeModel.GetById 161ms app.highlight 214ms RepoModel.GetById 108ms app.codeStats 0ms

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

http://echo-nest-remix.googlecode.com/
HTML | 1193 lines | 1054 code | 118 blank | 21 comment | 0 complexity | 6b0941bc28d00c9ebe38c460898e0d2a 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.MidiOutStream.MidiOutStream</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.MidiOutStream-module.html">Module&nbsp;MidiOutStream</a> ::
  46        Class&nbsp;MidiOutStream
  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.MidiOutStream.MidiOutStream-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 MidiOutStream</h1><p class="nomargin-top"><span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream">source&nbsp;code</a></span></p>
  64<center>
  65
  66</center>
  67<hr />
  68<p>MidiOutstream is Basically an eventhandler. It is the most central
  69class in the Midi library. You use it both for writing events to
  70an output stream, and as an event handler for an input stream.</p>
  71<p>This makes it extremely easy to take input from one stream and
  72send it to another. Ie. if you want to read a Midi file, do some
  73processing, and send it to a midiport.</p>
  74<p>All time values are in absolute values from the opening of a
  75stream. To calculate time values, please use the MidiTime and
  76MidiDeltaTime classes.</p>
  77
  78<!-- ==================== INSTANCE METHODS ==================== -->
  79<a name="section-InstanceMethods"></a>
  80<table class="summary" border="1" cellpadding="3"
  81       cellspacing="0" width="100%" bgcolor="white">
  82<tr bgcolor="#70b0f0" class="table-header">
  83  <td colspan="2" class="table-header">
  84    <table border="0" cellpadding="0" cellspacing="0" width="100%">
  85      <tr valign="top">
  86        <td align="left"><span class="table-header">Instance Methods</span></td>
  87        <td align="right" valign="top"
  88         ><span class="options">[<a href="#section-InstanceMethods"
  89         class="privatelink" onclick="toggle_private();"
  90         >hide private</a>]</span></td>
  91      </tr>
  92    </table>
  93  </td>
  94</tr>
  95<tr>
  96    <td width="15%" align="right" valign="top" class="summary">
  97      <span class="summary-type">&nbsp;</span>
  98    </td><td class="summary">
  99      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 100        <tr>
 101          <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>)</span></td>
 102          <td align="right" valign="top">
 103            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.__init__">source&nbsp;code</a></span>
 104            
 105          </td>
 106        </tr>
 107      </table>
 108      
 109    </td>
 110  </tr>
 111<tr>
 112    <td width="15%" align="right" valign="top" class="summary">
 113      <span class="summary-type">&nbsp;</span>
 114    </td><td class="summary">
 115      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 116        <tr>
 117          <td><span class="summary-sig"><a name="update_time"></a><span class="summary-sig-name">update_time</span>(<span class="summary-sig-arg">self</span>,
 118        <span class="summary-sig-arg">new_time</span>=<span class="summary-sig-default">0</span>,
 119        <span class="summary-sig-arg">relative</span>=<span class="summary-sig-default">1</span>)</span><br />
 120      Updates the time, if relative is true, new_time is relative,
 121else it's absolute.</td>
 122          <td align="right" valign="top">
 123            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.update_time">source&nbsp;code</a></span>
 124            
 125          </td>
 126        </tr>
 127      </table>
 128      
 129    </td>
 130  </tr>
 131<tr>
 132    <td width="15%" align="right" valign="top" class="summary">
 133      <span class="summary-type">&nbsp;</span>
 134    </td><td class="summary">
 135      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 136        <tr>
 137          <td><span class="summary-sig"><a name="reset_time"></a><span class="summary-sig-name">reset_time</span>(<span class="summary-sig-arg">self</span>)</span><br />
 138      reset time to 0</td>
 139          <td align="right" valign="top">
 140            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.reset_time">source&nbsp;code</a></span>
 141            
 142          </td>
 143        </tr>
 144      </table>
 145      
 146    </td>
 147  </tr>
 148<tr>
 149    <td width="15%" align="right" valign="top" class="summary">
 150      <span class="summary-type">&nbsp;</span>
 151    </td><td class="summary">
 152      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 153        <tr>
 154          <td><span class="summary-sig"><a name="rel_time"></a><span class="summary-sig-name">rel_time</span>(<span class="summary-sig-arg">self</span>)</span><br />
 155      Returns the relative time</td>
 156          <td align="right" valign="top">
 157            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.rel_time">source&nbsp;code</a></span>
 158            
 159          </td>
 160        </tr>
 161      </table>
 162      
 163    </td>
 164  </tr>
 165<tr>
 166    <td width="15%" align="right" valign="top" class="summary">
 167      <span class="summary-type">&nbsp;</span>
 168    </td><td class="summary">
 169      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 170        <tr>
 171          <td><span class="summary-sig"><a name="abs_time"></a><span class="summary-sig-name">abs_time</span>(<span class="summary-sig-arg">self</span>)</span><br />
 172      Returns the absolute time</td>
 173          <td align="right" valign="top">
 174            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.abs_time">source&nbsp;code</a></span>
 175            
 176          </td>
 177        </tr>
 178      </table>
 179      
 180    </td>
 181  </tr>
 182<tr>
 183    <td width="15%" align="right" valign="top" class="summary">
 184      <span class="summary-type">&nbsp;</span>
 185    </td><td class="summary">
 186      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 187        <tr>
 188          <td><span class="summary-sig"><a name="reset_run_stat"></a><span class="summary-sig-name">reset_run_stat</span>(<span class="summary-sig-arg">self</span>)</span><br />
 189      Invalidates the running status</td>
 190          <td align="right" valign="top">
 191            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.reset_run_stat">source&nbsp;code</a></span>
 192            
 193          </td>
 194        </tr>
 195      </table>
 196      
 197    </td>
 198  </tr>
 199<tr>
 200    <td width="15%" align="right" valign="top" class="summary">
 201      <span class="summary-type">&nbsp;</span>
 202    </td><td class="summary">
 203      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 204        <tr>
 205          <td><span class="summary-sig"><a name="set_run_stat"></a><span class="summary-sig-name">set_run_stat</span>(<span class="summary-sig-arg">self</span>,
 206        <span class="summary-sig-arg">new_status</span>)</span><br />
 207      Set the new running status</td>
 208          <td align="right" valign="top">
 209            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.set_run_stat">source&nbsp;code</a></span>
 210            
 211          </td>
 212        </tr>
 213      </table>
 214      
 215    </td>
 216  </tr>
 217<tr>
 218    <td width="15%" align="right" valign="top" class="summary">
 219      <span class="summary-type">&nbsp;</span>
 220    </td><td class="summary">
 221      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 222        <tr>
 223          <td><span class="summary-sig"><a name="get_run_stat"></a><span class="summary-sig-name">get_run_stat</span>(<span class="summary-sig-arg">self</span>)</span><br />
 224      Set the new running status</td>
 225          <td align="right" valign="top">
 226            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.get_run_stat">source&nbsp;code</a></span>
 227            
 228          </td>
 229        </tr>
 230      </table>
 231      
 232    </td>
 233  </tr>
 234<tr>
 235    <td width="15%" align="right" valign="top" class="summary">
 236      <span class="summary-type">&nbsp;</span>
 237    </td><td class="summary">
 238      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 239        <tr>
 240          <td><span class="summary-sig"><a name="set_current_track"></a><span class="summary-sig-name">set_current_track</span>(<span class="summary-sig-arg">self</span>,
 241        <span class="summary-sig-arg">new_track</span>)</span><br />
 242      Sets the current track number</td>
 243          <td align="right" valign="top">
 244            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.set_current_track">source&nbsp;code</a></span>
 245            
 246          </td>
 247        </tr>
 248      </table>
 249      
 250    </td>
 251  </tr>
 252<tr>
 253    <td width="15%" align="right" valign="top" class="summary">
 254      <span class="summary-type">&nbsp;</span>
 255    </td><td class="summary">
 256      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 257        <tr>
 258          <td><span class="summary-sig"><a name="get_current_track"></a><span class="summary-sig-name">get_current_track</span>(<span class="summary-sig-arg">self</span>)</span><br />
 259      Returns the current track number</td>
 260          <td align="right" valign="top">
 261            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.get_current_track">source&nbsp;code</a></span>
 262            
 263          </td>
 264        </tr>
 265      </table>
 266      
 267    </td>
 268  </tr>
 269<tr>
 270    <td width="15%" align="right" valign="top" class="summary">
 271      <span class="summary-type">&nbsp;</span>
 272    </td><td class="summary">
 273      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 274        <tr>
 275          <td><span class="summary-sig"><a name="channel_message"></a><span class="summary-sig-name">channel_message</span>(<span class="summary-sig-arg">self</span>,
 276        <span class="summary-sig-arg">message_type</span>,
 277        <span class="summary-sig-arg">channel</span>,
 278        <span class="summary-sig-arg">data</span>)</span><br />
 279      The default event handler for channel messages</td>
 280          <td align="right" valign="top">
 281            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.channel_message">source&nbsp;code</a></span>
 282            
 283          </td>
 284        </tr>
 285      </table>
 286      
 287    </td>
 288  </tr>
 289<tr>
 290    <td width="15%" align="right" valign="top" class="summary">
 291      <span class="summary-type">&nbsp;</span>
 292    </td><td class="summary">
 293      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 294        <tr>
 295          <td><span class="summary-sig"><a name="note_on"></a><span class="summary-sig-name">note_on</span>(<span class="summary-sig-arg">self</span>,
 296        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
 297        <span class="summary-sig-arg">note</span>=<span class="summary-sig-default">64</span>,
 298        <span class="summary-sig-arg">velocity</span>=<span class="summary-sig-default">64</span>)</span><br />
 299      channel: 0-15
 300note, velocity: 0-127</td>
 301          <td align="right" valign="top">
 302            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.note_on">source&nbsp;code</a></span>
 303            
 304          </td>
 305        </tr>
 306      </table>
 307      
 308    </td>
 309  </tr>
 310<tr>
 311    <td width="15%" align="right" valign="top" class="summary">
 312      <span class="summary-type">&nbsp;</span>
 313    </td><td class="summary">
 314      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 315        <tr>
 316          <td><span class="summary-sig"><a name="note_off"></a><span class="summary-sig-name">note_off</span>(<span class="summary-sig-arg">self</span>,
 317        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
 318        <span class="summary-sig-arg">note</span>=<span class="summary-sig-default">64</span>,
 319        <span class="summary-sig-arg">velocity</span>=<span class="summary-sig-default">64</span>)</span><br />
 320      channel: 0-15
 321note, velocity: 0-127</td>
 322          <td align="right" valign="top">
 323            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.note_off">source&nbsp;code</a></span>
 324            
 325          </td>
 326        </tr>
 327      </table>
 328      
 329    </td>
 330  </tr>
 331<tr>
 332    <td width="15%" align="right" valign="top" class="summary">
 333      <span class="summary-type">&nbsp;</span>
 334    </td><td class="summary">
 335      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 336        <tr>
 337          <td><span class="summary-sig"><a name="aftertouch"></a><span class="summary-sig-name">aftertouch</span>(<span class="summary-sig-arg">self</span>,
 338        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
 339        <span class="summary-sig-arg">note</span>=<span class="summary-sig-default">64</span>,
 340        <span class="summary-sig-arg">velocity</span>=<span class="summary-sig-default">64</span>)</span><br />
 341      channel: 0-15
 342note, velocity: 0-127</td>
 343          <td align="right" valign="top">
 344            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.aftertouch">source&nbsp;code</a></span>
 345            
 346          </td>
 347        </tr>
 348      </table>
 349      
 350    </td>
 351  </tr>
 352<tr>
 353    <td width="15%" align="right" valign="top" class="summary">
 354      <span class="summary-type">&nbsp;</span>
 355    </td><td class="summary">
 356      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 357        <tr>
 358          <td><span class="summary-sig"><a name="continuous_controller"></a><span class="summary-sig-name">continuous_controller</span>(<span class="summary-sig-arg">self</span>,
 359        <span class="summary-sig-arg">channel</span>,
 360        <span class="summary-sig-arg">controller</span>,
 361        <span class="summary-sig-arg">value</span>)</span><br />
 362      channel: 0-15
 363controller, value: 0-127</td>
 364          <td align="right" valign="top">
 365            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.continuous_controller">source&nbsp;code</a></span>
 366            
 367          </td>
 368        </tr>
 369      </table>
 370      
 371    </td>
 372  </tr>
 373<tr>
 374    <td width="15%" align="right" valign="top" class="summary">
 375      <span class="summary-type">&nbsp;</span>
 376    </td><td class="summary">
 377      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 378        <tr>
 379          <td><span class="summary-sig"><a name="patch_change"></a><span class="summary-sig-name">patch_change</span>(<span class="summary-sig-arg">self</span>,
 380        <span class="summary-sig-arg">channel</span>,
 381        <span class="summary-sig-arg">patch</span>)</span><br />
 382      channel: 0-15
 383patch: 0-127</td>
 384          <td align="right" valign="top">
 385            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.patch_change">source&nbsp;code</a></span>
 386            
 387          </td>
 388        </tr>
 389      </table>
 390      
 391    </td>
 392  </tr>
 393<tr>
 394    <td width="15%" align="right" valign="top" class="summary">
 395      <span class="summary-type">&nbsp;</span>
 396    </td><td class="summary">
 397      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 398        <tr>
 399          <td><span class="summary-sig"><a name="channel_pressure"></a><span class="summary-sig-name">channel_pressure</span>(<span class="summary-sig-arg">self</span>,
 400        <span class="summary-sig-arg">channel</span>,
 401        <span class="summary-sig-arg">pressure</span>)</span><br />
 402      channel: 0-15
 403pressure: 0-127</td>
 404          <td align="right" valign="top">
 405            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.channel_pressure">source&nbsp;code</a></span>
 406            
 407          </td>
 408        </tr>
 409      </table>
 410      
 411    </td>
 412  </tr>
 413<tr>
 414    <td width="15%" align="right" valign="top" class="summary">
 415      <span class="summary-type">&nbsp;</span>
 416    </td><td class="summary">
 417      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 418        <tr>
 419          <td><span class="summary-sig"><a name="pitch_bend"></a><span class="summary-sig-name">pitch_bend</span>(<span class="summary-sig-arg">self</span>,
 420        <span class="summary-sig-arg">channel</span>,
 421        <span class="summary-sig-arg">value</span>)</span><br />
 422      channel: 0-15
 423value: 0-16383</td>
 424          <td align="right" valign="top">
 425            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.pitch_bend">source&nbsp;code</a></span>
 426            
 427          </td>
 428        </tr>
 429      </table>
 430      
 431    </td>
 432  </tr>
 433<tr>
 434    <td width="15%" align="right" valign="top" class="summary">
 435      <span class="summary-type">&nbsp;</span>
 436    </td><td class="summary">
 437      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 438        <tr>
 439          <td><span class="summary-sig"><a name="system_exclusive"></a><span class="summary-sig-name">system_exclusive</span>(<span class="summary-sig-arg">self</span>,
 440        <span class="summary-sig-arg">data</span>)</span><br />
 441      data: list of values in range(128)</td>
 442          <td align="right" valign="top">
 443            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.system_exclusive">source&nbsp;code</a></span>
 444            
 445          </td>
 446        </tr>
 447      </table>
 448      
 449    </td>
 450  </tr>
 451<tr>
 452    <td width="15%" align="right" valign="top" class="summary">
 453      <span class="summary-type">&nbsp;</span>
 454    </td><td class="summary">
 455      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 456        <tr>
 457          <td><span class="summary-sig"><a name="song_position_pointer"></a><span class="summary-sig-name">song_position_pointer</span>(<span class="summary-sig-arg">self</span>,
 458        <span class="summary-sig-arg">value</span>)</span><br />
 459      value: 0-16383</td>
 460          <td align="right" valign="top">
 461            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.song_position_pointer">source&nbsp;code</a></span>
 462            
 463          </td>
 464        </tr>
 465      </table>
 466      
 467    </td>
 468  </tr>
 469<tr>
 470    <td width="15%" align="right" valign="top" class="summary">
 471      <span class="summary-type">&nbsp;</span>
 472    </td><td class="summary">
 473      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 474        <tr>
 475          <td><span class="summary-sig"><a name="song_select"></a><span class="summary-sig-name">song_select</span>(<span class="summary-sig-arg">self</span>,
 476        <span class="summary-sig-arg">songNumber</span>)</span><br />
 477      songNumber: 0-127</td>
 478          <td align="right" valign="top">
 479            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.song_select">source&nbsp;code</a></span>
 480            
 481          </td>
 482        </tr>
 483      </table>
 484      
 485    </td>
 486  </tr>
 487<tr>
 488    <td width="15%" align="right" valign="top" class="summary">
 489      <span class="summary-type">&nbsp;</span>
 490    </td><td class="summary">
 491      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 492        <tr>
 493          <td><span class="summary-sig"><a name="tuning_request"></a><span class="summary-sig-name">tuning_request</span>(<span class="summary-sig-arg">self</span>)</span><br />
 494      No values passed</td>
 495          <td align="right" valign="top">
 496            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.tuning_request">source&nbsp;code</a></span>
 497            
 498          </td>
 499        </tr>
 500      </table>
 501      
 502    </td>
 503  </tr>
 504<tr>
 505    <td width="15%" align="right" valign="top" class="summary">
 506      <span class="summary-type">&nbsp;</span>
 507    </td><td class="summary">
 508      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 509        <tr>
 510          <td><span class="summary-sig"><a name="midi_time_code"></a><span class="summary-sig-name">midi_time_code</span>(<span class="summary-sig-arg">self</span>,
 511        <span class="summary-sig-arg">msg_type</span>,
 512        <span class="summary-sig-arg">values</span>)</span><br />
 513      msg_type: 0-7
 514values: 0-15</td>
 515          <td align="right" valign="top">
 516            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.midi_time_code">source&nbsp;code</a></span>
 517            
 518          </td>
 519        </tr>
 520      </table>
 521      
 522    </td>
 523  </tr>
 524<tr>
 525    <td width="15%" align="right" valign="top" class="summary">
 526      <span class="summary-type">&nbsp;</span>
 527    </td><td class="summary">
 528      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 529        <tr>
 530          <td><span class="summary-sig"><a name="header"></a><span class="summary-sig-name">header</span>(<span class="summary-sig-arg">self</span>,
 531        <span class="summary-sig-arg">format</span>=<span class="summary-sig-default">0</span>,
 532        <span class="summary-sig-arg">nTracks</span>=<span class="summary-sig-default">1</span>,
 533        <span class="summary-sig-arg">division</span>=<span class="summary-sig-default">96</span>)</span><br />
 534      format: type of midi file in [1,2]
 535nTracks: number of tracks
 536division: timing division</td>
 537          <td align="right" valign="top">
 538            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.header">source&nbsp;code</a></span>
 539            
 540          </td>
 541        </tr>
 542      </table>
 543      
 544    </td>
 545  </tr>
 546<tr>
 547    <td width="15%" align="right" valign="top" class="summary">
 548      <span class="summary-type">&nbsp;</span>
 549    </td><td class="summary">
 550      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 551        <tr>
 552          <td><span class="summary-sig"><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#eof" class="summary-sig-name">eof</a>(<span class="summary-sig-arg">self</span>)</span><br />
 553      End of file.</td>
 554          <td align="right" valign="top">
 555            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.eof">source&nbsp;code</a></span>
 556            
 557          </td>
 558        </tr>
 559      </table>
 560      
 561    </td>
 562  </tr>
 563<tr>
 564    <td width="15%" align="right" valign="top" class="summary">
 565      <span class="summary-type">&nbsp;</span>
 566    </td><td class="summary">
 567      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 568        <tr>
 569          <td><span class="summary-sig"><a name="meta_event"></a><span class="summary-sig-name">meta_event</span>(<span class="summary-sig-arg">self</span>,
 570        <span class="summary-sig-arg">meta_type</span>,
 571        <span class="summary-sig-arg">data</span>)</span><br />
 572      Handles any undefined meta events</td>
 573          <td align="right" valign="top">
 574            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.meta_event">source&nbsp;code</a></span>
 575            
 576          </td>
 577        </tr>
 578      </table>
 579      
 580    </td>
 581  </tr>
 582<tr>
 583    <td width="15%" align="right" valign="top" class="summary">
 584      <span class="summary-type">&nbsp;</span>
 585    </td><td class="summary">
 586      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 587        <tr>
 588          <td><span class="summary-sig"><a name="start_of_track"></a><span class="summary-sig-name">start_of_track</span>(<span class="summary-sig-arg">self</span>,
 589        <span class="summary-sig-arg">n_track</span>=<span class="summary-sig-default">0</span>)</span><br />
 590      n_track: number of track</td>
 591          <td align="right" valign="top">
 592            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.start_of_track">source&nbsp;code</a></span>
 593            
 594          </td>
 595        </tr>
 596      </table>
 597      
 598    </td>
 599  </tr>
 600<tr>
 601    <td width="15%" align="right" valign="top" class="summary">
 602      <span class="summary-type">&nbsp;</span>
 603    </td><td class="summary">
 604      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 605        <tr>
 606          <td><span class="summary-sig"><a name="end_of_track"></a><span class="summary-sig-name">end_of_track</span>(<span class="summary-sig-arg">self</span>)</span><br />
 607      n_track: number of track</td>
 608          <td align="right" valign="top">
 609            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.end_of_track">source&nbsp;code</a></span>
 610            
 611          </td>
 612        </tr>
 613      </table>
 614      
 615    </td>
 616  </tr>
 617<tr>
 618    <td width="15%" align="right" valign="top" class="summary">
 619      <span class="summary-type">&nbsp;</span>
 620    </td><td class="summary">
 621      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 622        <tr>
 623          <td><span class="summary-sig"><a name="sequence_number"></a><span class="summary-sig-name">sequence_number</span>(<span class="summary-sig-arg">self</span>,
 624        <span class="summary-sig-arg">value</span>)</span><br />
 625      value: 0-16383</td>
 626          <td align="right" valign="top">
 627            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.sequence_number">source&nbsp;code</a></span>
 628            
 629          </td>
 630        </tr>
 631      </table>
 632      
 633    </td>
 634  </tr>
 635<tr>
 636    <td width="15%" align="right" valign="top" class="summary">
 637      <span class="summary-type">&nbsp;</span>
 638    </td><td class="summary">
 639      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 640        <tr>
 641          <td><span class="summary-sig"><a name="text"></a><span class="summary-sig-name">text</span>(<span class="summary-sig-arg">self</span>,
 642        <span class="summary-sig-arg">text</span>)</span><br />
 643      Text event
 644text: string</td>
 645          <td align="right" valign="top">
 646            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.text">source&nbsp;code</a></span>
 647            
 648          </td>
 649        </tr>
 650      </table>
 651      
 652    </td>
 653  </tr>
 654<tr>
 655    <td width="15%" align="right" valign="top" class="summary">
 656      <span class="summary-type">&nbsp;</span>
 657    </td><td class="summary">
 658      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 659        <tr>
 660          <td><span class="summary-sig"><a name="copyright"></a><span class="summary-sig-name">copyright</span>(<span class="summary-sig-arg">self</span>,
 661        <span class="summary-sig-arg">text</span>)</span><br />
 662      Copyright notice
 663text: string</td>
 664          <td align="right" valign="top">
 665            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.copyright">source&nbsp;code</a></span>
 666            
 667          </td>
 668        </tr>
 669      </table>
 670      
 671    </td>
 672  </tr>
 673<tr>
 674    <td width="15%" align="right" valign="top" class="summary">
 675      <span class="summary-type">&nbsp;</span>
 676    </td><td class="summary">
 677      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 678        <tr>
 679          <td><span class="summary-sig"><a name="sequence_name"></a><span class="summary-sig-name">sequence_name</span>(<span class="summary-sig-arg">self</span>,
 680        <span class="summary-sig-arg">text</span>)</span><br />
 681      Sequence/track name
 682text: string</td>
 683          <td align="right" valign="top">
 684            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.sequence_name">source&nbsp;code</a></span>
 685            
 686          </td>
 687        </tr>
 688      </table>
 689      
 690    </td>
 691  </tr>
 692<tr>
 693    <td width="15%" align="right" valign="top" class="summary">
 694      <span class="summary-type">&nbsp;</span>
 695    </td><td class="summary">
 696      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 697        <tr>
 698          <td><span class="summary-sig"><a name="instrument_name"></a><span class="summary-sig-name">instrument_name</span>(<span class="summary-sig-arg">self</span>,
 699        <span class="summary-sig-arg">text</span>)</span><br />
 700      text: string</td>
 701          <td align="right" valign="top">
 702            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.instrument_name">source&nbsp;code</a></span>
 703            
 704          </td>
 705        </tr>
 706      </table>
 707      
 708    </td>
 709  </tr>
 710<tr>
 711    <td width="15%" align="right" valign="top" class="summary">
 712      <span class="summary-type">&nbsp;</span>
 713    </td><td class="summary">
 714      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 715        <tr>
 716          <td><span class="summary-sig"><a name="lyric"></a><span class="summary-sig-name">lyric</span>(<span class="summary-sig-arg">self</span>,
 717        <span class="summary-sig-arg">text</span>)</span><br />
 718      text: string</td>
 719          <td align="right" valign="top">
 720            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.lyric">source&nbsp;code</a></span>
 721            
 722          </td>
 723        </tr>
 724      </table>
 725      
 726    </td>
 727  </tr>
 728<tr>
 729    <td width="15%" align="right" valign="top" class="summary">
 730      <span class="summary-type">&nbsp;</span>
 731    </td><td class="summary">
 732      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 733        <tr>
 734          <td><span class="summary-sig"><a name="marker"></a><span class="summary-sig-name">marker</span>(<span class="summary-sig-arg">self</span>,
 735        <span class="summary-sig-arg">text</span>)</span><br />
 736      text: string</td>
 737          <td align="right" valign="top">
 738            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.marker">source&nbsp;code</a></span>
 739            
 740          </td>
 741        </tr>
 742      </table>
 743      
 744    </td>
 745  </tr>
 746<tr>
 747    <td width="15%" align="right" valign="top" class="summary">
 748      <span class="summary-type">&nbsp;</span>
 749    </td><td class="summary">
 750      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 751        <tr>
 752          <td><span class="summary-sig"><a name="cuepoint"></a><span class="summary-sig-name">cuepoint</span>(<span class="summary-sig-arg">self</span>,
 753        <span class="summary-sig-arg">text</span>)</span><br />
 754      text: string</td>
 755          <td align="right" valign="top">
 756            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.cuepoint">source&nbsp;code</a></span>
 757            
 758          </td>
 759        </tr>
 760      </table>
 761      
 762    </td>
 763  </tr>
 764<tr>
 765    <td width="15%" align="right" valign="top" class="summary">
 766      <span class="summary-type">&nbsp;</span>
 767    </td><td class="summary">
 768      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 769        <tr>
 770          <td><span class="summary-sig"><a name="midi_ch_prefix"></a><span class="summary-sig-name">midi_ch_prefix</span>(<span class="summary-sig-arg">self</span>,
 771        <span class="summary-sig-arg">channel</span>)</span><br />
 772      channel: midi channel for subsequent data (deprecated in the spec)</td>
 773          <td align="right" valign="top">
 774            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.midi_ch_prefix">source&nbsp;code</a></span>
 775            
 776          </td>
 777        </tr>
 778      </table>
 779      
 780    </td>
 781  </tr>
 782<tr>
 783    <td width="15%" align="right" valign="top" class="summary">
 784      <span class="summary-type">&nbsp;</span>
 785    </td><td class="summary">
 786      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 787        <tr>
 788          <td><span class="summary-sig"><a name="midi_port"></a><span class="summary-sig-name">midi_port</span>(<span class="summary-sig-arg">self</span>,
 789        <span class="summary-sig-arg">value</span>)</span><br />
 790      value: Midi port (deprecated in the spec)</td>
 791          <td align="right" valign="top">
 792            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.midi_port">source&nbsp;code</a></span>
 793            
 794          </td>
 795        </tr>
 796      </table>
 797      
 798    </td>
 799  </tr>
 800<tr>
 801    <td width="15%" align="right" valign="top" class="summary">
 802      <span class="summary-type">&nbsp;</span>
 803    </td><td class="summary">
 804      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 805        <tr>
 806          <td><span class="summary-sig"><a name="tempo"></a><span class="summary-sig-name">tempo</span>(<span class="summary-sig-arg">self</span>,
 807        <span class="summary-sig-arg">value</span>)</span><br />
 808      value: 0-2097151
 809tempo in us/quarternote
 810(to calculate value from bpm: int(60,000,000.00 / BPM))</td>
 811          <td align="right" valign="top">
 812            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.tempo">source&nbsp;code</a></span>
 813            
 814          </td>
 815        </tr>
 816      </table>
 817      
 818    </td>
 819  </tr>
 820<tr>
 821    <td width="15%" align="right" valign="top" class="summary">
 822      <span class="summary-type">&nbsp;</span>
 823    </td><td class="summary">
 824      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 825        <tr>
 826          <td><span class="summary-sig"><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#smtp_offset" class="summary-sig-name">smtp_offset</a>(<span class="summary-sig-arg">self</span>,
 827        <span class="summary-sig-arg">hour</span>,
 828        <span class="summary-sig-arg">minute</span>,
 829        <span class="summary-sig-arg">second</span>,
 830        <span class="summary-sig-arg">frame</span>,
 831        <span class="summary-sig-arg">framePart</span>)</span><br />
 832      hour,
 833minute,
 834second: 3 bytes specifying the hour (0-23), minutes (0-59) and 
 835        seconds (0-59), respectively.</td>
 836          <td align="right" valign="top">
 837            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.smtp_offset">source&nbsp;code</a></span>
 838            
 839          </td>
 840        </tr>
 841      </table>
 842      
 843    </td>
 844  </tr>
 845<tr>
 846    <td width="15%" align="right" valign="top" class="summary">
 847      <span class="summary-type">&nbsp;</span>
 848    </td><td class="summary">
 849      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 850        <tr>
 851          <td><span class="summary-sig"><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#time_signature" class="summary-sig-name">time_signature</a>(<span class="summary-sig-arg">self</span>,
 852        <span class="summary-sig-arg">nn</span>,
 853        <span class="summary-sig-arg">dd</span>,
 854        <span class="summary-sig-arg">cc</span>,
 855        <span class="summary-sig-arg">bb</span>)</span><br />
 856      nn: Numerator of the signature as notated on sheet music
 857dd: Denominator of the signature as notated on sheet music
 858    The denominator is a negative power of 2: 2 = quarter 
 859    note, 3 = eighth, etc.</td>
 860          <td align="right" valign="top">
 861            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.time_signature">source&nbsp;code</a></span>
 862            
 863          </td>
 864        </tr>
 865      </table>
 866      
 867    </td>
 868  </tr>
 869<tr>
 870    <td width="15%" align="right" valign="top" class="summary">
 871      <span class="summary-type">&nbsp;</span>
 872    </td><td class="summary">
 873      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 874        <tr>
 875          <td><span class="summary-sig"><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#key_signature" class="summary-sig-name">key_signature</a>(<span class="summary-sig-arg">self</span>,
 876        <span class="summary-sig-arg">sf</span>,
 877        <span class="summary-sig-arg">mi</span>)</span><br />
 878      (+ve) that identifies the key signature (-7 = 7 flats, -1
 879= 1 flat, 0 = key of C, 1 = 1 sharp, etc).</td>
 880          <td align="right" valign="top">
 881            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.key_signature">source&nbsp;code</a></span>
 882            
 883          </td>
 884        </tr>
 885      </table>
 886      
 887    </td>
 888  </tr>
 889<tr>
 890    <td width="15%" align="right" valign="top" class="summary">
 891      <span class="summary-type">&nbsp;</span>
 892    </td><td class="summary">
 893      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 894        <tr>
 895          <td><span class="summary-sig"><a name="sequencer_specific"></a><span class="summary-sig-name">sequencer_specific</span>(<span class="summary-sig-arg">self</span>,
 896        <span class="summary-sig-arg">data</span>)</span><br />
 897      data: The data as byte values</td>
 898          <td align="right" valign="top">
 899            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.sequencer_specific">source&nbsp;code</a></span>
 900            
 901          </td>
 902        </tr>
 903      </table>
 904      
 905    </td>
 906  </tr>
 907<tr>
 908    <td width="15%" align="right" valign="top" class="summary">
 909      <span class="summary-type">&nbsp;</span>
 910    </td><td class="summary">
 911      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 912        <tr>
 913          <td><span class="summary-sig"><a name="timing_clock"></a><span class="summary-sig-name">timing_clock</span>(<span class="summary-sig-arg">self</span>)</span><br />
 914      No values passed</td>
 915          <td align="right" valign="top">
 916            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.timing_clock">source&nbsp;code</a></span>
 917            
 918          </td>
 919        </tr>
 920      </table>
 921      
 922    </td>
 923  </tr>
 924<tr>
 925    <td width="15%" align="right" valign="top" class="summary">
 926      <span class="summary-type">&nbsp;</span>
 927    </td><td class="summary">
 928      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 929        <tr>
 930          <td><span class="summary-sig"><a name="song_start"></a><span class="summary-sig-name">song_start</span>(<span class="summary-sig-arg">self</span>)</span><br />
 931      No values passed</td>
 932          <td align="right" valign="top">
 933            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.song_start">source&nbsp;code</a></span>
 934            
 935          </td>
 936        </tr>
 937      </table>
 938      
 939    </td>
 940  </tr>
 941<tr>
 942    <td width="15%" align="right" valign="top" class="summary">
 943      <span class="summary-type">&nbsp;</span>
 944    </td><td class="summary">
 945      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 946        <tr>
 947          <td><span class="summary-sig"><a name="song_stop"></a><span class="summary-sig-name">song_stop</span>(<span class="summary-sig-arg">self</span>)</span><br />
 948      No values passed</td>
 949          <td align="right" valign="top">
 950            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.song_stop">source&nbsp;code</a></span>
 951            
 952          </td>
 953        </tr>
 954      </table>
 955      
 956    </td>
 957  </tr>
 958<tr>
 959    <td width="15%" align="right" valign="top" class="summary">
 960      <span class="summary-type">&nbsp;</span>
 961    </td><td class="summary">
 962      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 963        <tr>
 964          <td><span class="summary-sig"><a name="song_continue"></a><span class="summary-sig-name">song_continue</span>(<span class="summary-sig-arg">self</span>)</span><br />
 965      No values passed</td>
 966          <td align="right" valign="top">
 967            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.song_continue">source&nbsp;code</a></span>
 968            
 969          </td>
 970        </tr>
 971      </table>
 972      
 973    </td>
 974  </tr>
 975<tr>
 976    <td width="15%" align="right" valign="top" class="summary">
 977      <span class="summary-type">&nbsp;</span>
 978    </td><td class="summary">
 979      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 980        <tr>
 981          <td><span class="summary-sig"><a name="active_sensing"></a><span class="summary-sig-name">active_sensing</span>(<span class="summary-sig-arg">self</span>)</span><br />
 982      No values passed</td>
 983          <td align="right" valign="top">
 984            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.active_sensing">source&nbsp;code</a></span>
 985            
 986          </td>
 987        </tr>
 988      </table>
 989      
 990    </td>
 991  </tr>
 992<tr>
 993    <td width="15%" align="right" valign="top" class="summary">
 994      <span class="summary-type">&nbsp;</span>
 995    </td><td class="summary">
 996      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 997        <tr>
 998          <td><span class="summary-sig"><a name="system_reset"></a><span class="summary-sig-name">system_reset</span>(<span class="summary-sig-arg">self</span>)</span><br />
 999      No values passed</td>
1000          <td align="right" valign="top">
1001            <span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.system_reset">source&nbsp;code</a></span>
1002            
1003          </td>
1004        </tr>
1005      </table>
1006      
1007    </td>
1008  </tr>
1009</table>
1010<!-- ==================== METHOD DETAILS ==================== -->
1011<a name="section-MethodDetails"></a>
1012<table class="details" border="1" cellpadding="3"
1013       cellspacing="0" width="100%" bgcolor="white">
1014<tr bgcolor="#70b0f0" class="table-header">
1015  <td colspan="2" class="table-header">
1016    <table border="0" cellpadding="0" cellspacing="0" width="100%">
1017      <tr valign="top">
1018        <td align="left"><span class="table-header">Method Details</span></td>
1019        <td align="right" valign="top"
1020         ><span class="options">[<a href="#section-MethodDetails"
1021         class="privatelink" onclick="toggle_private();"
1022         >hide private</a>]</span></td>
1023      </tr>
1024    </table>
1025  </td>
1026</tr>
1027</table>
1028<a name="eof"></a>
1029<div>
1030<table class="details" border="1" cellpadding="3"
1031       cellspacing="0" width="100%" bgcolor="white">
1032<tr><td>
1033  <table width="100%" cellpadding="0" cellspacing="0" border="0">
1034  <tr valign="top"><td>
1035  <h3 class="epydoc"><span class="sig"><span class="sig-name">eof</span>(<span class="sig-arg">self</span>)</span>
1036  </h3>
1037  </td><td align="right" valign="top"
1038    ><span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.eof">source&nbsp;code</a></span>&nbsp;
1039    </td>
1040  </tr></table>
1041  
1042  End of file. No more events to be processed.
1043  <dl class="fields">
1044  </dl>
1045</td></tr></table>
1046</div>
1047<a name="smtp_offset"></a>
1048<div>
1049<table class="details" border="1" cellpadding="3"
1050       cellspacing="0" width="100%" bgcolor="white">
1051<tr><td>
1052  <table width="100%" cellpadding="0" cellspacing="0" border="0">
1053  <tr valign="top"><td>
1054  <h3 class="epydoc"><span class="sig"><span class="sig-name">smtp_offset</span>(<span class="sig-arg">self</span>,
1055        <span class="sig-arg">hour</span>,
1056        <span class="sig-arg">minute</span>,
1057        <span class="sig-arg">second</span>,
1058        <span class="sig-arg">frame</span>,
1059        <span class="sig-arg">framePart</span>)</span>
1060  </h3>
1061  </td><td align="right" valign="top"
1062    ><span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.smtp_offset">source&nbsp;code</a></span>&nbsp;
1063    </td>
1064  </tr></table>
1065  
1066  <pre class="literalblock">
1067
1068hour,
1069minute,
1070second: 3 bytes specifying the hour (0-23), minutes (0-59) and 
1071        seconds (0-59), respectively. The hour should be 
1072        encoded with the SMPTE format, just as it is in MIDI 
1073        Time Code.
1074frame: A byte specifying the number of frames per second (one 
1075       of : 24, 25, 29, 30).
1076framePart: A byte specifying the number of fractional frames, 
1077           in 100ths of a frame (even in SMPTE-based tracks 
1078           using a different frame subdivision, defined in the 
1079           MThd chunk).
1080
1081</pre>
1082  <dl class="fields">
1083  </dl>
1084</td></tr></table>
1085</div>
1086<a name="time_signature"></a>
1087<div>
1088<table class="details" border="1" cellpadding="3"
1089       cellspacing="0" width="100%" bgcolor="white">
1090<tr><td>
1091  <table width="100%" cellpadding="0" cellspacing="0" border="0">
1092  <tr valign="top"><td>
1093  <h3 class="epydoc"><span class="sig"><span class="sig-name">time_signature</span>(<span class="sig-arg">self</span>,
1094        <span class="sig-arg">nn</span>,
1095        <span class="sig-arg">dd</span>,
1096        <span class="sig-arg">cc</span>,
1097        <span class="sig-arg">bb</span>)</span>
1098  </h3>
1099  </td><td align="right" valign="top"
1100    ><span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.time_signature">source&nbsp;code</a></span>&nbsp;
1101    </td>
1102  </tr></table>
1103  
1104  <pre class="literalblock">
1105
1106nn: Numerator of the signature as notated on sheet music
1107dd: Denominator of the signature as notated on sheet music
1108    The denominator is a negative power of 2: 2 = quarter 
1109    note, 3 = eighth, etc.
1110cc: The number of MIDI clocks in a metronome click
1111bb: The number of notated 32nd notes in a MIDI quarter note 
1112    (24 MIDI clocks)        
1113
1114</pre>
1115  <dl class="fields">
1116  </dl>
1117</td></tr></table>
1118</div>
1119<a name="key_signature"></a>
1120<div>
1121<table class="details" border="1" cellpadding="3"
1122       cellspacing="0" width="100%" bgcolor="white">
1123<tr><td>
1124  <table width="100%" cellpadding="0" cellspacing="0" border="0">
1125  <tr valign="top"><td>
1126  <h3 class="epydoc"><span class="sig"><span class="sig-name">key_signature</span>(<span class="sig-arg">self</span>,
1127        <span class="sig-arg">sf</span>,
1128        <span class="sig-arg">mi</span>)</span>
1129  </h3>
1130  </td><td align="right" valign="top"
1131    ><span class="codelink"><a href="echonest.support.midi.MidiOutStream-pysrc.html#MidiOutStream.key_signature">source&nbsp;code</a></span>&nbsp;
1132    </td>
1133  </tr></table>
1134  
1135  <dl class="rst-docutils">
1136<dt>sf: is a byte specifying the number of flats (-ve) or sharps</dt>
1137<dd>(+ve) that identifies the key signature (-7 = 7 flats, -1
1138= 1 flat, 0 = key of C, 1 = 1 sharp, etc).</dd>
1139</dl>
1140<p>mi: is a byte specifying a major (0) or minor (1) key.</p>
1141  <dl class="fields">
1142  </dl>
1143</td></tr></table>
1144</div>
1145<br />
1146<!-- ==================== NAVIGATION BAR ==================== -->
1147<table class="navbar" border="0" width="100%" cellpadding="0"
1148       bgcolor="#a0c0ff" cellspacing="0">
1149  <tr valign="middle">
1150
1151  <!-- Tree link -->
1152      <th>&nbsp;&nbsp;&nbsp;<a
1153        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
1154
1155  <!-- Index link -->
1156      <th>&nbsp;&nbsp;&nbsp;<a
1157        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
1158
1159  <!-- Help link -->
1160      <th>&nbsp;&nbsp;&nbsp;<a
1161        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
1162
1163  <!-- Project homepage -->
1164      <th class="navbar" align="right" width="100%">
1165        <table border="0" cellpadding="0" cellspacing="0">
1166          <tr><th class="navbar" align="center"
1167            ><a class="navbar" target="_top" href="http://code.google.com/p/echo-nest-remix/">Project Homepage</a></th>
1168          </tr></table></th>
1169  </tr>
1170</table>
1171<table border="0" cellpadding="0" cellspacing="0" width="100%%">
1172  <tr>
1173    <td align="left" class="footer">
1174    Generated by Epydoc 3.0.1 on Wed Sep  1 16:08:58 2010
1175    </td>
1176    <td align="right" class="footer">
1177      <a target="mainFrame" href="http://epydoc.sourceforge.net"
1178        >http://epydoc.sourceforge.net</a>
1179    </td>
1180  </tr>
1181</table>
1182
1183<script type="text/javascript">
1184  <!--
1185  // Private objects are initially displayed (because if
1186  // javascript is turned off then we want them to be
1187  // visible); but by default, we want to hide them.  So hide
1188  // them unless we have a cookie that says to show them.
1189  checkCookie();
1190  // -->
1191</script>
1192</body>
1193</html>