WaveWarp Users' Guide: last updated 28 February 2002
  

9.2-- ASCII file format for wavetable storage |
 
|
In order for you to produce WaveWarp-readable wavetable files from an application other than MATLAB, the appropriate file specifications are included below. The file format is straightforward. All wavetable coefficients are stored in floating point double-precision (64 bit) format (although WaveWarp truncates them to 32 bit format for real-time processing).
There is no requirement on the filename or the filename extension. However, to avoid confusion it is advisable to stick to the default extension ".txt" as appears by default in the WaveWarp file I/O dialog boxes.
The same wavetable file format is used for actual wavetables (e.g. as used in various audio and control signal generators) , for wave-shaping tables (e.g. as used in the Wave Shaper distortion component), and for spectrum-shaping weighting functions (e.g. as used in the Spectrum Shaper component).
The table entries are stored in the ASCII file as described in Table 11.
Table 11 ASCII file structure for storing wavetables readable by WaveWarp
Line number
|
Entry
|
Notes
|
1
|
WW_WAVETABLE_TXT
|
ID description of the table (string variable type).
|
2
|
N
|
Length of the wavetable (integer variable type).
|
3 to N+2
|
W(1) to W(N)
|
Wavetable entries (double variable type).
|
See for example the files in the "wwtables/demo" sub-directory of the WaveWarp root directory.

   
|