You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import("stdfaust.lib");
// VCO 1
vco1_gain = vslider("vco1_gain", 0, 0, 1, 0.01);
vco1(freq) = os.m_osccos(freq) * vco1_gain;
// VCO 2
vco2_gain = vslider("vco2_gain", 0, 0, 1, 0.01);
vco2(freq) = os.phasor(0.2, freq) * vco2_gain;
// Control voltage input
cv = hslider("pitch", 0, -5, 5, 0.01);
// Convert CV to frequency (1V/Octave)
cv_to_freq(cv) = 440.0 * pow(2, cv); // 440Hz is the frequency for A4
process = cv : cv_to_freq : qu.quantize(440, qu.penta) <: (vco1 + vco2);
And, this is the erbui file:
control vco1_gain Pot {
position 3hp, 34mm
style rogan, 2ps
label "GAIN"
}
control vco2_gain Pot {
position 9hp, 34mm
style rogan, 2ps
label "GAIN"
}
control pitch CvIn {
position 3hp, 111mm
style thonk.pj398sm.knurled
label "1V/OCT"
}
control audio_out AudioOut {
position 9hp, 111mm
style thonk.pj398sm.knurled
label "OUT"
}
When I load the module, then VCV will crash. I tried removing the quantizer like this below, then it will work. The problem is I need to use the quantizer library.
process = cv : cv_to_freq <: (vco1 + vco2);
Here's the full report when it crashes hope it helps. I'm not good to debug C++ code, maybe you can guide me how to debug it to get better hint about the issue. Thanks.
Okay. I managed to learn about attaching the debugger to VS Code. And, it throws this error. A progress, I got a meaningful error.
Warning: dsp_memory_manager::destroy: Potential memory leak.
Set a breakpoint to debug.
Rack(3277,0x1e2a7dc40) malloc: *** error for object 0x120800150: pointer being freed was not allocated
Rack(3277,0x1e2a7dc40) malloc: *** set a breakpoint in malloc_error_break to debug
Did you try to set a breakpoint on malloc_error_break? This should lead to where the error occurs, at least to know if it's somewhere into Faust code or actually unrelated.
Here's my Faust program
And, this is the erbui file:
When I load the module, then VCV will crash. I tried removing the quantizer like this below, then it will work. The problem is I need to use the quantizer library.
Here's the full report when it crashes hope it helps. I'm not good to debug C++ code, maybe you can guide me how to debug it to get better hint about the issue. Thanks.
The text was updated successfully, but these errors were encountered: