Article View: comp.soft-sys.matlab
Article #114Re: Question about sounds ...
From: Joe Barsugli
Date: Tue, 26 Jan 1993 18:37
Date: Tue, 26 Jan 1993 18:37
33 lines
1498 bytes
1498 bytes
In article <1993Jan26.221528.28231@en.ecn.purdue.edu> kihlstro@en.ecn.purdue.edu (Merlin) writes: I have a question out there for people who use Matlab 4.0a (I am running it on a sun sparc workstation) How do you get the sounds to work? I am only to get niose when I tried using it. Has anyone used it? Can someone post a little blirb on the basics of using it. Thanks.. Cory Well, we just got matlab4.0 here and I played with the sound capability a bit (I "sonified" some of my data, much to my colleagues shock). Just generate a long vector and play it. On Sparcs the vector is sampled at something like 8192 Hz, that is, a vector of length 8192 will play for one second. Try t = 1:8192; f = 440; x = sin(2*pi*f*t/8192); sound(x); or x = sin(2*pi*t.*t/8192); sound(x); Good Luck, Joe Barsugli (joeb@atmos.washington.edu)
Technical Details
Message-ID:
<JOEB.93Jan26183700@eos1.atmos.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!usenet.coe.montana.edu!news.u.washington.edu!atmos.washington.edu!joebReferences:
<1993Jan26.221528.28231@en.ecn.purdue.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!usenet.coe.montana.edu!news.u.washington.edu!atmos.washington.edu!joeb From: joeb@atmos.washington.edu (Joe Barsugli) Newsgroups: comp.soft-sys.matlab Subject: Re: Question about sounds ... Date: 26 Jan 93 18:37:00 Organization: Dept. of Atmospheric Sciences, University of Washington Lines: 33 Message-ID: <JOEB.93Jan26183700@eos1.atmos.washington.edu> References: <1993Jan26.221528.28231@en.ecn.purdue.edu> NNTP-Posting-Host: eos1.atmos.washington.edu In-reply-to: kihlstro@en.ecn.purdue.edu's message of Tue, 26 Jan 93 22:15:28 GMT