You are here: Symbol Reference > FileSignal Namespace > Classes > TSignalRead Class
DSP Master VCL
ContentsIndex
PreviousUpNext
TSignalRead Class

Reads a signal from the file.

FileSignal_TSignalReadFileSignal_TSignalReadFileSignal_TSignalReadFileSignal_TSignalReadFileSignal_TSignalRead
Pascal
TSignalRead = class(TFileStorage);

TSignalRead is probably the most important component to understand in order to make effective use of other signal processing components. 

Use TSignalRead to read wav, binary and text files and provide streaming capabilities with frame navigation and overlapp support. The read data is placed in the Data property and its sample count is determined with the Length property. Once a file is opened, the key properties immediatelly contain all the necessary information about the file size, number of records, data type etc... 

You can connect the component to other components which have an Input property. Example: SpectrumAnalyzer.Input = SignalRead; By calling SpectrumAnalyzer.Pull data will be read from the file and a frequency spectrum will be computed.

Read multichannel files:

SignalRead.FileName := MyFile.wav;
SignalRead.OpenFile;
SignalDemuxList.Input := SignalRead;
SignalDemuxList.Pull;

//now we have demulitplexed data stored in:
//SignalDemuxList[0].Data
//SignalDemuxList[1].Data
//..
//SignalDemuxList[SignalRead.ChannelCount-1].Data
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!