Hi everyone,
I'm a new Bela user working with the Bela Gem Stereo, and I've run into what seems like a significant workflow and documentation issue regarding analog input reading in Pure Data.
The official Bela documentation suggests using [adc~] to read analog inputs in Pure Data, stating that [adc~ 3] corresponds to A0. However on the Gem Stereo [adc~] does not work correctly for analog inputs; the values returned are nonsensical and do not respond to changes in the physical sensor (in my case, a simple 10kΩ potentiometer with verified correct wiring: 0V and 3.3V confirmed at the extremes with a multimeter).
After some trial and error, I discovered that [bela/analog-in~] works correctly and returns the expected values between 0 and 1. Note that with this object the pin numbering is different: A0 corresponds to inlet 0 (not 3 as with [adc~]).
Using [bela/analog-in~] introduces a serious problem for users who develop patches on a PC (standard Pure Data) before uploading to Bela. The object is not recognized in desktop Pure Data, so no outlets are created, making it impossible to wire up the patch correctly before uploading.
The only workaround I found is replacing a placeholder object with [bela/analog-in~] while keeping the connection structure intact. This is functional but quite cumbersome for something as basic as reading an analog sensor.
Is this a known issue with the Gem Stereo specifically? Is there a recommended workflow for developing Pure Data patches on PC that use Bela-specific objects? Any clarification would be greatly appreciated.
Thanks!