Convert Processing code to Arduino???

yvalues = new float[10];

If you already declared a size for the array, you don't need/want "new", so delete this line