PageRenderTime 1199ms CodeModel.GetById 749ms app.highlight 134ms RepoModel.GetById 165ms app.codeStats 1ms

/apidocs/echonest.support.midi.example_transpose_octave.Transposer-class.html

http://echo-nest-remix.googlecode.com/
HTML | 326 lines | 285 code | 20 blank | 21 comment | 0 complexity | 00c8ec6ce6b91194857dfdc92e275fe0 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.example_transpose_octave.Transposer</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.example_transpose_octave-module.html">Module&nbsp;example_transpose_octave</a> ::
 46        Class&nbsp;Transposer
 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.example_transpose_octave.Transposer-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 Transposer</h1><p class="nomargin-top"><span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer">source&nbsp;code</a></span></p>
 64<center>
 65
 66</center>
 67<hr />
 68Transposes all notes by 1 octave
 69
 70<!-- ==================== INSTANCE METHODS ==================== -->
 71<a name="section-InstanceMethods"></a>
 72<table class="summary" border="1" cellpadding="3"
 73       cellspacing="0" width="100%" bgcolor="white">
 74<tr bgcolor="#70b0f0" class="table-header">
 75  <td colspan="2" class="table-header">
 76    <table border="0" cellpadding="0" cellspacing="0" width="100%">
 77      <tr valign="top">
 78        <td align="left"><span class="table-header">Instance Methods</span></td>
 79        <td align="right" valign="top"
 80         ><span class="options">[<a href="#section-InstanceMethods"
 81         class="privatelink" onclick="toggle_private();"
 82         >hide private</a>]</span></td>
 83      </tr>
 84    </table>
 85  </td>
 86</tr>
 87<tr class="private">
 88    <td width="15%" align="right" valign="top" class="summary">
 89      <span class="summary-type">&nbsp;</span>
 90    </td><td class="summary">
 91      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 92        <tr>
 93          <td><span class="summary-sig"><a name="_transp"></a><span class="summary-sig-name">_transp</span>(<span class="summary-sig-arg">self</span>,
 94        <span class="summary-sig-arg">ch</span>,
 95        <span class="summary-sig-arg">note</span>)</span></td>
 96          <td align="right" valign="top">
 97            <span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer._transp">source&nbsp;code</a></span>
 98            
 99          </td>
