Reads the sound source correlation matrix from a file.
A file to save in CMSave format.
In what case is the node used?
Use when reading the correlation matrix of a sound source saved using CMSave .
Typical Examples
Figure 6.10 shows the usage example for the CMLoad node. FILENAMER and FILENAMEI are inouts with type string, indicating the files containing the real and imaginary parts respectively of the correlation matrix. OPERATION_FLAG is int type or bool type of input, and specifies when reading the correlation matrix is read. In the usage example, for all inputs of FILENAMER, FILENAMEI, OPERATION_FLAG, Constant nodes are connected. Parameters during run-time are constant, but the output of the constant node is dynamic and hence it is possible to change the correlation matrix used.
Parameter name |
Type |
Default |
Unit |
Description |
NB_CHANNELS |
8 |
Number of channels of the correlation matrix |
||
LENGTH |
512 |
Frame length |
||
ENABLE_DEBUG |
false |
ON/OFF of debugging information output |
Input
string type. Name of the file containing the real part of the correlation matrix.
string type. Name of the file containing the imaginary part of the correlation matrix.
int type or bool type. Only when this input terminal is 1 or when true, and the filename changes, the correlation matrix is read.
Output
Matrix<complex<float> > type. A correlation matrix for each frequency bin. A -th order complex square array with correlation matrix outputs items. Matrix<complex<float> > contains rows corresponding to frequency ( rows), and columns containing the complex correlation matrix ( columns across).
Parameter
int type. Number of channels for input signal. Equivalent to the order of the correlation matrix. Default value is 8. Must be matched with the order of the correlation matrix at the time of saving.
int type. Default value is 512. FFT points at the time of Fourier transform. Must be matched with the FFT points at the time of saving.
bool type. Default value is false. When true, it is output to the standard output when reading the correlation matrix.
-th order complex square array for each frequency bin with the correlation matrix’s real and imaginary parts is read as a Matrix<float> type from the respective files. If the number of frequency bins is , and (), then each read file consists of rows and columns. Reading is performed only when OPERATION_FLAG is 1 or true, and immediately after network operation, or when the read filename is changed.