Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disable Error beep

520 views
Skip to first unread message

EriK

unread,
Apr 12, 2010, 12:11:04 PM4/12/10
to
Is it possible to disable that error beep from Matlab R2010a? It's quite annoying cause it's coming from the mac itself and not through the speakers... Help much appreciated.

Jan Simon

unread,
Apr 12, 2010, 12:42:04 PM4/12/10
to
Dear EriK!

> Is it possible to disable that error beep from Matlab R2010a? It's quite annoying cause it's coming from the mac itself and not through the speakers... Help much appreciated.

The sound is comming from the Mac itself without taking the way through the speakers?! That's purely magic. How do you think that the Mac creates the sound?

Although you could disable the error beep of the operating system, another simple solution would be to avoid errors. ;-)

Jan

Doug Schwarz

unread,
Apr 12, 2010, 12:59:05 PM4/12/10
to
In article <hpvigs$aaf$1...@fred.mathworks.com>,
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote:


He means that the sound is coming from the internal speakers and not the
external speakers that he has connected.

Erik, use

beep off

to disable the error beep.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Jan Simon

unread,
Apr 12, 2010, 3:44:04 PM4/12/10
to
Dear Doug!

> He means that the sound is coming from the internal speakers and not the
> external speakers that he has connected.

I've never seen a computer, which uses the internal speaker, if external speakers are connected. It is not getting clear to me, why beeps from the internal speaker are more annoying.
However, your suggestion of "beep off" hits the point.

Jan

Doug Schwarz

unread,
Apr 12, 2010, 4:41:35 PM4/12/10
to
In article <hpvt64$7a1$1...@fred.mathworks.com>,
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote:

Lieber Jan,

On the Mac it is possible to have multiple audio channels and direct
them to different devices such as the internal speakers or the Line Out
jack. I have mine set up so that routine computer beeps (mail
notifications, errors, etc.) are directed to the internal speakers and
sounds for which I desire higher fidelity (music, etc.) are directed to
the line out jack which is connected to my stereo. That way if I'm
listening to music (especially if the volume is high) I don't get
interrupted by a loud ping if I happen to get mail.

Jan Simon

unread,
Apr 13, 2010, 7:59:09 AM4/13/10
to
Dear Doug!

> Lieber Jan,
Without any doubt, my spelling errors identify my as German. Thanks, news group, to sepdnign the time to decipher my message!



> On the Mac it is possible to have multiple audio channels and direct
> them to different devices such as the internal speakers or the Line Out
> jack.

I've worked on 7 Macs in the past, but the older ones run MacOS 6, 7 and 8, MacOS9 ran on a Umax-Pulsar clone (simple audio interface) and the newer ones with MacOS X were laptops, which have never been connected to external speakers. So this marvelous feature (which is surely a standard feature on high-tech PC-audio today also) was concealed to my curious eyes.
Thanks Doug! I'll buy a Mac as soon as possible -- buying a new Matlab license will be the bigger financial part. But after reading so many postings about problems with Mac/Java/Matlab, I should think of running Matlab in a virtual PC.

So beside "beep off" (and avoiding errors), the OP can reduce the level of the internal speakers also or redirect the warnings to the external speakers.

Kind regards, Jan

Doug Schwarz

unread,
Apr 13, 2010, 8:54:20 AM4/13/10
to
In article <hq1mad$j3a$1...@fred.mathworks.com>,
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote:

> Dear Doug!
>
> > Lieber Jan,
> Without any doubt, my spelling errors identify my as German. Thanks, news
> group, to sepdnign the time to decipher my message!

Not so much any spelling errors as the .de at the end of your email
address!


> > On the Mac it is possible to have multiple audio channels and direct
> > them to different devices such as the internal speakers or the Line Out
> > jack.
>
> I've worked on 7 Macs in the past, but the older ones run MacOS 6, 7 and 8,
> MacOS9 ran on a Umax-Pulsar clone (simple audio interface) and the newer ones
> with MacOS X were laptops, which have never been connected to external
> speakers. So this marvelous feature (which is surely a standard feature on
> high-tech PC-audio today also) was concealed to my curious eyes.
> Thanks Doug! I'll buy a Mac as soon as possible -- buying a new Matlab
> license will be the bigger financial part. But after reading so many postings
> about problems with Mac/Java/Matlab, I should think of running Matlab in a
> virtual PC.
>
> So beside "beep off" (and avoiding errors), the OP can reduce the level of
> the internal speakers also or redirect the warnings to the external speakers.
>
> Kind regards, Jan