100        </tr>
101      </table>
102      
103    </td>
104  </tr>
105<tr>
106    <td width="15%" align="right" valign="top" class="summary">
107      <span class="summary-type">&nbsp;</span>
108    </td><td class="summary">
109      <table width="100%" cellpadding="0" cellspacing="0" border="0">
110        <tr>
111          <td><span class="summary-sig"><a href="echonest.support.midi.example_transpose_octave.Transposer-class.html#note_on" class="summary-sig-name">note_on</a>(<span class="summary-sig-arg">self</span>,
112        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
113        <span class="summary-sig-arg">note</span>=<span class="summary-sig-default">0x40</span>,
114        <span class="summary-sig-arg">velocity</span>=<span class="summary-sig-default">0x40</span>)</span><br />
115      channel: 0-15
116note, velocity: 0-127</td>
117          <td align="right" valign="top">
118            <span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer.note_on">source&nbsp;code</a></span>
119            
120          </td>
121        </tr>
122      </table>
123      
124    </td>
125  </tr>
126<tr>
127    <td width="15%" align="right" valign="top" class="summary">
128      <span class="summary-type">&nbsp;</span>
129    </td><td class="summary">
130      <table width="100%" cellpadding="0" cellspacing="0" border="0">
131        <tr>
132          <td><span class="summary-sig"><a href="echonest.support.midi.example_transpose_octave.Transposer-class.html#note_off" class="summary-sig-name">note_off</a>(<span class="summary-sig-arg">self</span>,
133        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">0</span>,
134        <span class="summary-sig-arg">note</span>=<span class="summary-sig-default">0x40</span>,
135        <span class="summary-sig-arg">velocity</span>=<span class="summary-sig-default">0x40</span>)</span><br />
136      channel: 0-15
137note, velocity: 0-127</td>
138          <td align="right" valign="top">
139            <span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer.note_off">source&nbsp;code</a></span>
140            
141          </td>
142        </tr>
143      </table>
144      
145    </td>
146  </tr>
147  <tr>
148    <td colspan="2" class="summary">
149    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html">MidiOutFile.MidiOutFile</a></code></b>:
150      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#__init__">__init__</a></code>,
151      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#aftertouch">aftertouch</a></code>,
152      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#channel_pressure">channel_pressure</a></code>,
153      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#continuous_controller">continuous_controller</a></code>,
154      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#copyright">copyright</a></code>,
155      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#cuepoint">cuepoint</a></code>,
156      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#end_of_track">end_of_track</a></code>,
157      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#eof">eof</a></code>,
158      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#event_slice">event_slice</a></code>,
159      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#header">header</a></code>,
160      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#instrument_name">instrument_name</a></code>,
161      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#key_signature">key_signature</a></code>,
162      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#lyric">lyric</a></code>,
163      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#marker">marker</a></code>,
164      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#meta_event">meta_event</a></code>,
165      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#meta_slice">meta_slice</a></code>,
166      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#midi_ch_prefix">midi_ch_prefix</a></code>,
167      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#midi_port">midi_port</a></code>,
168      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#midi_time_code">midi_time_code</a></code>,
169      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#patch_change">patch_change</a></code>,
170      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#pitch_bend">pitch_bend</a></code>,
171      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#sequence_name">sequence_name</a></code>,
172      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#sequence_number">sequence_number</a></code>,
173      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#sequencer_specific">sequencer_specific</a></code>,
174      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#smtp_offset">smtp_offset</a></code>,
175      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#song_position_pointer">song_position_pointer</a></code>,
176      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#song_select">song_select</a></code>,
177      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#start_of_track">start_of_track</a></code>,
178      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#system_exclusive">system_exclusive</a></code>,
179      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#tempo">tempo</a></code>,
180      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#text">text</a></code>,
181      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#time_signature">time_signature</a></code>,
182      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#tuning_request">tuning_request</a></code>,
183      <code><a href="echonest.support.midi.MidiOutFile.MidiOutFile-class.html#write">write</a></code>
184      </p>
185    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html">MidiOutStream.MidiOutStream</a></code></b>:
186      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#abs_time">abs_time</a></code>,
187      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#active_sensing">active_sensing</a></code>,
188      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#channel_message">channel_message</a></code>,
189      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#get_current_track">get_current_track</a></code>,
190      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#get_run_stat">get_run_stat</a></code>,
191      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#rel_time">rel_time</a></code>,
192      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#reset_run_stat">reset_run_stat</a></code>,
193      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#reset_time">reset_time</a></code>,
194      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#set_current_track">set_current_track</a></code>,
195      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#set_run_stat">set_run_stat</a></code>,
196      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#song_continue">song_continue</a></code>,
197      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#song_start">song_start</a></code>,
198      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#song_stop">song_stop</a></code>,
199      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#system_reset">system_reset</a></code>,
200      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#timing_clock">timing_clock</a></code>,
201      <code><a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#update_time">update_time</a></code>
202      </p>
203    </td>
204  </tr>
205</table>
206<!-- ==================== METHOD DETAILS ==================== -->
207<a name="section-MethodDetails"></a>
208<table class="details" border="1" cellpadding="3"
209       cellspacing="0" width="100%" bgcolor="white">
210<tr bgcolor="#70b0f0" class="table-header">
211  <td colspan="2" class="table-header">
212    <table border="0" cellpadding="0" cellspacing="0" width="100%">
213      <tr valign="top">
214        <td align="left"><span class="table-header">Method Details</span></td>
215        <td align="right" valign="top"
216         ><span class="options">[<a href="#section-MethodDetails"
217         class="privatelink" onclick="toggle_private();"
218         >hide private</a>]</span></td>
219      </tr>
220    </table>
221  </td>
222</tr>
223</table>
224<a name="note_on"></a>
225<div>
226<table class="details" border="1" cellpadding="3"
227       cellspacing="0" width="100%" bgcolor="white">
228<tr><td>
229  <table width="100%" cellpadding="0" cellspacing="0" border="0">
230  <tr valign="top"><td>
231  <h3 class="epydoc"><span class="sig"><span class="sig-name">note_on</span>(<span class="sig-arg">self</span>,
232        <span class="sig-arg">channel</span>=<span class="sig-default">0</span>,
233        <span class="sig-arg">note</span>=<span class="sig-default">0x40</span>,
234        <span class="sig-arg">velocity</span>=<span class="sig-default">0x40</span>)</span>
235  </h3>
236  </td><td align="right" valign="top"
237    ><span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer.note_on">source&nbsp;code</a></span>&nbsp;
238    </td>
239  </tr></table>
240  
241  channel: 0-15
242note, velocity: 0-127
243  <dl class="fields">
244    <dt>Overrides:
245        <a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#note_on">MidiOutStream.MidiOutStream.note_on</a>
246        <dd><em class="note">(inherited documentation)</em></dd>
247    </dt>
248  </dl>
249</td></tr></table>
250</div>
251<a name="note_off"></a>
252<div>
253<table class="details" border="1" cellpadding="3"
254       cellspacing="0" width="100%" bgcolor="white">
255<tr><td>
256  <table width="100%" cellpadding="0" cellspacing="0" border="0">
257  <tr valign="top"><td>
258  <h3 class="epydoc"><span class="sig"><span class="sig-name">note_off</span>(<span class="sig-arg">self</span>,
259        <span class="sig-arg">channel</span>=<span class="sig-default">0</span>,
260        <span class="sig-arg">note</span>=<span class="sig-default">0x40</span>,
261        <span class="sig-arg">velocity</span>=<span class="sig-default">0x40</span>)</span>
262  </h3>
263  </td><td align="right" valign="top"
264    ><span class="codelink"><a href="echonest.support.midi.example_transpose_octave-pysrc.html#Transposer.note_off">source&nbsp;code</a></span>&nbsp;
265    </td>
266  </tr></table>
267  
268  channel: 0-15
269note, velocity: 0-127
270  <dl class="fields">
271    <dt>Overrides:
272        <a href="echonest.support.midi.MidiOutStream.MidiOutStream-class.html#note_off">MidiOutStream.MidiOutStream.note_off</a>
273        <dd><em class="note">(inherited documentation)</em></dd>
274    </dt>
275  </dl>
276</td></tr></table>
277</div>
278<br />
279<!-- ==================== NAVIGATION BAR ==================== -->
280<table class="navbar" border="0" width="100%" cellpadding="0"
281       bgcolor="#a0c0ff" cellspacing="0">
282  <tr valign="middle">
283
284  <!-- Tree link -->
285      <th>&nbsp;&nbsp;&nbsp;<a
286        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
287
288  <!-- Index link -->
289      <th>&nbsp;&nbsp;&nbsp;<a
290        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
291
292  <!-- Help link -->
293      <th>&nbsp;&nbsp;&nbsp;<a
294        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
295
296  <!-- Project homepage -->
297      <th class="navbar" align="right" width="100%">
298        <table border="0" cellpadding="0" cellspacing="0">
299          <tr><th class="navbar" align="center"
300            ><a class="navbar" target="_top" href="http://code.google.com/p/echo-nest-remix/">Project Homepage</a></th>
301          </tr></table></th>
302  </tr>
303</table>
304<table border="0" cellpadding="0" cellspacing="0" width="100%%">
305  <tr>
306    <td align="left" class="footer">
307    Generated by Epydoc 3.0.1 on Wed Sep  1 16:08:59 2010
308    </td>
309    <td align="right" class="footer">
310      <a target="mainFrame" href="http://epydoc.sourceforge.net"
311        >http://epydoc.sourceforge.net</a>
312    </td>
313  </tr>
314</table>
315
316<script type="text/javascript">
317  <!--
318  // Private objects are initially displayed (because if
319  // javascript is turned off then we want them to be
320  // visible); but by default, we want to hide them.  So hide
321  // them unless we have a cookie that says to show them.
322  checkCookie();
323  // -->
324</script>
325</body>
326</html>