You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Classes > TSignalRead Class
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
TSignalRead Class

Reads a signal from the file.

Dew_Signal_TSignalReadDew_Signal_TSignalReadDew_Signal_TSignalReadDew_Signal_TSignalRead
Syntax
C#
Visual Basic
public class TSignalRead : TFileStorage;

FileSignal.cs

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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!