I am using this granular patch a lot on my Pepper:
https://github.com/yannseznec/ys.granularPepper

For playing back samples it works great (press button 1 to load a random sample from the folder).

However I am getting some odd behaviour when I try to record audio. Button 3 is currently mapped to record a sample into the buffer. Here is what seems to happen consistently:

  • If I power on the module without connecting over to a computer via USB, pressing the button does not record the audio properly.
  • If I then connect via USB and open up the GUI, I can see (through my print messages) that on each press the button is being triggered five or six times, with underruns detected each time. That explains why the recording isn't happening, of course.
  • If I stop the patch in the browser, and then re-launch the patch immediately (without restarting power), the button works perfectly.
  • I can then disconnect the USB and it continues to work perfectly.

So my conclusion there is something strange happening on startup which is fixed by manually restarting the patch in the GUI.

Any thoughts? If not, my next steps will be to erase the project and start a new project instead, and failing that perhaps re-install the Bela OS entirely.

oh, right after I posted this I noticed that my Bela image is 0.3.8b (though confusingly it also says "Core code: Last updated on '4 Apr 2024 17:39:38", so I'm not entirely sure what version of the software this is. Perhaps I should try to just update the image to the latest 0.3.8h

Are you using a block size different from 16? If so it may be that the program running at boot is using the default 16 one while the one running in the IDE uses a larger one. To fix this you need to ensure the program running at boot has the same settings as the IDE:

  • set program running at boot to •none•
  • set program running at boot back to your program

    giuliomoro ah that is probably it. to make this patch run well originally I brought the block size up considerably. and the problem with the button pressing definitely feels like a performance issue, which would make sense. I'll give it a try.

    yup that seems to have done the trick, thanks!