What can be done certainly depends on what software you have installed.
I use a utility called SoundSource,

<http://rogueamoeba.com/freebies/>

that allows me to direct so-called "Output" to one channel and the
"System" sounds to another. I happen to have three channels: the
internal speakers, the line out jack and a USB sound device. This
utility only lets you control Output and System sounds, but I believe
there are other utilities (perhaps not free) that allow controlling the
sound on an application basis.

I am still using OS X 10.5.8 (not the latest Snow Leopard) and MATLAB
2009a and, interestingly, the MATLAB error beep is considered an
"Output" and not a "System" sound and is directed to my stereo. I would
guess that the sound comes from the Java side of MATLAB as it sounds
different from the error beep produced by the Terminal application
(which is a System sound). I don't know what software Erik is using
such that his MATLAB error beep comes from the built-in speakers.

I'm sure many of these features are available in Windows, though you
might need additional sound cards or USB devices -- I have little
experience with PC sound.

Yair Altman

unread,
Apr 13, 2010, 2:39:23 PM4/13/10
to

Sauli

unread,
Aug 19, 2010, 4:04:07 AM8/19/10
to
> Erik, use
>
> beep off
>
> to disable the error beep.
>

I'm not sure if I could in any way misunderstand your unambiguous post but for some reason entering "beep off" in the command window doesn't disable the error alert I get from, say, pressing backspace one too many times in command window or entering right parenthesis before the left one in the script editor. What was I supposed to do with "beep off"?

Huge thanks for any help, the alert is driving me nuts!

Reid

unread,
Oct 26, 2010, 4:31:03 PM10/26/10
to
Hi Erik,

I had the same annoying problem. It even does it when you are just scrolling through recently-used commands and reach the end. 'beep off' at the Matlab command line was supposed to fix it, I thought, but it didn't. I shut it off through the system audio preferences. It's different on a mac, but still basically the same idea: http://support.apple.com/kb/ht2490

Jessica Piper

unread,
Feb 17, 2011, 12:53:03 AM2/17/11
to
"Sauli" wrote in message <i4iohn$ia6$1...@fred.mathworks.com>...

Hi Sauli,

this has been driving me crazy too, but I just figured it out. "beep off" only works for syntax errors. However, the system will still make a "ding" noise if you type a mismatched parenthesis, for example.

Go to Matlab/Preferences/Keyboard/Delimiter Matching and under "Show mismatch with" select "strikethrough", then hit apply. This will get rid of the "ding", in addition to the beep. Note this is for R2007a on Mac, it might be different now.

Enjoy the peace and quiet!

Jessica

Sauli

unread,
Feb 17, 2011, 1:50:04 AM2/17/11
to
Thanks, Jessica!

With R2010a pn PC it seems to matter to restart Matlab after entering "beep off". I've now been able to enjoy my work more, hmm.. comprehensively.

Sauli

"Jessica Piper" <jry...@stanford.remove.edu> wrote in message <ijid3v$i01$1...@fred.mathworks.com>...

Jessica Piper

unread,
Jul 11, 2011, 6:20:24 PM7/11/11
to
Ok now I'm using Matlab R2011a on a pc. I have to enter the "beep off" command every time I run Matlab - Matlab isn't saving my beep off preference between sessions.

