Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use s.waitForBoot instead of s.boot #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions Setup/Setup.scd
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,33 @@ s.options.numBuffers = 1024 * 16;
//increase the memory available to the server
s.options.memSize = 8192 * 64;
//boot the server
s.boot;
//display the oscilloscope
s.scope;
//start proxyspace
p=ProxySpace.push(s);
//start tempo clock
p.makeTempoClock;
//give proxyspace a tempo
p.clock.tempo = 2;
Task({
3.wait;
d = Dictionary.new;
d.add(\foldernames -> PathName(thisProcess.nowExecutingPath.dirname +/+ "../samples/set1").entries);
for (0, d[\foldernames].size-1,
{arg i; d.add(d[\foldernames][i].folderName -> d[\foldernames][i].entries.collect({
arg sf;
Buffer.read(s,sf.fullPath);
});
)});
("SynthDefs.scd").loadRelative;
//loads snippets from setup folder
("Snippets.scd").loadRelative;
//wait, because otherwise it won't work for some reason
3.wait;
//activate StageLimiter - Part of the BatLib quark
StageLimiter.activate;
"Setup done!".postln;
}).start;
s.waitForBoot({
//display the oscilloscope
s.scope;
//start proxyspace
p=ProxySpace.push(s);
//start tempo clock
p.makeTempoClock;
//give proxyspace a tempo
p.clock.tempo = 2;
Task({
3.wait;
d = Dictionary.new;
d.add(\foldernames -> PathName(thisProcess.nowExecutingPath.dirname +/+ "../samples/set1").entries);
for (0, d[\foldernames].size-1,
{arg i; d.add(d[\foldernames][i].folderName -> d[\foldernames][i].entries.collect({
arg sf;
Buffer.read(s,sf.fullPath);
});
)});
("SynthDefs.scd").loadRelative;
//loads snippets from setup folder
("Snippets.scd").loadRelative;
//wait, because otherwise it won't work for some reason
3.wait;
//activate StageLimiter - Part of the BatLib quark
StageLimiter.activate;
"Setup done!".postln;
}).start;
})
)