<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 03/01/2012 16:27, Marie de Flaugergues a écrit :
<blockquote cite="mid:010001ccca2c$3cd49bc0$b67dd340$@fr"
type="cite">
<meta name="Microsoft Theme 2.00" content="Compass 011">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";
color:#383838;}
h1
{mso-style-priority:9;
mso-style-link:"Titre 1 Car";
margin-top:24.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:16.0pt;
font-family:"Calibri","sans-serif";
color:#383838;}
h2
{mso-style-priority:9;
mso-style-link:"Titre 2 Car";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Calibri","sans-serif";
color:#383838;
font-weight:normal;}
h3
{mso-style-priority:9;
mso-style-link:"Titre 3 Car";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri","sans-serif";
color:#383838;
font-weight:normal;}
h4
{mso-style-priority:9;
mso-style-link:"Titre 4 Car";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Calibri","sans-serif";
color:#383838;
font-weight:normal;}
h5
{mso-style-priority:9;
mso-style-link:"Titre 5 Car";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri","sans-serif";
color:#383838;
font-weight:normal;}
h6
{mso-style-priority:9;
mso-style-link:"Titre 6 Car";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:#383838;
font-weight:normal;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#B24B45;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#45201E;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Calibri","sans-serif";
color:#383838;}
span.EmailStyle17
{mso-style-type:personal-compose;
color:#383838;}
span.Titre1Car
{mso-style-name:"Titre 1 Car";
mso-style-priority:9;
mso-style-link:"Titre 1";
font-family:"Verdana","sans-serif";
color:#383838;
font-weight:bold;}
span.Titre2Car
{mso-style-name:"Titre 2 Car";
mso-style-priority:9;
mso-style-link:"Titre 2";
font-family:"Verdana","sans-serif";
color:#383838;}
span.Titre3Car
{mso-style-name:"Titre 3 Car";
mso-style-priority:9;
mso-style-link:"Titre 3";
font-family:"Verdana","sans-serif";
color:#383838;}
span.Titre4Car
{mso-style-name:"Titre 4 Car";
mso-style-priority:9;
mso-style-link:"Titre 4";
font-family:"Verdana","sans-serif";
color:#383838;}
span.Titre5Car
{mso-style-name:"Titre 5 Car";
mso-style-priority:9;
mso-style-link:"Titre 5";
font-family:"Verdana","sans-serif";
color:#383838;}
span.Titre6Car
{mso-style-name:"Titre 6 Car";
mso-style-priority:9;
mso-style-link:"Titre 6";
font-family:"Verdana","sans-serif";
color:#383838;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";
color:#383838;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><img
src="cid:part1.09020608.01020306@scilab.org"
v:src="mailbox:///home/steer/.thunderbird/ye038oam.default/Mail/Local%20Folders/Inbox?number=119454392&header=quotebody&part=1.2&filename=image001.gif"
v:shapes="_x0000_Mail" class="shape"
style="display:none;width:0;height:0" height="0" width="0"><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
<v:fill src="mailbox:///home/steer/.thunderbird/ye038oam.default/Mail/Local%20Folders/Inbox?number=119454392&header=quotebody&part=1.2&filename=image001.gif" o:title="background_compass" type="frame" />
</v:background></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Bonjour,<o:p></o:p></p>
<p class="MsoNormal">Je suis enseignante en lycée en sciences
physiques et chimiques<o:p></o:p></p>
<p class="MsoNormal">Je souhaite utiliser Scilab pour l’analyse
et la synthèse de son notamment avec la fonction Analyze.<o:p></o:p></p>
<p class="MsoNormal">J’aurais besoin de savoir comment le
spectrogramme généré par Analyze est programmé et notamment
quel est le code des couleurs en fonction de l’intensité
sonore.<o:p></o:p></p>
<p class="MsoNormal">Merci d’avance de vos réponses<o:p></o:p></p>
<p class="MsoNormal">Cordialement<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:11.0pt"><img id="Image_x0020_1"
src="cid:part2.09040504.05060601@scilab.org"
alt="logo_small" height="24" width="180"></span><span
style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:center" align="center"><b><span
style="font-size:8.0pt;color:#7030A0">Marie de Flaugergues<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-align:center" align="center"><b><span
style="font-size:8.0pt;color:#7030A0">Lycée du grésivaudan<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-align:center" align="center"><b><span
style="font-size:8.0pt;color:#7030A0">Meylan<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-align:center" align="center"><b><span
style="font-size:8.0pt;color:#7030A0">tél : 06 22 04 46 78<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
Je suppose que vous voulez parler de la fonction mapsound et non de
analyze.<br>
analyze fait essentiellement une décomposition en serie de fourier
du signal et en affiche le module<br>
<br>
Le code couleur de mapsound depend de la table de couleur qui a été
definie pour la fenetre graphique. on peut compléter l'exemple
donné dans la page d'aide de mapsound pour afficher une colorbar :<br>
<br>
t=soundsec(0.5);<br>
<br>
// Then we generate the sound.<br>
s=sin(440*t)+sin(220*t)/2+sin(880*t)/2;<br>
[nr,nc]=size(t);<br>
s(nc/2:nc)=sin(330*t(nc/2:nc));<br>
f=gcf();clf;f.color_map=jetcolormap(32);<br>
<br>
mapsound(s);<br>
<br>
e=gce();colorbar(min(e.data.z),max(e.data.z));<br>
<br>
Serge Steer <br>
INRIA<br>
</body>
</html>