FileSignal.SaveSignalFile Method

procedure SaveSignalFile(a: TVecArray; FileName: string; Precision: TPrecision; FS: Double);

Stores an array of equal-length TVec channels to a signal file with TSignalWrite, in one of the supported formats TFileFormat.

#NameDescription
1aChannels to write
2all must be equal length.
3FileNameDestination path
4its extension selects the format.
5PrecisionOn-disk sample precision.
6FSSampling 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 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.