FileSignal::SaveSignalFile Function

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.

#NameTypeDescription
1aconst DewArray<TVec *> &Channels to write; all must be equal length.
2FileNameDewStringDestination path; its extension selects the format.
3PrecisionTPrecisionOn-disk sample precision.
4FSdoubleSampling frequency written to the header.
Remarks:

The C channels in a are interleaved sample-by-sample into a single multiplexed record: output sample a[c][n]a[c][n] 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