Smooth_random

hello, i want the SmoothRandomGenerator to have an additional function.
there is Init(), Process() and SetFreq().
so i added NewFrom() to the smooth_random.h file.

void NewFrom(float new_from) {
from_ = new_from;
}

when compiling in arduino btw, i get the following error:
Compilation error: ‘class daisysp::SmoothRandomGenerator’ has no member named ‘NewFrom’

do i have to declare my function elsewhere too?

greetings and thanks

edit: found out i was editing the wrong source file.

as i have 2 DaisySp folders i chose the wrong one.
now it compiles without error.

Glad to hear that you were able to troubleshoot it!

1 Like