DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Nov 1: register now to lock in today's rate
Register Now →

Dinner's ready!

Started by neirober 6 years ago●4 replies●latest reply 6 years ago●283 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 fharris●January 31, 2021

try 

load handel

sound(y)


then try my little demo

fred


handel_demo

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

-- Neil

[ - ]
Reply by MichaelRW●January 31, 2021

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

[ - ]
Reply by Platybel●January 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.