{"id":202646,"date":"2013-11-19T06:05:03","date_gmt":"2013-11-19T02:05:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=202646"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=202646","title":{"rendered":"<span class=\"post_title\">\u041f\u0438\u0430\u043d\u0438\u043d\u043e \u0432 24 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 Javascript: \u0435\u0441\u043b\u0438 \u0438\u0433\u0440\u0430\u0442\u044c, \u0442\u043e \u043c\u0443\u0437\u044b\u043a\u0443<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 \u043c\u0435\u0440\u044f\u044e\u0442\u0441\u044f, \u0443 \u043a\u043e\u0433\u043e \u0442\u043e\u043d\u044c\u0448\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u043c\u0435\u0440\u044f\u0442\u044c\u0441\u044f, \u0443 \u043a\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u0447\u0435. <\/p>\n<p>  \u042f \u0442\u043e\u0436\u0435 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u044d\u0442\u043e\u0439 <s>\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439<\/s> \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e\u0439 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0435 \u043a\u043e\u0434\u0435\u0440\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u0442\u0432\u0430, \u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u0444\u0440\u0430\u0437\u0443 \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u0435\u0439 \u043f\u043e\u0434\u0440\u0443\u0433\u0438-\u043c\u0443\u0437\u044b\u043a\u0430\u043d\u0442\u0430: \u00ab\u0415\u0441\u043b\u0438 \u0443\u0436 \u0438\u0433\u0440\u0430\u0442\u044c, \u0442\u043e \u043d\u0430 \u043f\u0438\u0430\u043d\u0438\u043d\u043e\u00bb. \u0418 \u0440\u0435\u0448\u0438\u043b: \u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a. \u0412\u043c\u0435\u0441\u0442\u043e \u0438\u0433\u0440\u044b \u043d\u0430\u043f\u0438\u0448\u0443 \u043f\u0438\u0430\u043d\u0438\u043d\u043e. <a href=\"http:\/\/jsfiddle.net\/c62Pe\/1\/embedded\/result\/\">\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b<\/a>.<\/p>\n<p>  <i>\u041e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0441\u0440\u0430\u0437\u0443: \u044f \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u043c\u0443\u0437\u044b\u043a\u0430\u043d\u0442, \u043c\u043e\u0451 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u043c \u0431\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0435\u0441\u0435\u043d\u043e\u043a \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0433\u0438\u0442\u0430\u0440\u0435, \u0442\u0430\u043a \u0447\u0442\u043e, \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u043c\u043e\u0433\u0443 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0443 \u0431\u0435\u0437\u0431\u043e\u0436\u043d\u043e \u0432\u0440\u0430\u0442\u044c, \u043d\u043e \u0431\u0443\u0434\u0443 \u0447\u0435\u0440\u0442\u043e\u0432\u0441\u043a\u0438 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f \u0431\u0443\u0434\u0435\u0442\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c.<\/i><\/p>\n<h5>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c.<\/h5>\n<p>  \u041a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u0442\u0435\u043f\u0438\u0430\u043d\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 88 \u043a\u043b\u0430\u0432\u0438\u0448, \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 A0 (\u041b\u044f \u0441\u0443\u0431-\u043a\u043e\u043d\u0442\u0440-\u043e\u043a\u0442\u0430\u0432\u044b, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f 27.5 \u0413\u0446) \u0434\u043e C8 (\u0414\u043e \u043f\u044f\u0442\u043e\u0439 \u043e\u043a\u0442\u0430\u0432\u044b, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 4186 \u0413\u0446). \u041a\u0430\u0436\u0434\u0430\u044f \u043e\u043a\u0442\u0430\u0432\u0430 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u0438 \u043d\u043e\u0442: <br \/>  \u0414\u043e, <b>\u0414\u043e-\u0434\u0438\u0435\u0437<\/b>, \u0420\u0435, <b>\u0420\u0435-\u0434\u0438\u0435\u0437<\/b>, \u041c\u0438, \u0424\u0430, <b>\u0424\u0430-\u0434\u0438\u0435\u0437<\/b>, \u0421\u043e\u043b\u044c, <b>\u0421\u043e\u043b\u044c-\u0434\u0438\u0435\u0437<\/b>, \u041b\u044f, <b>\u041b\u044f-\u0434\u0438\u0435\u0437\/\u0421\u0438-\u0431\u0435\u043c\u043e\u043b\u044c<\/b>, \u0421\u0438. \u0416\u0438\u0440\u043d\u044b\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0440\u044f\u0434\u0430, \u043e\u043d\u0438 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. <\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0434\u043d\u0430 \u043e\u043a\u0442\u0430\u0432\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b34\/e76\/6a8\/b34e766a82548897f6e928bedf8826e3.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0432 \u043d\u0430 <a href=\"http:\/\/www.gitaristam.ru\/school\/frequency.htm\">\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0447\u0430\u0441\u0442\u043e\u0442 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f \u043d\u043e\u0442<\/a>, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c: \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043e\u043a\u0442\u0430\u0432\u0430 \u0440\u043e\u0432\u043d\u043e \u0432\u0434\u0432\u043e\u0435 \u0432\u044b\u0448\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e:<\/p>\n<p>  Nx = N1 \u00d7 2<sup>x-1<\/sup>, \u0433\u0434\u0435:  <\/p>\n<ul>\n<li>N \u2013 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u043e\u0442\u044b;<\/li>\n<li>x \u2014 \u043d\u043e\u043c\u0435\u0440 \u043e\u043a\u0442\u0430\u0432\u044b (\u043e\u0442 0 \u0434\u043e 8);<\/li>\n<li>Nx, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0437\u0432\u0443\u043a\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043d\u043e\u0442\u0435 N \u043e\u043a\u0442\u0430\u0432\u044b x;<\/li>\n<\/ul>\n<p>  \u0412 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u0442 N1 \u0432\u043c\u0435\u0441\u0442\u043e N0 \u043b\u0438\u0448\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043d\u043e\u0442 \u0441\u0443\u0431-\u043a\u043e\u043d\u0442\u0440-\u043e\u043a\u0442\u0430\u0432\u044b (N0) \u0438\u043c\u0435\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f \u043d\u0438\u0436\u0435 \u043f\u043e\u0440\u043e\u0433\u0430 \u0441\u043b\u044b\u0448\u0438\u043c\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c \u0443\u0445\u043e\u043c (&lt; 20 Hz).<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u043e\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0447\u0438\u0441\u0442\u044b\u043c\u0438, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442 \u043d\u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043a\u0442\u0430\u0432\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u043e\u043d\u0438:<br \/>  <a name=\"habracut\"><\/a><br \/>   C: 32.703,<br \/>   \u0421#: 34.648,<br \/>   D: 36.708,<br \/>   D#: 38.891,<br \/>   E: 41.203,<br \/>   F: 43.654,<br \/>   F#: 46.249,<br \/>   G: 48.999,<br \/>   G#: 51.913,<br \/>   A: 55,<br \/>   A#: 58.27,<br \/>   B: 61.735<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u043c, \u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432 \u0432\u0438\u0434\u0435 <code>&quot;A4&quot;<\/code> \u0438\u043b\u0438 <code>&quot;C5#&quot;<\/code>, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0435\u0451 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"javascript\">function play(key) { \tvar controctave = { \t\t\t'C': 32.703, \t\t\t'\u0421#': 34.648, \t\t\t'D': 36.708, \t\t\t'D#': 38.891, \t\t\t'E': 41.203, \t\t\t'F': 43.654, \t\t\t'F#': 46.249, \t\t\t'G': 48.999, \t\t\t'G#': 51.913, \t\t\t'A': 55, \t\t\t'A#': 58.27, \t\t\t'B': 61.735, \t\t}, \t\tnote = key[0].toUpperCase(), \t\toctave = parseInt(key[1]), \t\tsharp = key[2] == '#' ? true : false; \tif (sharp) { \t\treturn controctave[note + '#'] * Math.pow(2, octave-1); \t} else { \t\treturn controctave[note] * Math.pow(2, octave-1); \t} } <\/code><\/pre>\n<p>  \u0410\u0445, \u0434\u0430, \u043c\u044b \u0436\u0435 \u043f\u0438\u0448\u0435\u043c \u043d\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043c:<\/p>\n<pre><code class=\"javascript\">function play(key) { \tvar controctave = { 'C': 32.703, '\u0421#': 34.648, 'D': 36.708, 'D#': 38.891, 'E': 41.203, 'F': 43.654, 'F#': 46.249, 'G': 48.999, 'G#': 51.913, 'A': 55, 'A#': 58.27, 'B': 61.735}; \tfreq = key[2] == '#' ? controctave[key[0].toUpperCase() + '#'] * Math.pow(2, (key[1]|0) - 1) : controctave[key[0].toUpperCase()] * Math.pow(2, (key[1]|0) - 1); \treturn freq; } <\/code><\/pre>\n<p>  \u0423\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<h5>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0440\u0438\u0441\u0443\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443<\/h5>\n<p>  88 \u043a\u043b\u0430\u0432\u0438\u0448 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 \u043d\u043e\u0442\u044b \u041b\u044f (A0).<br \/>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0446\u0438\u043a\u043b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439: \u0432 \u0446\u0438\u043a\u043b\u0435 \u0440\u0438\u0441\u0443\u0435\u043c \u043f\u043e 12 \u043a\u043b\u0430\u0432\u0438\u0448, \u0438 \u043a\u0430\u0436\u0434\u0443\u044e <i>\u0432\u0442\u043e\u0440\u0443\u044e, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0443\u044e, \u0441\u0435\u0434\u044c\u043c\u0443\u044e, \u0434\u0435\u0432\u044f\u0442\u0443\u044e \u0438 \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u0443\u044e<\/i> \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u043d\u043e\u0439. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0435 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u043c id, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043d\u043e\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438.<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">var width = 1000; var deck = document.createElement('div'),  \toctave = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'],  \tid = &quot;&quot;,  \tkeynumber = 0, \twhitekeys = 0, \tkeys = [];  deck.style.width = width;  parent: for (var i = 0; i &lt; 8; i++) { \tfor (var j = 0; j &lt; 12; j++) { \t\tkeynumber = (i * 12) + j; \t\tif (keynumber &gt;= 88) break parent; \t\tkeys[keynumber] = document.createElement('div'); \t\tkeys[keynumber].style.border = &quot;1px solid black&quot;; \t\tkeys[keynumber].style.position = &quot;absolute&quot;; \t\tid = (octave[j][1] == '#') ? octave[j] + i + 's' : octave[j] + i; \t\tkeys[keynumber].id = id;  \t\tswitch(j%12) { \t\t\tcase 1:  \t\t\tcase 3:  \t\t\tcase 6:  \t\t\tcase 8: \t\t\tcase 10: \t\t\t\tkeys[keynumber].style.backgroundColor = 'black'; \t\t\t\tkeys[keynumber].style.left = ((width \/ 50 * whitekeys) - (width \/ 200)) + 'px'; \t\t\t\tkeys[keynumber].style.width = width\/100 + &quot;px&quot;; \t\t\t\tkeys[keynumber].style.height = &quot;200px&quot;; \t\t\t\tkeys[keynumber].style.zIndex = 10; \t\t\t\tbreak; \t\t\tdefault: \t\t\t\tkeys[keynumber].style.backgroundColor = 'white'; \t\t\t\tkeys[keynumber].style.left = (width \/ 50 * whitekeys) + 'px'; \t\t\t\tkeys[keynumber].style.width = width\/50 + &quot;px&quot;; \t\t\t\tkeys[keynumber].style.height = &quot;300px&quot;; \t\t\t\twhitekeys++;  \t\t}  \t\tdeck.appendChild(keys[keynumber]);  \t} }  document.body.appendChild(deck); <\/code><\/pre>\n<p>  \u0418 \u0432\u043d\u043e\u0432\u044c <s>\u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u043d\u0435\u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0435 \u0433\u043e\u0432\u043d\u0438\u0449\u0435<\/s> \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n<pre><code class=\"javascript\">var width = 1000, octave = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'], id = &quot;&quot;, div, whitekeys=0, keys = []; parent: for (var i = 0; i &lt; 8; i++) { \tfor (var j = 0; j &lt; 12; j++) { \t\tif ((i * 12) + j &gt;= 88) break parent; \t\tdiv = document.createElement('div'); \t\tdiv.id = (octave[j][1] == '#') ? octave[j][0] + ((((i * 12) + j + 9) \/ 12)|0) + 's' : octave[j] + ((((i * 12) + j + 9) \/ 12)|0); \t\tif (j % 12 == 1 || j % 12 == 4 || j % 12 == 6 || j % 12 == 9 || j % 12 == 11) { \t\t\tdiv.setAttribute('style', 'border:1px solid black; position:absolute; background-color:black; left:' + ((width \/ 50 * whitekeys) - (width \/ 200)) + 'px; width:' + width\/100 + 'px; height: 200px; z-index:1;');} \t\telse { \t\t\tdiv.setAttribute('style', 'border:1px solid black; position:absolute; background-color:white; left:' + (width \/ 50 * whitekeys) + 'px; width:' + width\/50 + 'px; height:300px;'); \t\t\twhitekeys++; \t\t} \t\tdocument.body.appendChild(div);}} <\/code><\/pre>\n<p>  \u041c\u044b \u0438\u0437\u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432\u0430\u043b\u0438 \u0435\u0449\u0451 13 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<h5>\u041d\u0430\u0443\u0447\u0438\u043c \u043f\u0438\u0430\u043d\u0438\u043d\u043e \u0438\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0432\u0443\u043a\u0438<\/h5>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f <a href=\"http:\/\/www.w3.org\/TR\/webaudio\/\">Web Audio API<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u0441\u0435\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Webkit-based \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438 \u0438 Firefox.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u043e\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430:  <\/p>\n<pre><code class=\"javascript\">context = window.AudioContext ? new AudioContext() : new webkitAudioContext(); <\/code><\/pre>\n<p>  \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0438:  <\/p>\n<pre><code class=\"javascript\">document.body.addEventListener('click', play); <\/code><\/pre>\n<p>  \u0430 \u0441\u0430\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e play \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"javascript\">function play(e) { \tvar controctave = { 'C': 32.703, 'Cs': 34.648, 'D': 36.708, 'Ds': 38.891, 'E': 41.203, 'F': 43.654, 'Fs': 46.249, 'G': 48.999, 'Gs': 51.913, 'A': 55, 'As': 58.27, 'B': 61.735}, osc = context.createOscillator(); \tosc.frequency.value = e.target.id[2] == 's' ? controctave[e.target.id[0] + 's'] * Math.pow(2, (e.target.id[1]|0) - 1) : controctave[e.target.id[0]] * Math.pow(2, (e.target.id[1]|0) - 1); \tosc.type = &quot;square&quot;; \tosc.connect(context.destination); \tosc.start(0); \tsetTimeout(function() { \t    osc.stop(0); \t    osc.disconnect(context.destination); \t}, 1000 \/ 2);} <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043e\u0441\u0446\u0438\u043b\u043b\u044f\u0442\u043e\u0440: <code>osc = context.createOscillator();<\/code>, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f: <code>osc.frequency.value = e.target.id[2] == 's' ? controctave[e.target.id[0] + 's'] * Math.pow(2, (e.target.id[1]|0) - 1) : controctave[e.target.id[0]] * Math.pow(2, (e.target.id[1]|0) - 1);<\/code> (\u043d\u0443, \u043c\u044b \u0436\u0435 \u043d\u0435 \u0441\u043b\u0435\u0434\u0438\u043c \u0437\u0430 \u0447\u0438\u0441\u0442\u043e\u0442\u043e\u0439 \u0438 \u043e\u043f\u0440\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u0434\u0430, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?), \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0444\u043e\u0440\u043c\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0430: <code>osc.type = &quot;square&quot;;<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u044b\u043b \u0441\u0438\u043d\u0443\u0441\u043e\u0438\u0434\u0430\u043b\u044c\u043d\u044b\u0439) \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0438 \u0435\u0433\u043e \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0432\u044b\u0432\u043e\u0434\u0430 \u0437\u0432\u0443\u043a\u0430: <code>osc.connect(context.destination);<\/code>, \u0438 \u0434\u0430\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435: <code>osc.start(0);<\/code>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448\u0443 \u0437\u0430\u043c\u043e\u043b\u0447\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (500\u043c\u0441), \u0430 \u0442\u043e \u043e\u043d\u0430 \u0442\u0430\u043a \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e \u043f\u0438\u0449\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>osc.stop(0)<\/code>, \u0437\u0430\u0432\u0451\u0440\u043d\u0443\u0442\u044b\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u2014 <code>osc.disconnect(context.destination);<\/code> \u2014 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0441\u0446\u0438\u043b\u043b\u044f\u0442\u043e\u0440 \u043e\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<p>  \u0420\u0435\u0437\u044e\u043c\u0438\u0440\u0443\u0435\u043c: \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">var width = 1000, octave = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'], id = &quot;&quot;, div, whitekeys=0, keys = [],context = window.AudioContext ? new AudioContext() : new webkitAudioContext(); parent: for (var i = 0; i &lt; 8; i++) { \tfor (var j = 0; j &lt; 12; j++) { \t\tif ((i * 12) + j &gt;= 88) break parent; \t\tdiv = document.createElement('div'); \t\tdiv.id = (octave[j][1] == '#') ? octave[j][0] + ((((i * 12) + j + 9) \/ 12)|0) + 's' : octave[j] + ((((i * 12) + j + 9) \/ 12)|0); \t\tif (j % 12 == 1 || j % 12 == 4 || j % 12 == 6 || j % 12 == 9 || j % 12 == 11) { \t\t\tdiv.setAttribute('style', 'border:1px solid black; position:absolute; background-color:black; left:' + ((width \/ 50 * whitekeys) - (width \/ 200)) + 'px; width:' + width\/100 + 'px; height: 200px; z-index:1;');} \t\telse { \t\t\tdiv.setAttribute('style', 'border:1px solid black; position:absolute; background-color:white; left:' + (width \/ 50 * whitekeys) + 'px; width:' + width\/50 + 'px; height:300px;'); \t\t\twhitekeys++; \t\t} \t\tdocument.body.appendChild(div);}} document.body.addEventListener('click', play); function play(e) { \tvar controctave = { 'C': 32.703, 'Cs': 34.648, 'D': 36.708, 'Ds': 38.891, 'E': 41.203, 'F': 43.654, 'Fs': 46.249, 'G': 48.999, 'Gs': 51.913, 'A': 55, 'As': 58.27, 'B': 61.735}, osc = context.createOscillator(); \tosc.frequency.value = e.target.id[2] == 's' ? controctave[e.target.id[0] + 's'] * Math.pow(2, (e.target.id[1]|0) - 1) : controctave[e.target.id[0]] * Math.pow(2, (e.target.id[1]|0) - 1); \tosc.type = &quot;square&quot;; \tosc.connect(context.destination); \tosc.start(0); \tsetTimeout(function() { \t    osc.stop(0); \t    osc.disconnect(context.destination); \t}, 1000 \/ 2);} <\/code><\/pre>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e <s>\u0442\u0435\u043f\u0435\u0440\u044c \u043c\u0435\u043d\u044f \u043d\u0430\u0434\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0421\u0442\u0440\u0430\u0434\u0438\u0432\u0430\u0440\u0438 XXI \u0432\u0435\u043a\u0430<\/s> Web Audio API \u2014 \u0448\u0442\u0443\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f. \u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web_Audio_API\">\u043d\u0430 MDN<\/a>, \u043c\u043e\u0433\u0443 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/www.html5rocks.com\/en\/tutorials\/webaudio\/intro\/\">\u043c\u0438\u043b\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043d\u0430 HTML5Rocks<\/a> \u0438 <a href=\"http:\/\/flippinawesome.org\/2013\/10\/28\/audio-synthesis-in-javascript\/\">\u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442<\/a>. <\/p>\n<p>  \u0410 \u043f\u0438\u0430\u043d\u0438\u043d\u043e \u0432\u044b\u0448\u043b\u043e \u0436\u0443\u0442\u043a\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u0435, \u043d\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u043c \u044f \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0434\u043e\u0432\u043e\u043b\u0435\u043d. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0430\u043c \u0442\u043e\u0436\u0435 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/p>\n<p>  <a href=\"http:\/\/jsfiddle.net\/c62Pe\/1\/embedded\/result\/\">\u041f\u043e\u0438\u0433\u0440\u0430\u0442\u044c<\/a><\/p>\n<p>  <a href=\"http:\/\/jsfiddle.net\/c62Pe\/1\/light\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/a><\/p>\n<p>  P.S. \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438 \u043c\u0430\u043a\u0431\u0443\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0438\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043b\u044b\u0448\u0438\u043c\u044b\u0435 \u0437\u0432\u0443\u043a\u0438 \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u043c\u0430\u043b\u043e\u0439 \u043e\u043a\u0442\u0430\u0432\u044b (\u0442.\u0435. \u0434\u043e 130 \u0413\u0446), \u0447\u0442\u043e \u043d\u0435\u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0412 \u043e\u0431\u0449\u0435\u043c, \u043d\u0435 \u0443\u0434\u0438\u0432\u043b\u044f\u0439\u0442\u0435\u0441\u044c, \u0435\u0441\u043b\u0438 \u043b\u0435\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0431\u0443\u0434\u0442\u043e \u0431\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0437\u0432\u0443\u0447\u0438\u0442.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/202646\/\"> http:\/\/habrahabr.ru\/post\/202646\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 \u043c\u0435\u0440\u044f\u044e\u0442\u0441\u044f, \u0443 \u043a\u043e\u0433\u043e \u0442\u043e\u043d\u044c\u0448\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u043c\u0435\u0440\u044f\u0442\u044c\u0441\u044f, \u0443 \u043a\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u0447\u0435. <\/p>\n<p>  \u042f \u0442\u043e\u0436\u0435 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u044d\u0442\u043e\u0439 <s>\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439<\/s> \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e\u0439 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0435 \u043a\u043e\u0434\u0435\u0440\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u0442\u0432\u0430, \u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u0444\u0440\u0430\u0437\u0443 \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u0435\u0439 \u043f\u043e\u0434\u0440\u0443\u0433\u0438-\u043c\u0443\u0437\u044b\u043a\u0430\u043d\u0442\u0430: \u00ab\u0415\u0441\u043b\u0438 \u0443\u0436 \u0438\u0433\u0440\u0430\u0442\u044c, \u0442\u043e \u043d\u0430 \u043f\u0438\u0430\u043d\u0438\u043d\u043e\u00bb. \u0418 \u0440\u0435\u0448\u0438\u043b: \u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a. \u0412\u043c\u0435\u0441\u0442\u043e \u0438\u0433\u0440\u044b \u043d\u0430\u043f\u0438\u0448\u0443 \u043f\u0438\u0430\u043d\u0438\u043d\u043e. <a href=\"http:\/\/jsfiddle.net\/c62Pe\/1\/embedded\/result\/\">\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b<\/a>.<\/p>\n<p>  <i>\u041e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0441\u0440\u0430\u0437\u0443: \u044f \u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u043c\u0443\u0437\u044b\u043a\u0430\u043d\u0442, \u043c\u043e\u0451 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u043c \u0431\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u0435\u0441\u0435\u043d\u043e\u043a \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0433\u0438\u0442\u0430\u0440\u0435, \u0442\u0430\u043a \u0447\u0442\u043e, \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u043c\u043e\u0433\u0443 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0443 \u0431\u0435\u0437\u0431\u043e\u0436\u043d\u043e \u0432\u0440\u0430\u0442\u044c, \u043d\u043e \u0431\u0443\u0434\u0443 \u0447\u0435\u0440\u0442\u043e\u0432\u0441\u043a\u0438 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f \u0431\u0443\u0434\u0435\u0442\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c.<\/i><\/p>\n<h5>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c.<\/h5>\n<p>  \u041a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u0442\u0435\u043f\u0438\u0430\u043d\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 88 \u043a\u043b\u0430\u0432\u0438\u0448, \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 A0 (\u041b\u044f \u0441\u0443\u0431-\u043a\u043e\u043d\u0442\u0440-\u043e\u043a\u0442\u0430\u0432\u044b, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f 27.5 \u0413\u0446) \u0434\u043e C8 (\u0414\u043e \u043f\u044f\u0442\u043e\u0439 \u043e\u043a\u0442\u0430\u0432\u044b, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 4186 \u0413\u0446). \u041a\u0430\u0436\u0434\u0430\u044f \u043e\u043a\u0442\u0430\u0432\u0430 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u0438 \u043d\u043e\u0442: <br \/>  \u0414\u043e, <b>\u0414\u043e-\u0434\u0438\u0435\u0437<\/b>, \u0420\u0435, <b>\u0420\u0435-\u0434\u0438\u0435\u0437<\/b>, \u041c\u0438, \u0424\u0430, <b>\u0424\u0430-\u0434\u0438\u0435\u0437<\/b>, \u0421\u043e\u043b\u044c, <b>\u0421\u043e\u043b\u044c-\u0434\u0438\u0435\u0437<\/b>, \u041b\u044f, <b>\u041b\u044f-\u0434\u0438\u0435\u0437\/\u0421\u0438-\u0431\u0435\u043c\u043e\u043b\u044c<\/b>, \u0421\u0438. \u0416\u0438\u0440\u043d\u044b\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0440\u044f\u0434\u0430, \u043e\u043d\u0438 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0447\u0435\u0440\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. <\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0434\u043d\u0430 \u043e\u043a\u0442\u0430\u0432\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b34\/e76\/6a8\/b34e766a82548897f6e928bedf8826e3.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0432 \u043d\u0430 <a href=\"http:\/\/www.gitaristam.ru\/school\/frequency.htm\">\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0447\u0430\u0441\u0442\u043e\u0442 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f \u043d\u043e\u0442<\/a>, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c: \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043e\u043a\u0442\u0430\u0432\u0430 \u0440\u043e\u0432\u043d\u043e \u0432\u0434\u0432\u043e\u0435 \u0432\u044b\u0448\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e:<\/p>\n<p>  Nx = N1 \u00d7 2<sup>x-1<\/sup>, \u0433\u0434\u0435:  <\/p>\n<ul>\n<li>N \u2013 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u043e\u0442\u044b;<\/li>\n<li>x \u2014 \u043d\u043e\u043c\u0435\u0440 \u043e\u043a\u0442\u0430\u0432\u044b (\u043e\u0442 0 \u0434\u043e 8);<\/li>\n<li>Nx, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0437\u0432\u0443\u043a\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043d\u043e\u0442\u0435 N \u043e\u043a\u0442\u0430\u0432\u044b x;<\/li>\n<\/ul>\n<p>  \u0412 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u0442 N1 \u0432\u043c\u0435\u0441\u0442\u043e N0 \u043b\u0438\u0448\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043d\u043e\u0442 \u0441\u0443\u0431-\u043a\u043e\u043d\u0442\u0440-\u043e\u043a\u0442\u0430\u0432\u044b (N0) \u0438\u043c\u0435\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f \u043d\u0438\u0436\u0435 \u043f\u043e\u0440\u043e\u0433\u0430 \u0441\u043b\u044b\u0448\u0438\u043c\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c \u0443\u0445\u043e\u043c (&lt; 20 Hz).<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u043e\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0447\u0438\u0441\u0442\u044b\u043c\u0438, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442 \u043d\u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043a\u0442\u0430\u0432\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u043e\u043d\u0438:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-202646","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202646"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202646\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}