function bp = beepSound(hz, msecs)

bp = zeros(msecs * 8,1);
for i = 1:length(bp)
    angle = i / (8000.0 / hz) * 2.0 * pi;
    bp(i) = sin(angle);
end