"SuperCollider LiveCoding" by 박성민

stumbled across this video of some pretty choice live coding.

10 Likes

This video is awesome and gave me a lot to think about. Does anybody know a way to accomplish similar crossfading using Pattern Classes? My problem is that whenever I want to change something, reevaluating the code stops the music completely. Clearly the CmdPeriod isn’t helping…

(
CmdPeriod.run;

t = TempoClock.default;
t.tempo = (120/60); //bps

Pbind(
	'instrument','728kick',
	'dur',Pseq([1],inf),
	'velocity',127,
	'pan',-0.25
).play(t,quant:2);

Pbind(
	'instrument','728clap',
	'dur',Pseq([Rest(),1],inf),
	'velocity',127,
	'pan',0.25
).play(t,quant:2);

Pbind(
	'instrument','728lead',
	'dur',0.5,
	'velocity',Pbrown(40,80,20),
	'pan',0,
	'note',Pseq(16.collect({Scale.minor.degrees.choose}),inf)
).play(t,quant:16);

Pbind(
	'instrument','728lead',
	'dur',4,
	'velocity',60,
	'pan',0,
	'octave',3,
	'note',Pseq([0,-2,-4,7],inf)
).play(t,quant:16);
)

I don’t know if it’s similar to the video, but Pdef does auto-crossfading.

EDIT: At the time of this comment, I wasn’t able to watch the video. Now I see that it’s using Ndef. You should be able to set a pattern as the source of an Ndef, and use its crossfading feature too.

hjh

1 Like

Thank you! I used Pdef yesterday to great effect.