Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor compile issue in mopo/src/wave.h #26

Open
ColumPaget opened this issue Jan 9, 2018 · 0 comments
Open

minor compile issue in mopo/src/wave.h #26

ColumPaget opened this issue Jan 9, 2018 · 0 comments

Comments

@ColumPaget
Copy link

Hi,

cursynth failed to make on my system with the error:

In file included from mono_panner.cpp:20:0:
wave.h: In static member function 'static mopo::mopo_float mopo::Wave::whitenoise()':
wave.h:245:28: error: 'rand' was not declared in this scope
return (2.0 * rand()) / RAND_MAX - 1;
^
wave.h:245:33: error: 'RAND_MAX' was not declared in this scope
return (2.0 * rand()) / RAND_MAX - 1;

Adding the header <stdlib.h> to mopo/src/wave.h fixed this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant