Live data from Hacker News

Sonic Pi – A Music Live Coding Environment for Schools

sonic-pi.net

11–20 of 30 posts

Re: Sonic Pi – A Music Live Coding Environment for Schools

#11
post #4

For a long long time I have wanted to do a language for programming music. I like how easy this is to get started with it almost feels like the old tracker days.

How is your conception of what is involved in 'do[ing] a language for programming music' different to super-colider or ChucK or puredata? Not being aggressive just interested in how you see the problem.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#12
post #6

Not bad. Reminds me of Hackety Hack. Bret Victor's criticism of KhanAcademy is just as relevant here http://worrydream.com/LearnableProgramming/

I think Bret Victor underplays the importance of liveness ("almost worthless", eh?), and doesn't touch on the possibilities of making programming a shared experience, that is itself culturally meaningful, inclusive activity, e.g. musical. This is what Sam Aaron and other live coders have been working on for the past decade. It's a totally different approach really, through making music together, nonstop for years.. Sonic Pi is impressive and successful because it's grounded in actual arts practice, not extrapolations from rigged demos.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#13
post #2

really cool. nested with_synth and with_fx calls seem less intuitive than an object oriented approach, which mirror traditional circuits. (synth.connect(fx1) fx1.connect(output)). what was the reasoning behind this? i only ask because i could see it making a difference in terms of education. and, what makes this more suitable for schools than ChucK, Supercollider, etc.? that aside, i really wish someone would make a…

The closest I've seen to this in reality is Max for Live. The speed of development is astounding, and the results are professional in quality, and quite robust. It would be brilliant if the resulting product could be "VST-ized".

It's just a pity it's not cheap (around $700 to $800 for Live Studio with Max). I can see this hampering it's potential as an education tool outside of anything but specialist audio training organizations.

EDIT: I completely forgot about SynthEdit (http://www.synthedit.com/). It can export VSTs.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#14
post #4

For a long long time I have wanted to do a language for programming music. I like how easy this is to get started with it almost feels like the old tracker days.

How is your conception of what is involved in 'do[ing] a language for programming music' different to super-colider or ChucK or puredata? Not being aggressive just interested in how you see the problem.

Getting started to begin with :)

It feels like the PHP of music programming environments.

I am a former musician so approach music more like Sonic Pi

I mean it's this

Sonic Pi

with_fx :reverb, mix: 0.2 do loop do play scale(:Eb2, :major_pentatonic, num_octaves: 3).choose, release: 0.1, amp: rand sleep 0.1 end end

vs. super collider

// Simple synth definition using the Atari2600 UGen: ( SynthDef(\atari2600, {|out= 0, gate= 1, tone0= 5, tone1= 8, freq0= 10, freq1= 20, amp= 1, pan= 0| var e, z; e= EnvGen.kr(Env.asr(0.01, amp, 0.05), gate, doneAction:2); z= Atari2600.ar(tone0, tone1, freq0, freq1, 15, 15); Out.ar(out, Pan2.ar(z*e, pan)); }).store )

// And a pattern to play it: ( Pbind( \instrument, \atari2600, \dur, Pseq([0.25, 0.25, 0.25, 0.45], inf), \amp, 0.8, \tone0, Pseq([Pseq([2, 5], 32), Pseq([3, 5], 32)], inf), \tone1, 14, \freq0, Pseq([Pbrown(28, 31, 1, 32), Pbrown(23, 26, 3, 32)], inf), \freq1, Pseq([Pn(10, 16), Pn(11, 16)], inf) ).play )

When playing music the ability to quickly get up and running is more important than the flexibility of the system. I.e. you wanna quickly get to the point when you have fun and then you optimize later.

But don't get me wrong supercollider is a fantastic tool and was a real innovation.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#15
post #6

Not bad. Reminds me of Hackety Hack. Bret Victor's criticism of KhanAcademy is just as relevant here http://worrydream.com/LearnableProgramming/

I doubt that Bret Victor would be critical to Sonic Pi given his love for Seymore Paperts "Mindstorms" which has a progamming language called Turtle.

Sonic Pi is just that the Turtle of music programming environments. It doesn't start with abstraction but with a ground in playability.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#16
post #5

Also have a look at http://earsketch.gatech.edu Python + music

I'm glad someone mentioned EarSketch. As it's more focused on teaching programming and computing principles by making music, as opposed to a general purpose computer music language/environment like Chuck, Pure Data, and Supercollider. I was involved with the project during Grad school when it was completely attached to a DAW (Reaper), but it can now run in a browser. I'm usually not that excited about audio applications in a browser, but I think this is a great use case.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#17

Earlier quoted context omitted.

How is your conception of what is involved in 'do[ing] a language for programming music' different to super-colider or ChucK or puredata? Not being aggressive just interested in how you see the problem.

Getting started to begin with :) It feels like the PHP of music programming environments. I am a former musician so approach music more like Sonic Pi I mean it's this Sonic Pi with_fx :reverb, mix: 0.2 do loop do play scale(:Eb2, :major_pentatonic, num_octaves: 3).choose, release: 0.1, amp: rand sleep 0.1 end end vs. super collider // Simple synth definition using the Atari2600 UGen: ( SynthDef(\atari2600, {|out= 0,…

Fine, so still REPL but with built in stuff to get a performance going. I get the picture.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#19
post #2

really cool. nested with_synth and with_fx calls seem less intuitive than an object oriented approach, which mirror traditional circuits. (synth.connect(fx1) fx1.connect(output)). what was the reasoning behind this? i only ask because i could see it making a difference in terms of education. and, what makes this more suitable for schools than ChucK, Supercollider, etc.? that aside, i really wish someone would make a…

There's a basic problem with live coding, which is defining the problem domain.

Live coding systems are only really good for building teeny tiny little toy automata, which usually do simple stuff with note lists, and maybe apply a bit of randomness or some simple repeating functions to a parameter or five.

Weapons-grade commercial music is much more complicated. The sounds are richer, the arrangements and mixes are immensely complex (even for simple songs), and generally there's a ridiculous amount of care and detail.

But... if you start building in machine learning, database searches, and super-complex DSP patches, and the stuff you really need to make non-trivial music, you're not really live coding any more - you're plugging pre-existing modules and data together by typing.

Also, watching people typing is kind of dull.

I think there are solutions to both problems, but REPL-music systems are only ever going to be a step on the way to them.

I'd be surprised if live coding ever makes it into the mainstream in the way that (say) eSports almost have.

Re: Sonic Pi – A Music Live Coding Environment for Schools

#20
post #2

really cool. nested with_synth and with_fx calls seem less intuitive than an object oriented approach, which mirror traditional circuits. (synth.connect(fx1) fx1.connect(output)). what was the reasoning behind this? i only ask because i could see it making a difference in terms of education. and, what makes this more suitable for schools than ChucK, Supercollider, etc.? that aside, i really wish someone would make a…

There's a basic problem with live coding, which is defining the problem domain. Live coding systems are only really good for building teeny tiny little toy automata, which usually do simple stuff with note lists, and maybe apply a bit of randomness or some simple repeating functions to a parameter or five. Weapons-grade commercial music is much more complicated. The sounds are richer, the arrangements and mixes are i…

I disagree for a few reasons - language is very good at describing complicated things, minimal music is great, and there's nothing at all stopping live coders from using rich sounds.
Post reply on HN