SndBuf snd0 => Binaural.pssp[0]; // connect a sndBuf to 1st speaker "../hw2/slates.wav" => snd0.read; // play file from beginning SndBuf snd1 => Binaural.pssp[1]; // connect a sndBuf to 1st speaker "../hw2/slates.wav" => snd1.read; // play file from beginning SndBuf snd2 => Binaural.pssp[2]; // connect a sndBuf to 1st speaker "../hw2/slates.wav" => snd2.read; // play file from beginning SndBuf snd3 => Binaural.pssp[3]; // connect a sndBuf to 1st speaker "../hw2/slates.wav" => snd3.read; // play file from beginning snd0.gain(0.0); // mute by reducing gain to 0.0 snd1.gain(0.0); // mute by reducing gain to 0.0 snd2.gain(0.0); // mute by reducing gain to 0.0 snd3.gain(0.0); // mute by reducing gain to 0.0 while (true) // loop the following block { snd0.gain(1.0); // unmute snd0 by setting gain to 1.0 snd0.pos(16000); // play from position 28000 samples 43000::samp=>now; // stall for length of utterance snd0.gain(0.0); // mute snd0 300::ms => now; snd1.gain(1.0); // unmute snd0 by setting gain to 1.0 snd1.pos(85000); // play from position 28000 samples 40000::samp=>now; // stall for length of utterance snd1.gain(0.0); // mute snd0 300::ms => now; snd2.gain(1.0); // unmute snd0 by setting gain to 1.0 snd2.pos(220000); // play from position 28000 samples 40000::samp=>now; // stall for length of utterance snd2.gain(0.0); // mute snd0 300::ms => now; snd3.gain(1.0); // unmute snd0 by setting gain to 1.0 snd3.pos(155000); // play from position 28000 samples 39000::samp=>now; // stall for length of utterance snd3.gain(0.0); // mute snd0 600::ms => now; }