[Scilab-users] strange sounds repeated over and over in scilab 6.1.0
Perrichon
perrichon.pierre at wanadoo.fr
Mon Mar 2 14:52:27 CET 2020
Hello
Few years ago, I got routines producing sounds in threads
With Scilab 5.5.2, sounds are produced once.
With Scilab 6.1.0, sounds are repeated endlessly.
Best regards
W10 x64
function Sound1()
// by Gary Scavone, McGill University, 2004
// Bell-like sound
fs = 22050;
T = 1/fs;
dur = 4;
t = 0:T:dur;
T60 = 0.5;
env = 0.95*exp(-t/T60);
// FM parameters
fc = 200;
fm = 280;
Imax = 10;
I = Imax.*env;
y = env.*sin(2*%pi*fc*t + I.*sin(2*%pi*fm*t));
sound(y, fs);
endfunction
function Sound3()
x=1e2:1e4; b=0.6; y=window('hm',length(x)).*sin(x.^b.*log(x));
sound(y,9944)
endfunction
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200302/2cb9f0eb/attachment.htm>
More information about the users
mailing list