can you try running this code?
#include <Bela.h>
#include <cmath>
float gFrequency = 440.0;
float gPhase;
float gInverseSampleRate;
bool setup(BelaContext *context, void *userData)
{
if(context->analogSampleRate != context->audioSampleRate / 2)
{
fprintf(stderr, "Analog sample rate has to be 22050Hz.\n");
return false;
}
gInverseSampleRate = 1.0 / context->audioSampleRate;
gPhase = 0.0;
return true;
}
void render(BelaContext *context, void *userData)
{
for(unsigned int n = 0; n < context->audioFrames; n++) {
float out = 0.8f * sinf(gPhase);
gPhase += 2.0f * (float)M_PI * gFrequency * gInverseSampleRate;
if(gPhase > M_PI)
gPhase -= 2.0f * (float)M_PI;
for(unsigned int channel = 0; channel < context->audioOutChannels; channel++) {
audioWrite(context, n, channel, out);
}
for(unsigned int channel = 0; channel < context->analogOutChannels; channel++) {
analogWriteOnce(context, n / 2, channel, 0.5 * out);
}
}
}
void cleanup(BelaContext *context, void *userData)
{}
this should produce outputs on all the capelet's channels . Set the options in the IDE to enable the capelet on all channels.