-
Notifications
You must be signed in to change notification settings - Fork 10
sig.signal
This operator basically loads waveform files, and displays and performs operations on the waveforms.
The output is a sig.Signal object.
-
file name: Make sure that you include the file extension when specifying the file name.
sig.signalcan read:- delimited text files: .txt, .dat, .csv (only numerical fields are taken into consideration)
- spreadsheet files: .xls, .xlsb, .xlsm, .xlsx, .xltm, .xltx, .ods (only numerical fields are taken into consideration)
- audio files: .wav, .ogg, .flac, .au, .aiff, .aif, .aifc, as well as .mp3, .m4a and .mp4 for Windows® 7 (or later), Macintosh, and Linux®
-
sig.Signalobject: for further transformations.- The output of
sig.signalis asig.Signalobject, which can be further transformed by calling againsig.signal. - If you have Matlab arrays that you would like to import as signals, create a
sig.Signalobject. You can then callsig.signalto perform additional operations on your signal.
- The output of
-
sig.designobject
-
sig.signal(…,‘Mix’)sums the multiple channels (for instance in a stereo track) into one single mono channel. This option can also be called by any other signal-based operator, such assig.spectrum, etc. -
sig.signal(…,‘Center’)centers the waveform. -
sig.signal(…,‘Sampling’,r)resamples at sampling rate r (in Hz). It uses the resample function from Signal Processing Toolbox. -
sig.signal(…,'Detrend',d)removes the trend from the signal, by setting all frequencies below d Hz to zeros. The high-pass filtering is carried out through FFT followed by IFFT. When'Detrend'is toggled on, the default value for d is 0.01 Hz. -
sig.signal(…,‘FWR’)performs a full wave rectification, by flipping the negative values into positive values (absolute values). -
sig.signal(…,‘Frame’,…)decomposes into frames. Cf.sig.framefor an explanation of the arguments. Default parameters: same as insig.frame, i.e., 50 ms and half-overlapping.
-
sig.signal(…,‘Extract’,t1,t2,u)extracts the signal between the datest1andt2, expressed in the unitu. Possible unitsu=‘s’(seconds, by default) oru=‘sp’(sample index, starting from 1).
Alternative keyword: ‘Excerpt’.
-
sig.signal(…,‘Trim’)trims the pseudo-silence beginning and end off the audio file.-
sig.signal(…,‘TrimThreshold’, t)specifies the trimming thresholdt. Silent frames are frames with RMS energy belowttimes the medium RMS of the whole audio file. Default value:t= 0.06. -
sig.signal(…, w)specifies where to trim. Possible keywords forw:’BothEnds’(default),’JustStart’,’JustEnd’.
-
-
sig.signal(…,‘Channel’,c)extracts the channels of index (or indices) c. c is either- a scalar (i.e., just one number), or
- a raw vector of two numbers, indicating the first and last index of a series of indices, or
- a column vector containing all indices to take into consideration.
-
sig.signal(…,‘FreqBand’,b)extracts the frequency bands of index (or indices) b. b follows the same convention as c above. -
sig.signal(…,‘Point’,p)extracts the points index (or indices) p. p is either- a scalar (i.e., just one number), or
- a vector containing all indices to take into consideration.
-
sig.signal(…,‘Dim’,d)extracts the dimension index (or indices) d. d is either- a scalar (i.e., just one number), or
- a vector containing all indices to take into consideration.