sr = 44100;
f = 1000;
d = .2;
t = linspace(0, d, d*sr);
tone = sin(2*pi*f*t);
noise = (rand(1, sr*d)*2)-1;
tone = tone * .01;
sequence = [noise, tone];
sequence = [sequence, sequence]; % sequence of 4 sounds
sequence = [sequence, sequence]; % sequence of 8 sounds
sequence = [sequence, sequence]; % sequence of 16 sounds
sequence = [sequence, sequence]; % sequence of 32 sounds
sound(sequence, sr)