Difference between revisions of "CSC111 Sound Modification Exercises"
(Created page with "--~~~~ ---- <onlydft> <source lang="python"> # playing with an array of numbers # to practice using JES for playing with sounds # array = [2,3,4,1,10,1,-1,2,1] print( "len(so...") |
|||
Line 62: | Line 62: | ||
valueRight = array[j] | valueRight = array[j] | ||
valueLeft = array[i] | valueLeft = array[i] | ||
− | array[j] = valueRight + valueLeft | + | array[j] = valueRight + valueLeft/2 |
print( "echoed array = ", array ) | print( "echoed array = ", array ) |