code_junkie

Mathematical analysis of a sound sample (as an array of numbers)

Nov 10th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. for (i=lower=0;i< N*(X/100); lower++)
  2. i+=count[lower];
  3. //repeat in other direction for upper
  4.  
  5. A[i] = 255*(A[i]-lower)/(upper-lower)-128
  6.  
  7. x[n] = A*sin(f*n + phi) + B + N[n]
  8.  
  9. y[n] = median3(x[n])
Add Comment
Please, Sign In to add comment