void waveFunct(float _amp, float _sampleRate){
glBegin(GL_POINTS);
_amp = 100;
_sampleRate= mouseX;
for (int i =0; i< 360; i++){
float x = i; // this is the x thats used
float y = _amp * d_sin((x/_sampleRate)*360 ); // this doesn't return x this gives a ratio of how often it gets sampled
glVertex2f((x+200),(y+200));
}
glEnd();
}