( // MAIN LAUNCH /* Loads necessary files and definitions When starting over, best to reboot server and intepreter No GUI, just keycodes: = enter full screen, = exit full screen = run synth, = pause synth = trigger start / fade in, = trigger end / fade out, = trigger wake When automate == 1 (true), the trigger keys are disabled and the following lists in the SynthDef are used: startTimes, wakeTimes, and endTimes This launches the synth in a paused state to give the user time to put the visuals in full screen. To start the synth, must be executed */ var automate = 1; var dir = thisProcess.nowExecutingPath.dirname; ~fadeInTrigBus = Bus.control(s); ~wakeTrigBus = Bus.control(s); ~fadeOutTrigBus = Bus.control(s); "remembering_clive_wearing_visuals.scd".loadRelative(true, { "remembering_clive_wearing_synthdef.scd".loadRelative(true, { var fileCount = 0, samples; PathName(dir +/+ "../audio").files.postln; samples = PathName(dir +/+ "../audio").files.sort({arg a, b; a.fileName.toLower < b.fileName.toLower }).collect({|file| Buffer.read(s, file.fullPath, action: { if(fileCount == 8, {~flicker = Synth.newPaused(\flicker, [\automate, automate, \bufs, samples, \fadeInTrigBusNum, ~fadeInTrigBus, \fadeOutTrigBusNum, ~fadeOutTrigBus, \wakeTrigBusNum, ~wakeTrigBus])}, {}); fileCount = fileCount + 1; }); }); }); }); )