{
   "labels" : [
      "visions"
   ],
   "code" : "\"Hello World\".postln;\r\n\"We are going to make some great music\".postln;\r\n\"Lets do this.\".postln;\r\n\r\n//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?!).\r\n\r\n//SAMPLES\r\n//=========\r\n//OPENING\r\n//=========\r\nm = Buffer.read(s,\"/Users/akashkumar/Desktop/SoundDesign/Opening.wav\");\r\nm.duration;\r\n\r\n(\r\ns.record;\r\nm.play;\r\n)\r\ns.stopRecording;\r\n\r\n//=========\r\n//SUB KICK\r\n//=========\r\nk = Buffer.read(s,\"/Users/akashkumar/Desktop/SoundDesign/SUB KICK.wav\");\r\n\r\nk.play;\r\n\r\n//=========\r\n//Rising Synth...Coming to the close.\r\n//=========\r\n\r\n~c = Buffer.read(s, \"/Users/akashkumar/Desktop/SoundDesign/Slow down.wav\");\r\nc.play;\r\n(\r\n{PlayBuf.ar(2, ~c, MouseX.kr(0.1, 0.9), doneAction:2)}.play; // mouse control\r\n\r\ns.record;\r\n)\r\ns.stopRecording;\r\n\r\n//=========\r\n//Piano\r\n//=========\r\np = Buffer.read(s, \"/Users/akashkumar/Desktop/SoundDesign/Piano.wav\"):\r\n\r\n(s.record;\r\np.play;\r\n)\r\ns.stopRecording;\r\n\r\n//=========\r\n//Apocolyptic Finish\r\n//=========\r\n\r\n~b = Buffer.read(s, \"/Users/akashkumar/Desktop/SoundDesign/Before Slow_1.wav\");\r\n(\r\n{PlayBuf.ar(2, ~b, MouseX.kr(0.1, 0.9), doneAction:2)}.play; // mouse control\r\n\r\n//s.record;\r\n)\r\ns.stopRecording;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n//SYNTHS\r\n//=========\r\n//OPENING\r\n//=========\r\n(\r\nSynthDef(\"backandforth\", { arg freq = 440, amp = 0.5, gate = 1, space = 0;\r\n\tvar snd,env;\r\n\tsnd = Pan2.ar(in:SinOsc.ar(freq, mul: amp), pos:SinOsc.kr(-3));\r\n\tenv = Env.perc(0.0001,0.9).kr(doneAction:2);\r\n\tsnd = snd*env;\r\n\tOut.ar(0, snd);\r\n\t}).add;\r\n)\r\n(\r\ns.record;\r\n(\r\nPbind(\r\n\t\\instrument, \"backandforth\",\r\n\t\\tempo, 4/4,\r\n\t\\midinote, Pseq([77,89,84,80,77,89,84,80],inf),\r\n\t\\dur, 0.23,\r\n\t\\amp, 0.6,\r\n).play(TempoClock(128/60));\r\n)\r\n)\r\ns.stopRecording;\r\n\r\n\r\n//For some reason going a bit slow need to fix that and splice it up so it works when put together.\r\n\r\n//===========\r\n//White Noise Riser/DownRiser\r\n//===========\r\n(\r\ns.record;\r\n{Splay.ar(WhiteNoise.ar(Env.triangle(6 , 0.6).kr(2)))}.play;\r\n)\r\ns.stopRecording;\r\n\r\n//===========\r\n//Sunshine Thru Clouds\r\n//===========\r\n\r\n(\r\nSynthDef(\"SunshineThruClouds\", { arg freq = 440, amp = 0.5;\r\n\tvar snd, env;\r\n\tsnd = Splay.ar(LFPulse.ar(freq, mul: amp));\r\n\tenv = Env.perc(0.001, 0.9).kr(2);\r\n\tsnd = snd*env;\r\n\tOut.ar(0, snd);\r\n\t}).add;\r\n)\r\n(\r\ns.record;\r\n(\r\nPbind(\r\n\t\\instrument, \"SunshineThruClouds\",\r\n\t\\tempo, 4/4,\r\n\t\\midinote, Pseq([Pseq([65,65],8), Pseq([63,63],8), Pseq([70,70], 8), Pseq([68,68],8)], inf),\r\n\t\\dur, 0.12,\r\n\t\\amp, 0.6,\r\n).play(TempoClock(128/60));\r\n)\r\n)\r\ns.stopRecording;\r\n\r\n\r\n\r\n\r\n\r\n\r\n//==================================\r\n//WTF?!?!?!?!\r\n//==================================\r\n\r\n\r\n//===========\r\n//Synthesis Synergy - Mid\r\n//===========\r\n\r\n(\r\nSynthDef(\"SynthesisSynergy\", { arg freq = 440, amp = 0.5;\r\n\tvar snd, env;\r\n\tsnd = Splay.ar(VarSaw.ar(freq, mul: amp));\r\n\tenv = Env.perc(0.001, 0.9).kr(2);\r\n\tsnd = snd*env;\r\n\tOut.ar(0, snd);\r\n\t}).add;\r\n)\r\n(\r\n//s.record;\r\n(\r\nPbind(\r\n\t\\instrument, \"SynthesisSynergy\",\r\n\t\\tempo, 4/4,\r\n\t\\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),\r\n\t\\dur, 0.38,\r\n\t\\amp, 0.6,\r\n).play(TempoClock(128/60));\r\n)\r\n)\r\ns.stopRecording;\r\n\r\n//===========\r\n//Synthesis Synergy - Top\r\n//===========\r\n\r\n(\r\nSynthDef(\"SynthesisSynergyT\", { arg freq = 440, amp = 0.5;\r\n\tvar snd, env;\r\n\tsnd = Splay.ar(SyncSaw.ar(freq, mul: amp));\r\n\tenv = Env.perc(0.001, 0.9).kr(2);\r\n\tsnd = snd*env;\r\n\tOut.ar(0, snd);\r\n\t}).add;\r\n)\r\n(\r\n//s.record;\r\n(\r\nPbind(\r\n\t\\instrument, \"SynthesisSynergy\",\r\n\t\\tempo, 4/4,\r\n\t\\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),\r\n\t\\dur, 0.38,\r\n\t\\amp, 0.6,\r\n).play(TempoClock(128/60));\r\n)\r\n)\r\ns.stopRecording;\r\n\r\nMIDIIn.connectAll;\r\n\r\ns.record;\r\n\r\n(\r\nMIDIdef.noteOn(\\blips, {arg vel, note;\r\nSynth(\"SynthesisSynergy\", [\r\n\\freq, note.midicps, // converts to Hz\r\n\\amp, vel.linlin(0, 127, 0, 1) // converts vel to amp 0-1\r\n]);\r\n[\"note\", note, \"vel\", vel].postln; \r\n});\r\n)",
   "is_private" : null,
   "id" : "1-517",
   "author" : "Akash Kumar",
   "name" : "Apocalyptic Visions",
   "description" : "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.\r\n\r\nRegards,\r\nAK",
   "ancestor_list" : []
}
