«Launchpad Spiral» by Schemawound

on 18 May'16 19:41 in

Just a quick demo of making a spiral pattern on a Novation Launchpad Mini

Visual of it here: https://www.instagram.com/p/BFjqSxCwF4J/?taken-by=schemawound

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(
MIDIClient.init;
MIDIIn.connectAll;
~lpChan = 0;
~lpIn = MIDIClient.sources.select({arg item, i; (item.name == "Launchpad Mini")})[0]; //Pick the first launcpad mini you find
~lpOut = MIDIOut.newByName("Launchpad Mini", "Launchpad Mini");
~lpNoteNums = Array.fill([8,8], {|i,j| j+(i*16) });
)

(
var path = [
	~lpNoteNums[0][0], ~lpNoteNums[0][1], ~lpNoteNums[0][2], ~lpNoteNums[0][3], ~lpNoteNums[0][4], ~lpNoteNums[0][5], ~lpNoteNums[0][6], ~lpNoteNums[0][7],
	~lpNoteNums[1][7], ~lpNoteNums[2][7], ~lpNoteNums[3][7], ~lpNoteNums[4][7], ~lpNoteNums[5][7], ~lpNoteNums[6][7], ~lpNoteNums[7][7],
	~lpNoteNums[7][6], ~lpNoteNums[7][5], ~lpNoteNums[7][4], ~lpNoteNums[7][3], ~lpNoteNums[7][2], ~lpNoteNums[7][1], ~lpNoteNums[7][0],
	~lpNoteNums[6][0], ~lpNoteNums[5][0], ~lpNoteNums[4][0], ~lpNoteNums[3][0], ~lpNoteNums[2][0], ~lpNoteNums[1][0],
	~lpNoteNums[1][1], ~lpNoteNums[1][2], ~lpNoteNums[1][3], ~lpNoteNums[1][4], ~lpNoteNums[1][5], ~lpNoteNums[1][6],
	~lpNoteNums[2][6], ~lpNoteNums[3][6], ~lpNoteNums[4][6], ~lpNoteNums[5][6], ~lpNoteNums[6][6],
	~lpNoteNums[6][5], ~lpNoteNums[6][4], ~lpNoteNums[6][3], ~lpNoteNums[6][2], ~lpNoteNums[6][1],
	~lpNoteNums[5][1], ~lpNoteNums[4][1], ~lpNoteNums[3][1], ~lpNoteNums[2][1],
	~lpNoteNums[2][2], ~lpNoteNums[2][3], ~lpNoteNums[2][4], ~lpNoteNums[2][5],
	~lpNoteNums[3][5], ~lpNoteNums[4][5], ~lpNoteNums[5][5],
	~lpNoteNums[5][4], ~lpNoteNums[5][3], ~lpNoteNums[5][2],
	~lpNoteNums[4][2], ~lpNoteNums[3][2],
	~lpNoteNums[3][3], ~lpNoteNums[3][4],
	~lpNoteNums[4][4], ~lpNoteNums[4][3],
];
var i = 0;
r = Routine({
	inf.do{
		var velocity = [127, 120, 107].choose;
		path.do{|note, i|
			~lpOut.noteOn(~lpChan, note, velocity);
			0.015.wait;
			~lpOut.noteOff(~lpChan, note, velocity);
			i = i + 1;
		}
	}
});
TempoClock.default.sched(0, r);
);
raw 1839 chars (focus & ctrl+a+c to copy)
reception
comments