void SaveSignalFile(TVec[] a, String FileName, TPrecision Precision, Double FS)
Stores an array of equal-length TVec channels to a signal file with TSignalWrite, in one of the supported formats Dew.Signal.TFileFormat.
| # | Name | Description |
|---|---|---|
| 1 | a | Channels to write |
| 2 | all must be equal length. | |
| 3 | FileName | Destination path |
| 4 | its extension selects the format. | |
| 5 | Precision | On-disk sample precision. |
| 6 | FS | Sampling frequency written to the header. |
Result: stored in self (calling object)
Remarks:
The C channels in a are interleaved sample-by-sample into a single multiplexed record: output sample is written at position n C + c, so the on-disk layout is a_0[0], a_1[0], ..., a_(C-1)[0], a_0[1], ... . Every channel must have the same Length or the routine raises. The file format is taken from the FileName extension; Precision is the on-disk storage precision and FS is the sampling frequency stored in the header.