Pyo + Bela

31 views
Skip to first unread message

Garth Paine

unread,
Feb 1, 2024, 5:05:46 PM2/1/24
to pyo-discuss
Hi everyone

I have been trying to get Pro to run on a BeagleBoard Black with a Bela Cape. it has taken me a long time to get some sound but yesterday I finally made sound sound after carefully following these instructions


My BBB does not have Bela installed onboard - it is running from an SD card 

I have a couple of questions:
1.  I don't seem to be able to install wxPython - so no decent GUI can be built
2. I am unsure how to access an API for Pro on BBB?  do I just work in nano or pico?  that's seems limiting and does not include autocomplete etc

Thanks in advance for your guidance, Garth

Aaron Krister Johnson

unread,
Feb 2, 2024, 11:59:36 AM2/2/24
to pyo-d...@googlegroups.com
For starters, the pyo-bela scripts are old and need some love (someone should take them over and update them to the latest versions of all the things).
Last I looked at them, they seemed abandoned, and hopelessly outdated for versions of Python, etc.

I wouldn't really go for a GUI situation in Bela, regardless: that's not what it's really targeted to do. I suppose it could be done, but my understanding
of using it is to build input/output schemes that are more leveraging the analog/digital ins/outs for interactive projects. Even MIDI is someone discouraged
for Bela! (full disclosure: I've used Bela only for MIDI, b/c I never got around to building a project with the given I/O pins...so, I've controlled it with things
like a Novation LaunchControl, MIDI keyboard, etc.)

Although `pyo` is great, I consider the scripts for using it on Bela more a proof-of-concept. Maybe Olivier himself would agree? IIRC, it's a bit more CPU hungry
than some of the other framework choices to use on Bela (as well as seemingly abandoned...?) due to the having to roll-in a whole Python interpreter.
It's not a good fit for the low-resource and hard-realtime capabilities profile of Bela. On Bela, I've had the best luck with _certain_ (not all) csound orchestras,
and basic C/C++ programs that just use the raw Bela API as documented...as always,if you try to do too much in any of the frameworks
(PD/Supercollider, too)...you're going to be disappointed with how it performs vs. a typical modern laptop. Even the PD examples given aren't really GUIs:
you might write them with a GUI on your laptop, but they are meant to be "frozen" into an audio graph and controlled via other means once on the Bela.

Side note, since it was mentioned: I might be biased, but I use `nano` all day at work, and am one of the most prolific coders at my company.
YMMV, but I see no issues with using a decent console editor, others swear by things like vim, etc...but I've always found full-blown IDEs to get
in my way. And console editors are not resource-hungry beasts, which is a _good thing_ in small/embedded environments like Bela.
But, to each his own...


--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/a1f733aa-89de-4ab7-a9e5-d5dfcdb55be9n%40googlegroups.com.

Chris Csikszentmihalyi

unread,
Feb 3, 2024, 3:08:14 PM2/3/24
to pyo-d...@googlegroups.com
Agree with Aaron. I think someone got PYO running on Bela but I quickly ran into a host of problems. Things involving I/O, including midi and osc, quickly break the kernel as they aren't ported into the rtos. That would be a pretty significant process. Whereas of and super collider on Bela can use midi.

After that, just for audio with the Bela hardware (again, I don't think a standard sound lib would work with the rtos), I found I could run a couple few oscillators but not more. Many demos bogged down quickly. 

A pity! I would love to have a good PYO euro rack module. If only we could get qubit to port PYO for nebulae...



Chris Csikszentmihalyi

unread,
Feb 3, 2024, 3:12:01 PM2/3/24
to pyo-d...@googlegroups.com
Sorry, I missed a lot of autocorrects there. tl;dr most of PYO is not working or useful on Bela and I would suggest changing or adding significant reservations to the docs. If Olivier wants a pull request I would be happy to take a shot at writing it up.

Garth Paine

unread,
Feb 5, 2024, 4:29:01 PM2/5/24
to pyo-discuss
Thanks guys for your thoughtful advice and sharing your experience. Looks like something that I will give up. Trying to make happen. It's a shame though it would be super cool to run this on Bela.
Reply all
Reply to author
Forward
0 new messages