function maketone2(f)

global sliders

fs = 48000;
t = 0 : 1/fs : 1;

a1 = 0.1 * get(sliders(1), 'Value');
a2 = 0.1 * get(sliders(2), 'Value');
a3 = 0.1 * get(sliders(3), 'Value');
a4 = 0.1 * get(sliders(4), 'Value');
a5 = 0.1 * get(sliders(5), 'Value');

y = a1 * sin(2 * pi * 1 * f * t) + ...
    a2 * sin(2 * pi * 2 * f * t) + ...
    a3 * sin(2 * pi * 3 * f * t) + ...
    a4 * sin(2 * pi * 4 * f * t) + ...
    a5 * sin(2 * pi * 5 * f * t);

wavplay(y, fs);

