IF3Si/scd/IF3Si.scd

84 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2015-09-09 15:13:45 +02:00
(/*
This file is part of "Interface Fractures III - Silicon".
2015-09-09 15:18:56 +02:00
Copyright (c) 2015 Luka Prinčič, All rights reserved.
2015-09-09 15:13:45 +02:00
This program is free software distributed under
GNU General Public Licence. See COPYING for more info.
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Interface Fractures III - Silicon
2015-09-09 14:03:24 +02:00
(c) Luka Prinčič / Nova deViator
nova@deviator.si
SuperCollider main patch
.______________________ _________.__
| \_ _____/\_____ \ / _____/|__|
| || __) _(__ < \_____ \ | |
| || \ / \/ \| |
|___|\___ / /______ /_______ /|__|
\/ \/ \/
*/
// Be nice. Say hi!
postln("\n\n
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> Hello. Starting Interface Fractures III - SILICON <<<
.______________________ _________.__
| \\_ _____/\\_____ \\ \/ _____\/|__|
| || __) _(__ < \\_____ \\ | |
| || \\ / \\/ \\| |
|___|\\___ / /______ /_______ /|__|
\\/ \\/ \\/
");
Server.default.waitForBoot {
2015-09-09 14:03:24 +02:00
// where are we?
var dir = PathName(thisProcess.nowExecutingPath).pathOnly;
2015-09-10 21:41:57 +02:00
2015-09-09 14:03:24 +02:00
// this might go to separate file at some point... ---------------------|
// will load samples for granular synthesis
// var dir = PathName(thisProcess.nowExecutingPath).pathOnly; //
var granSmp = PathName(dir +/+ "../smp/granul/").files;
var granBfr = List();
postln("\n~~~ Loading samples for granular synthesis ..." );
granSmp.do({ |item, i|
postln(" " + i + "" + item.folderName +/+ item.fileName);
granBfr.add(Buffer.readChannel(s, item.fullPath, channels:[0])); // [0] forces mono!
});
postln("");
// ---------------------------------------------------------------------|
2015-09-10 21:41:57 +02:00
2015-09-09 14:03:24 +02:00
2015-09-10 21:41:57 +02:00
// osc connection to zarquon (local?)
~zarquOsc = NetAddr.new("zarquon", 12000);
2015-09-09 14:03:24 +02:00
// what are the files?
~files = List[
2015-09-10 21:41:57 +02:00
"sdefs.scd", // SynthDef definitions
"snd_lines.scd", // converting Si spectra lines to sound
"midiosc.scd", // midi & osc functions
"gui_core.scd", // basic general GUI setup
"gui_chaos.scd", // chaos tab
"gui_granul.scd", // granulators
2015-09-09 14:03:24 +02:00
"gui_main.scd"
];
// for each file in list, load/execute it
~files.do({|item, i| this.executeFile(dir +/+ item) });
2015-09-10 21:41:57 +02:00
2015-09-09 14:03:24 +02:00
}
)
//s.meter;
//s.plotTree;
2015-09-09 19:24:19 +02:00
//EnvirGui
2015-09-09 14:03:24 +02:00