This commit is contained in:
nik gaffney 2018-05-10 21:21:36 +02:00
parent eed4f352d7
commit 09f845431d

View file

@ -19,6 +19,7 @@ s.boot;
"...".postln;
~prefix = Platform.userHomeDir ++ "/snd/";
~background = {
@ -26,12 +27,12 @@ s.boot;
// list of soundfiles
~sources = [
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-02.wav",
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-03.wav",
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-04.wav",
"/home/foam/snd/46-afternoon-chorus-02.wav",
"/home/foam/snd/46-afternoon-chorus-03.wav",
"/home/foam/snd/46-afternoon-chorus-04.wav",
"39-incomprehensible-restaurtant-chatter-02.wav",
"39-incomprehensible-restaurtant-chatter-03.wav",
"39-incomprehensible-restaurtant-chatter-04.wav",
"46-afternoon-chorus-02.wav",
"46-afternoon-chorus-03.wav",
"46-afternoon-chorus-04.wav",
];
// select random element from the list
@ -39,7 +40,7 @@ s.boot;
~file.postln;
// read file then play buffer
Buffer.read (server: s, path: ~file, action: ~play1);
Buffer.read (server: s, path: ~prefix++~file, action: ~play1);
};
~foreground = {
@ -48,16 +49,16 @@ s.boot;
// list of soundfiles
~sources = [
"/home/foam/snd/26-multilayered-conversations-01.wav",
"/home/foam/snd/26-multilayered-conversations-02.wav",
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-02.wav",
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-03.wav",
"/home/foam/snd/39-incomprehensible-restaurtant-chatter-04.wav",
"/home/foam/snd/26-party-chatter-02.wav",
"/home/foam/snd/26-party-chatter-03.wav",
"/home/foam/snd/26-party-chatter-04.wav",
"/home/foam/snd/06-uw-pebbles-urchins-waves.wav",
"/home/foam/snd/17-uw-waves-crashing-on-pebble-beach-slow.wav"
"26-multilayered-conversations-01.wav",
"26-multilayered-conversations-02.wav",
"39-incomprehensible-restaurtant-chatter-02.wav",
"39-incomprehensible-restaurtant-chatter-03.wav",
"39-incomprehensible-restaurtant-chatter-04.wav",
"26-party-chatter-02.wav",
"26-party-chatter-03.wav",
"26-party-chatter-04.wav",
"06-uw-pebbles-urchins-waves.wav",
"17-uw-waves-crashing-on-pebble-beach-slow.wav"
];
// select random element from the list
@ -65,7 +66,7 @@ s.boot;
~file.postln;
// read file then play buffer
Buffer.read (server: s, path: ~file, action: ~play2);
Buffer.read (server: s, path: ~prefix++~file, action: ~play2);
};
~play1 = { arg b1;