source: MML/trunk/mml/doc_html/mml/sounderror.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 3.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                "http://www.w3.org/TR/REC-html40/loose.dtd">
3<html>
4<head>
5  <title>Description of sounderror</title>
6  <meta name="keywords" content="sounderror">
7  <meta name="description" content="SOUNDERROR - Makes a "error" sound">
8  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
10  <meta name="robots" content="index, follow">
11  <link type="text/css" rel="stylesheet" href="../m2html.css">
12</head>
13<body>
14<a name="_top"></a>
15<div><a href="../index.html">Home</a> &gt;  <a href="index.html">mml</a> &gt; sounderror.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for mml&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
19
20<h1>sounderror
21</h1>
22
23<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
24<div class="box"><strong>SOUNDERROR - Makes a "error" sound</strong></div>
25
26<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
27<div class="box"><strong>function sounderror </strong></div>
28
29<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
30<div class="fragment"><pre class="comment">SOUNDERROR - Makes a &quot;error&quot; sound
31
32  See also <a href="soundchord.html" class="code" title="function soundchord">soundchord</a>, <a href="soundtada.html" class="code" title="function soundtada">soundtada</a>, <a href="soundquestion.html" class="code" title="function soundquestion">soundquestion</a></pre></div>
33
34<!-- crossreference -->
35<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
36This function calls:
37<ul style="list-style-image:url(../matlabicon.gif)">
38</ul>
39This function is called by:
40<ul style="list-style-image:url(../matlabicon.gif)">
41</ul>
42<!-- crossreference -->
43
44
45<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
46<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function sounderror</a>
470002 <span class="comment">%SOUNDERROR - Makes a &quot;error&quot; sound</span>
480003 <span class="comment">%</span>
490004 <span class="comment">%  See also soundchord, soundtada, soundquestion</span>
500005
510006
520007 VersionStr = version;
530008 <span class="keyword">if</span> strcmp(VersionStr(1),<span class="string">'4'</span>)
540009     <span class="comment">% No sound</span>
550010 <span class="keyword">else</span>
560011     [y, fs, bits] = wavread(<span class="string">'UtopiaError.wav'</span>);
570012     sound(y, fs, bits);
580013 <span class="keyword">end</span>
590014</pre></div>
60<hr><address>Generated on Mon 21-May-2007 15:29:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.