| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sound: To MelSpectrogram...</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Sound: To MelSpectrogram... |
| 13 | </b></font></table></table> |
| 14 | <p>A command that creates a <a href="MelSpectrogram.html">MelSpectrogram</a> object from every selected <a href="Sound.html">Sound</a> object by <a href="band_filtering_in_the_frequency_domain.html">band filtering in the frequency domain</a> with a set of triangular filters.</p> |
| 15 | <p>The filter functions used are all triangular in shape on a <i>mel</i> frequency scale. Each filter function depends on three parameters, the lower frequency <i>f</i><sub><i>l</i></sub>, the central frequency <i>f</i><sub><i>c</i></sub> and the higher frequency <i>f</i><sub><i>h</i></sub>. On a <i>mel</i> scale, the distances <i>f</i><sub><i>c</i></sub>-<i>f</i><sub><i>l</i></sub> and <i>f</i><sub><i>h</i></sub>-<i>f</i><sub><i>c</i></sub> are equal for each filter. The filter function is as follows:</p> |
| 16 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i><b>H</i></b>(<i>f</i>) = 0 for <i>f</i> ≤ <i>f</i><sub><i>l</i></sub> and <i>f</i> ≥ <i>f</i><sub><i>h</i></sub></table> |
| 17 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i><b>H</i></b>(<i>f</i>) = (<i>f</i> - <i>f</i><sub><i>l</i></sub>) / (<i>f</i><sub><i>c</i></sub> - <i>f</i><sub><i>l</i></sub>) for <i>f</i><sub><i>l</i></sub> ≤ <i>f</i> ≤ <i>f</i><sub><i>c</i></sub></table> |
| 18 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i><b>H</i></b>(<i>f</i>) = (<i>f</i><sub><i>h</i></sub> - <i>f</i>) / (<i>f</i><sub><i>h</i></sub> - <i>f</i><sub><i>c</i></sub>) for <i>f</i><sub><i>c</i></sub> ≤ <i>f</i> ≤ <i>f</i><sub><i>h</i></sub></table> |
| 19 | <p>In general the number of filter values stored in each frame of the MelSpectrogram is an order of magnitude smaller than the number of sound samples in the corresponding analysis frame.</p> |
| 20 | <h3>Links to this page</h3> |
| 21 | <ul> |
| 22 | <li><a href="Sound__To_MelFilter___.html">Sound: To MelFilter...</a> |
| 23 | <li><a href="Sound__To_MFCC___.html">Sound: To MFCC...</a> |
| 24 | </ul> |
| 25 | <hr> |
| 26 | <address> |
| 27 | <p>© djmw 20141022</p> |
| 28 | </address> |
| 29 | </body> |
| 30 | </html> |