| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Formulas 1.5. Formulas in settings windows</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 | Formulas 1.5. Formulas in settings windows |
| 13 | </b></font></table></table> |
| 14 | <p>Into numeric fields in settings windows you usually simply type a number. However, you can use any numeric expression instead.</p> |
| 15 | <p>For instance, suppose you want to create a Sound that contains exactly 10000 samples. If the sampling frequency is 44100 Hz, the duration will be 10000/44100 seconds. You can create such a Sound by choosing <a href="Create_Sound_from_formula___.html">Create Sound from formula...</a> from the <a href="New_menu.html">New menu</a>, then typing</p> |
| 16 | <code> 10000/44100<br></code> |
| 17 | <p>into the <b>End time</b> field.</p> |
| 18 | <p>Into text fields in settings windows, you can only type text directly; there is no way to use string expressions (except if you use scripts; see <a href="Formulas_1_8__Formulas_in_scripts.html">Formulas 1.8. Formulas in scripts</a>).</p> |
| 19 | <p>Into numeric vector fields in settings windows, you can type any numeric vector (array) expression.</p> |
| 20 | <h3>Links to this page</h3> |
| 21 | <ul> |
| 22 | <li><a href="Formulas.html">Formulas</a> |
| 23 | <li><a href="Formulas_1__My_first_formulas.html">Formulas 1. My first formulas</a> |
| 24 | </ul> |
| 25 | <hr> |
| 26 | <address> |
| 27 | <p>© ppgb 20170916</p> |
| 28 | </address> |
| 29 | </body> |
| 30 | </html> |