i embed your applet inside the same post for easy reference.
notice your applet seems correct for a stationary wave Longtinual Wave.
my applet has a problem, the points of compression is not the stationary nodes, for example.
i puzzled if i did it wrongly with no physics rules but mathematical ones ?