hello,
I don't know if this is the way the gui slider is supposed to be used. I mean it is ok to modify a class slider from ofApp, but not the other way around.
maybe you should declare a listener that updates a Wave::speed variable every time the slider is updated in ofApp