| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Sesam/LVS files</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 | Sesam/LVS files |
| 13 | </b></font></table></table> |
| 14 | <p>A way for storing a <a href="Sound.html">Sound</a> object on disk.</p> |
| 15 | <h2>File format</h2> |
| 16 | <p>The sound files used by the SESAM and LVS programs. Each sample is normally quantized into 12 bits.</p> |
| 17 | <h2>Reading</h2> |
| 18 | <p>To read a <b>Sound</b> from a Sesam file on disk, use <a href="Read_from_file___.html">Read from file...</a>. The file name is expected to end in ".sdf" or ".SDF".</p> |
| 19 | <p>The 12-bit sample values are divided by 2048 so that the amplitude of the resulting Sound is between -1.0 and +1.0.</p> |
| 20 | <p>The resulting <b>Sound</b> will appear in the List of Objects; its name will be equal to the file name, without extension.</p> |
| 21 | <p>If the sound was encoded in 16 bits per sample, you should divide by 16 after reading (with <code><font size=+1>Formula: ~ self / 16</font></code>)</p> |
| 22 | <h2>Saving</h2> |
| 23 | <p>With <b>Save as Sesam file...</b>. Praat then asks you for a file name. After you click OK, the samples of the Sound are multiplied by 2048 and quantized between -2048 and 2047; the result is written to the file in 12-bit LVS and Sesam format.</p> |
| 24 | <p>To avoid clipping, keep the absolute amplitude below 1.000. If the maximum sound pressure level is 91 dB (top = 2047), the quantization threshold is (top = 1/2) 19 dB.</p> |
| 25 | <p>If you prefer 16-bit encoding, you should multiply by 16 before saving (with <code><font size=+1>Formula: ~ self * 16</font></code>)</p> |
| 26 | <hr> |
| 27 | <address> |
| 28 | <p>© ppgb 20170828</p> |
| 29 | </address> |
| 30 | </body> |
| 31 | </html> |