You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
859 B
Plaintext
37 lines
859 B
Plaintext
(
|
|
// MAIN LAUNCH (loads necessary files and definitions)
|
|
|
|
var appEnvironment;
|
|
|
|
appEnvironment = Environment.make;
|
|
appEnvironment.push;
|
|
|
|
s.waitForBoot({
|
|
|
|
// load
|
|
"cicc_musical_data_generator.scd".loadRelative;
|
|
"cicc_sonifier.scd".loadRelative;
|
|
"cicc_gui.scd".loadRelative;
|
|
"cicc_transcriber.scd".loadRelative;
|
|
|
|
~genAll = {arg seed;
|
|
~allMusicData = ~genMusicData.value(seed);
|
|
~patterns = ~allMusicData[0];
|
|
~scoreData = ~allMusicData[1];
|
|
~sectionOffsets = ~allMusicData[2];
|
|
~currentSection = 0;
|
|
~currentSubsection = 0;
|
|
~isPlaying = false;
|
|
};
|
|
|
|
~dir = thisProcess.nowExecutingPath.dirname;
|
|
~genAll.value(20200525);
|
|
~play = Synth.new(\masterPlayerControl);
|
|
~droneFade = Synth.new(\droneFade);
|
|
~autoAdvance = true;
|
|
~interludes = false;
|
|
~sectionOrder = ~patterns.size.collect({arg sec; sec});
|
|
~generateGUI.value;
|
|
|
|
appEnvironment.pop;
|
|
}); |