#NEWLINE# def calcWave( ) : #NEWLINE# #INDENT# dx = 0.05 #NEWLINE# dy = 0.01 #NEWLINE# amplitude = 100.0 #NEWLINE# global yoff #NEWLINE# yoff += dy #NEWLINE# xoff = yoff #NEWLINE# for i in range ( len ( yvalues ) ) : #NEWLINE# #INDENT# yvalues [ i ] = ( ( ( 2 * noise ( xoff ) ) - 1 ) * amplitude ) #NEWLINE# xoff += dx