buffering

This commit is contained in:
nik gaffney 2018-05-14 13:19:28 +02:00
parent a7c6b1531d
commit 0086bbedb4

View file

@ -53,7 +53,7 @@ if ( ~now.year == 1970,
~file.postln;
// cue mono file from disk then play
b=Buffer.cueSoundFile (server: s, path: ~prefix++~file, numChannels, 1); ~play1.value(b);
b=Buffer.cueSoundFile (server: s, path: ~prefix++~file, numChannels: 1); ~play1.value(b);
};
~foreground = {
@ -114,8 +114,8 @@ s.waitForBoot {
i = 0;
j = 0;
p = 2; // how many background layers?
q = 3; // how many foreground layers?
p = 12; // how many background layers?
q = 1; // how many foreground layers?
while ( { i < p }, { i = i + 1; ~background.value;});
while ( { j < q }, { j = j + 1; ~foreground.value;});