PianoCollider

En el espíritu de componer-armar música más seguido, hoy me puse a jugar con el supercollider y el piano, permutaciones y cosas. Suena medio minimalesco hipnótico, aqui se los paso, junto con el código. Saludos =)


/*
2015 abril 15
Tema y variaciones
Cristian Bañuelos
*/

MIDIClient.init;
~mid = MIDIOut(2);
~b=[0,5,2,1];
~rit=[1,1,0.5,0.5]*0.5
(
Pdef(\lite,
	Pbind(
		\scale, Scale.minor,
		\type, \midi,
		\midicmd, \noteOn,
		\midiout, ~mid,	//  MIDI target
		\chan, 0,
		\degree,
		Pseq(~b.permute(0)-0,inf),
		\dur, Pseq(~rit.permute(0)*2,inf),
		\amp, Pbrown(0.2,0.6,0.1,inf)
	)
).play;
)
(
Pdef(\lit2,
	Pbind(
		\scale, Scale.minor,
		\type, \midi,
		\midicmd, \noteOn,
		\midiout, ~mid,	//  MIDI target
		\chan, 0,
		\degree,
		Pseq(~b.permute(0).reverse-7-2,inf),
		\dur, Pseq(~rit.permute(0)*2,inf),
		\amp, Pbrown(0.1,0.2,0.1,inf)
	)
).play;
)
(
Pdef(\lit3,
	Pbind(
		\scale, Scale.minor,
		\type, \midi,
		\midicmd, \noteOn,
		\midiout, ~mid,	//  MIDI target
		\chan, 0,
		\degree,
		Pseq(~b.permute(0)+7-0,inf),
		\dur, Pseq(~rit.permute(0)*2,inf),
		\amp, Pbrown(0.2,0.6,0.1,inf)
	)
).play;
)

Pdef(\lite).stop
Pdef(\lit2).stop
Pdef(\lit3).stop

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s