One of the most exciting aspects of Sonic Pi is that it enables you to use code as a musical instrument. This means that writing code live can now be seen as a new way of performing music.
We call this Live Coding.
När du kodar live rekommenderar jag dig att visa din skärm för din publik. Annars är det som att spela gitarr men inte visa dina fingrar eller strängarna. När jag tränar hemma använder jag en Raspberry Pi och en liten mini-projektor på min vardagsrumsvägg. Du kan använda din TV eller en projektor på skolan eller jobbet för att hålla en show. Testa, det är jättekul.
Spela inte bara själv - bilda ett kodningsband! Det är mycket roligt att jamma tillsammans med andra. En person kan göra beaten, någon annan bakgrunden, etc. Använd live_audio
funktionaliteten för att kombinera kod med traditionella instrument som en gitarr eller en mikrofon.
Se vilka intressanta kombinationer av olika ljud du kan skapa med kod.
Live coding isn’t completely new - a small number of people have been doing it for a few years now, typically using bespoke systems they’ve built for themselves. A great place to go and find out more about other live coders and systems is TOPLAP.
Another great resource for exploring the live coding world is Algorave. Here you can find all about a specific strand of live coding for making music in nightclubs.