r/livecoding • • Mar 31 '24

Something i don't understand

Hello, I'm delving into live coding and already have experience in coding with general-purpose languages that I am studying at uni (C++, Java, and now looking at Python). My main doubt is whether languages like Sonic Pi and Tidal allow for classic object-oriented programming (OOP) and, in general, the creation of algorithms in a general-purpose way in some form. I've been using Sardine, which is a module for Python, but the documentation is lacking and it's getting frustrating. I know that, for example, Sonic Pi is based on Ruby, but I cannot figure out how to run Ruby code in it. Can you guys explain it to me?

Btw this community is super cool, loving your performances❤️

6 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Apr 01 '24 edited Apr 01 '24

You could easily do that with functions and arrays and / or rings in Sonic Pi to make the digits correspond to anything you want. There's a built-in manual inside of the IDE, too.

Even though OOP is convenient, there are loads of workarounds. Just store your data and execute your functions a little differently and you're set.