void SaveSignalFile(const DewArray<TVec *> &a, DewString 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 TFileFormat.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | const DewArray<TVec *> & | Channels to write; all must be equal length. |
| 2 | FileName | DewString | Destination path; its extension selects the format. |
| 3 | Precision | TPrecision | On-disk sample precision. |
| 4 | FS | double | Sampling frequency written to the header. |
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.
Declared in Dew::Signal::Units::FileSignal · Dew.Signal/Units.FileSignal.h · Cross-compiler