Create a new Mephisto instance in your favourite LV2 plugin host and
paste in this simple program, adapted from Faust's documentation of the
waveform
Faust primitive:
import("stdfaust.lib");
triangleWave = waveform{0,0.5,1,0.5,0,-0.5,-1,-.5};
triangleOsc(f) = triangleWave,int(os.phasor(8,f)) : rdtable;
process = triangleOsc(440);
Mephisto should output a mono triangle wave at 440 hertz, albeit a very low quality one. It works in the Faust web IDE.
Mephisto outputs only silence.
This can be fixed by changing
instanceInitCDSPInstance(base_voice->instance, handle->srate);
on line
2272 of src/mephisto.c from the latest commit on master
(1201a260ef439873d6e2382c15b39ebc42c812e9
) to
initCDSPInstance(base_voice->instance, handle->srate);
.
Fixed by 07d6f48467d91dc9d4298c09c5698a633995ec61