Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cs190c:requiredfunc09 [2009/02/06 11:14]
seh
cs190c:requiredfunc09 [2009/02/09 09:39] (current)
Line 23: Line 23:
   * **WAVE_MIN** - The minimum allowable value of a single sample. ​ Set to -32768.   * **WAVE_MIN** - The minimum allowable value of a single sample. ​ Set to -32768.
   * **SAMPLE_FREQUENCY** - The sampling frequency, in Hertz. Set to 22050.   * **SAMPLE_FREQUENCY** - The sampling frequency, in Hertz. Set to 22050.
 +
  
  
Line 31: Line 32:
   array(l) - construct an array from a list   array(l) - construct an array from a list
   append(a,b) - append array b to a and return the result   append(a,b) - append array b to a and return the result
 +  xrange(stop) - similar to range, but faster
  
   max(a) # returns the largest element of a   max(a) # returns the largest element of a
 
cs190c/requiredfunc09.txt ยท Last modified: 2009/02/09 09:39 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki