| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sounds: Paint enclosed...</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 | Sounds: Paint enclosed... |
| 13 | </b></font></table></table> |
| 14 | <p>Paints the area between the two selected <a href="Sound.html">Sound</a>s. </p> |
| 15 | <h2>Settings</h2> |
| 16 | <p align=middle><img height=300 width=540 src=Sounds__Paint_enclosed____1.png></p><dl> |
| 17 | <dt><b>Colour</b> |
| 18 | <dd>defines the <a href="Colour.html">colour</a> of the paint.</dd> |
| 19 | <dt><b>Time range (s)</b> |
| 20 | <dd>selects the time domain for the drawing.</dd> |
| 21 | <dt><b>Vertical range</b> |
| 22 | <dd>defines the vertical limits, larger amplitudes will be clipped.</dd> |
| 23 | </dl> |
| 24 | <h2>Example</h2> |
| 25 | <p>The following script paints the area enclosed between a sine tone of 5 Hz and the straight line <i>y</i> = <i>x</i>/2.</p> |
| 26 | <code> s1 = Create Sound from formula: "sine", "Mono", 0, 1, 10000, ~ 1/2 * sin(2*pi*5*x)"<br></code> |
| 27 | <code> s2 = Create Sound from formula: "line", "Mono", 0, 1, 10000, ~ x / 2<br></code> |
| 28 | <code> plusObject (s1)<br></code> |
| 29 | <code> Paint enclosed: "Grey", 0, 0, -1, 1, ~ yes<br></code> |
| 30 | <p align=middle><img height=200 width=400 src=Sounds__Paint_enclosed____2.png></p><hr> |
| 31 | <address> |
| 32 | <p>© djmw 20170829</p> |
| 33 | </address> |
| 34 | </body> |
| 35 | </html> |