| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sound: Multiply by window...</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: Multiply by window... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to multiply each selected <a href="Sound.html">Sound</a> object by a window shape.</p> |
| 15 | <h2>Settings</h2> |
| 16 | <dl> |
| 17 | <dt><b>Window shape</b> |
| 18 | <dd>one of 12 possible window shapes.</dd> |
| 19 | </dl> |
| 20 | <h2>Window shapes</h2> |
| 21 | <p>Suppose we have the following sound:</p> |
| 22 | <code> Create Sound from formula: "sweep", 1, 0.0, 0.1, 44100, ~ sin(2*pi*1000*x^2)<br></code> |
| 23 | <code> Draw: 0, 0, -1.0, 1.0, "yes", "curve"<br></code> |
| 24 | <p align=middle><img height=300 width=600 src=Sound__Multiply_by_window____1.png></p><p>The shape of a <b>Hanning window</b> is</p> |
| 25 | <code> Create Sound from formula: "window", 1, 0.0, 0.1, 44100, ~ 1<br></code> |
| 26 | <code> Multiply by window: "Hanning"<br></code> |
| 27 | <code> Draw: 0, 0, 0.0, 1.0, "yes", "curve"<br></code> |
| 28 | <p align=middle><img height=300 width=600 src=Sound__Multiply_by_window____2.png></p><p>If you multiply these with each other, the result will be</p> |
| 29 | <code> selectObject: "Sound sweep"<br></code> |
| 30 | <code> Multiply by window: "Hanning"<br></code> |
| 31 | <code> Draw: 0, 0, -1.0, 1.0, "yes", "curve"<br></code> |
| 32 | <p align=middle><img height=300 width=600 src=Sound__Multiply_by_window____3.png></p><p>In short:</p> |
| 33 | <p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____4.png></p><p>Other windows:</p> |
| 34 | <p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____5.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____6.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____7.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____8.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____9.png></p><p>The following one does nothing:</p> |
| 35 | <p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____10.png></p><p>These two have an effective duration that is 50 percent shorter:</p> |
| 36 | <p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____11.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____12.png></p><p>And these are narrower again:</p> |
| 37 | <p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____13.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____14.png></p><p align=middle><img height=250 width=750 src=Sound__Multiply_by_window____15.png></p><h3>Links to this page</h3> |
| 38 | <ul> |
| 39 | <li><a href="Sound__Extract_part___.html">Sound: Extract part...</a> |
| 40 | </ul> |
| 41 | <hr> |
| 42 | <address> |
| 43 | <p>© Paul Boersma 2024</p> |
| 44 | </address> |
| 45 | </body> |
| 46 | </html> |