This is weird behavior, because R2011a on the Mac (despite many other problems I won't get into here) saves the "beep off" command between sessions. So I typed the command the day I upgraded, and haven't had to since.

So, could somebody please tell me how to permanently turn the beeping off in Windows? Thanks!

Jessica

"Sauli" wrote in message <ijiges$ost$1...@fred.mathworks.com>...

dpb

unread,
Jul 11, 2011, 6:37:34 PM7/11/11
to
On 7/11/2011 5:20 PM, Jessica Piper wrote:
> Ok now I'm using Matlab R2011a on a pc. I have to enter the "beep off"
> command every time I run Matlab - Matlab isn't saving my beep off
> preference between sessions.
...

Whether that's a bug or not I don't have a clue but...

Put any customization(s) desired in your startup.m file

--

Jessica Piper

unread,
Sep 6, 2011, 3:18:11 PM9/6/11
to
dpb <no...@non.net> wrote in message <ivftvc$5a8$1...@speranza.aioe.org>...

Ok I just found another annoyance in R2011a for Windows 7, which I don't remember from older versions. Even after doing "beep off" and setting the "indicate mismatch with strikethrough" preference, Matlab STILL beeps if you press the down arrow in the command window, and there are no more commands in the history.

At this point, I've given up, so I just disabled system sounds.

I have to say I'm surprised this is a total non-priority for the Mathworks. It bothers me so much that if I worked there, I would have fixed this myself, probably on my first day!

Anton Semechko

unread,
Jan 15, 2013, 11:47:08 AM1/15/13
to
In case you are running MatLab on Vista, this is how you can disable the annoying beep coming from the system speakers:

http://weyland.be/wrdprss/index.php/2007/02/08/disable-system-beep-in-windows-vista/


"Jessica Piper" <jry...@stanford.remove.edu> wrote in message <j45rlj$4ji$1...@newscl01ah.mathworks.com>...

Kishore Jagtap

unread,
Jan 16, 2013, 6:17:08 AM1/16/13
to
I AM NOR SURE WHAT EXACTLY YOU WANT BUT stop unwantes error warnnings you can use



"warning off" command


hope it works.

@k.j.@

Steven_Lord

unread,
Jan 16, 2013, 9:38:23 AM1/16/13
to


"Kishore Jagtap" <jag...@yahoo.com> wrote in message
news:kd627k$osj$1...@newscl01ah.mathworks.com...
> I AM NOR SURE WHAT EXACTLY YOU WANT BUT stop unwantes error warnnings you
> can use
> "warning off" command

1) WARNING OFF only suppress warnings. It has no effect on errors.

2) Turning off ALL warnings is a BIG hammer. Warnings, like pain, can be a
good thing that alert you to problems when they're small, before they turn
into bigger problems that cause errors.

If you want to suppress ONE warning or a few warnings, then use WARNING OFF
with the identifiers for the warnings you want to suppress.

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Rafael

unread,
Feb 14, 2013, 9:22:05 AM2/14/13
to
"Jan Simon" wrote in message <hpvigs$aaf$1...@fred.mathworks.com>...
Nobody is perfect and errors come and go, your code is always without errors? yeah right

anyone

unread,
Feb 14, 2013, 9:41:23 AM2/14/13
to
probably not, but I'd bet it has a better sense of humor than you.

Jan Simon

unread,
Feb 21, 2013, 5:37:10 PM2/21/13
to
Dear Rafael,

> > Although you could disable the error beep of the operating system, another simple solution would be to avoid errors. ;-)

> Nobody is perfect and errors come and go, your code is always without errors? yeah right

While I am aware that for other programmer errors come, I've never seen them going voluntarily. My code is in fact free of errors, because I've installed the not officially supported DEBUGGER2 from TMW. In case of errors, warning and crashes the screen goes blank, the speaker is disabled (important for this thread), and an efficient solution is suggested (usually "turn off the computer"). Et voila, I haven't seen any bug for years.

Kind regards, Jan

Andrew

unread,
Sep 18, 2013, 2:16:06 PM9/18/13
to
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote in message <hpvigs$aaf$1...@fred.mathworks.com>...
LoL Bro U hilarious brobro thkzz 4 all guud solushunz

Daniel

unread,
Jan 9, 2014, 4:23:07 AM1/9/14
to
This post is quite old now but I'm posting the solution that worked for me coz I'm sure I wasted a few hours of my life trying to disable the noise - maybe I can save other
I am running linux (suse) and for me typing

xset -b

from the terminal disable the internal beeps. Typing

xset b

will again reactivate it.

Daniel

unread,
Jan 9, 2014, 4:26:07 AM1/9/14
to
Hi,

This post is rather old now, but I post my solution that worked for me since I wasted some time to get there, so maybe I can save others the hassle.
I am running Matlab on a linux system (suse). For me, typing

"xset -b"

in terminal disabled the beeps. Typing

"xset b"

again will reactivate it. For windows I believe the cmd equivalent is

"net start beep" and "net stop beep" to switch on and off.

Hope this helps!

Daniel

Edward B

unread,
Feb 19, 2021, 10:06:13 AM2/19/21
to
try this hack:

dir('C:\Program Files\MATLAB\R2020b\toolbox\matlab\audiovideo\');
load("mtlb.mat");
sound(y);
y=y/10;
save("C:\Program Files\MATLAB\R2020b\toolbox\matlab\audiovideo\mtlb.mat", "y");
beep;

It should give a fainter and less annoying, yet audible, beep. I am not able to test, but I think it will work.
0 new messages