«Apocalyptic Visions» by Akash Kumar

on 15 Mar'16 06:47 in visions

For my MUSC-115 Final. I decided that I would try to remake all that I could from Visions (my first song that I produced). It was a challenge to get the sounds just right but it began to all come together. As I was messing around with MouseY/X code my dog was playing around in my backpack and messed around with my bluetooth mouse. It created this almost apocalyptic feel when I was transitioning to a synth that I made to a recording. So naturally I let my dog take control of the mouse. I put it in front of him and he didn't do anything but he began to put his paw on it and move it around and that is how I got the transition. Finally, I took over the mouse to put the final long end to it to give it the ending that I was looking for. The last part of this code was stuff that I didn't use but I thought sounded great so I wanted to share it with you guys to make use of it in some way.

Regards, AK

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
"Hello World".postln;
"We are going to make some great music".postln;
"Lets do this.".postln;

//Broken down into stuff that was damn near difficult to make in Super Collider (Samples), Stuff that I could make (Synths), and things that I tried, liked but couldn't fit anywhere (WTF?!).

//SAMPLES
//=========
//OPENING
//=========
m = Buffer.read(s,"/Users/akashkumar/Desktop/SoundDesign/Opening.wav");
m.duration;

(
s.record;
m.play;
)
s.stopRecording;

//=========
//SUB KICK
//=========
k = Buffer.read(s,"/Users/akashkumar/Desktop/SoundDesign/SUB KICK.wav");

k.play;

//=========
//Rising Synth...Coming to the close.
//=========

~c = Buffer.read(s, "/Users/akashkumar/Desktop/SoundDesign/Slow down.wav");
c.play;
(
{PlayBuf.ar(2, ~c, MouseX.kr(0.1, 0.9), doneAction:2)}.play; // mouse control

s.record;
)
s.stopRecording;

//=========
//Piano
//=========
p = Buffer.read(s, "/Users/akashkumar/Desktop/SoundDesign/Piano.wav"):

(s.record;
p.play;
)
s.stopRecording;

//=========
//Apocolyptic Finish
//=========

~b = Buffer.read(s, "/Users/akashkumar/Desktop/SoundDesign/Before Slow_1.wav");
(
{PlayBuf.ar(2, ~b, MouseX.kr(0.1, 0.9), doneAction:2)}.play; // mouse control

//s.record;
)
s.stopRecording;









//SYNTHS
//=========
//OPENING
//=========
(
SynthDef("backandforth", { arg freq = 440, amp = 0.5, gate = 1, space = 0;
	var snd,env;
	snd = Pan2.ar(in:SinOsc.ar(freq, mul: amp), pos:SinOsc.kr(-3));
	env = Env.perc(0.0001,0.9).kr(doneAction:2);
	snd = snd*env;
	Out.ar(0, snd);
	}).add;
)
(
s.record;
(
Pbind(
	\instrument, "backandforth",
	\tempo, 4/4,
	\midinote, Pseq([77,89,84,80,77,89,84,80],inf),
	\dur, 0.23,
	\amp, 0.6,
).play(TempoClock(128/60));
)
)
s.stopRecording;


//For some reason going a bit slow need to fix that and splice it up so it works when put together.

//===========
//White Noise Riser/DownRiser
//===========
(
s.record;
{Splay.ar(WhiteNoise.ar(Env.triangle(6 , 0.6).kr(2)))}.play;
)
s.stopRecording;

//===========
//Sunshine Thru Clouds
//===========

(
SynthDef("SunshineThruClouds", { arg freq = 440, amp = 0.5;
	var snd, env;
	snd = Splay.ar(LFPulse.ar(freq, mul: amp));
	env = Env.perc(0.001, 0.9).kr(2);
	snd = snd*env;
	Out.ar(0, snd);
	}).add;
)
(
s.record;
(
Pbind(
	\instrument, "SunshineThruClouds",
	\tempo, 4/4,
	\midinote, Pseq([Pseq([65,65],8), Pseq([63,63],8), Pseq([70,70], 8), Pseq([68,68],8)], inf),
	\dur, 0.12,
	\amp, 0.6,
).play(TempoClock(128/60));
)
)
s.stopRecording;






//==================================
//WTF?!?!?!?!
//==================================


//===========
//Synthesis Synergy - Mid
//===========

(
SynthDef("SynthesisSynergy", { arg freq = 440, amp = 0.5;
	var snd, env;
	snd = Splay.ar(VarSaw.ar(freq, mul: amp));
	env = Env.perc(0.001, 0.9).kr(2);
	snd = snd*env;
	Out.ar(0, snd);
	}).add;
)
(
//s.record;
(
Pbind(
	\instrument, "SynthesisSynergy",
	\tempo, 4/4,
	\midinote, Pseq([56, 56, 56, 56, 63, 63, 63, 63, 60, 60, 60, 60, 58, 58, 55, 56, 56, 56, 56, 56, 63, 63, 63, 63, 60, 60, 60, 60, 63, 63, 65, 68], inf),
	\dur, 0.38,
	\amp, 0.6,
).play(TempoClock(128/60));
)
)
s.stopRecording;

//===========
//Synthesis Synergy - Top
//===========

(
SynthDef("SynthesisSynergyT", { arg freq = 440, amp = 0.5;
	var snd, env;
	snd = Splay.ar(SyncSaw.ar(freq, mul: amp));
	env = Env.perc(0.001, 0.9).kr(2);
	snd = snd*env;
	Out.ar(0, snd);
	}).add;
)
(
//s.record;
(
Pbind(
	\instrument, "SynthesisSynergy",
	\tempo, 4/4,
	\midinote, Pseq([56, 56, 56, 56, 63, 63, 63, 63, 60, 60, 60, 60, 58, 58, 55, 56, 56, 56, 56, 56, 63, 63, 63, 63, 60, 60, 60, 60, 63, 63, 65, 68], inf),
	\dur, 0.38,
	\amp, 0.6,
).play(TempoClock(128/60));
)
)
s.stopRecording;

MIDIIn.connectAll;

s.record;

(
MIDIdef.noteOn(\blips, {arg vel, note;
Synth("SynthesisSynergy", [
\freq, note.midicps, // converts to Hz
\amp, vel.linlin(0, 127, 0, 1) // converts vel to amp 0-1
]);
["note", note, "vel", vel].postln; 
});
)
raw 4100 chars (focus & ctrl+a+c to copy)
reception
comments