DSPRelated.com
Forums

Dinner's ready!

Started by neirober 3 years ago4 replieslatest reply 3 years ago209 views

I may be the last one to know this trick, but if you turn on your computer speakers and type the following code in Matlab, it plays a gong sound:

load gong.mat;
sound(y)

Silly, but fun.  Type "doc sound" to learn about the sound command.

[ - ]
Reply by fharrisJanuary 31, 2021

try 

load handel

sound(y)


then try my little demo

fred


handel_demo

[ - ]
Reply by neiroberJanuary 31, 2021
Hallelujah!   Thanks.  If you don't watch out, someone may ask you to explain your demo.

-- Neil

[ - ]
Reply by MichaelRWJanuary 31, 2021

A-bit-o-fun!  Thanks for sharing.

[ - ]
Reply by PlatybelJanuary 31, 2021

Thanks, neirober.  I tried also handel.mat, hoping it would play a bit of Water Music. Not.  It's a bit of Hallelujah Chorus. It's fun.