6.7.5 MatrixToMap

6.7.5.1 Outline of the node

This node converts Matrix<float> type and Matrix<complex<float> > type data into Map<int, ObjectRef> type data.

6.7.5.2 Necessary files

No files are required.

6.7.5.3 Usage

When to use

This node is used when the input is connected to nodes that accept only Map<int, ObjectRef> type, such as PreEmphasis , MelFilterBank or SaveRawPCM .

Typical connection

Figures 6.88 and 6.89 show connection examples for the MatrixToMap node. In Figure 6.88, the speech waveform data is taken from microphones in the AudioStreamFromMic node, necessary channels are sorted in the ChannelSelector node and Matrix<float> type data are converted into the Map<int, ObjectRef> type using the MatrixToMap node.

The output is connected to the SaveRawPCM node, and waveforms are saved as files. Figure 6.89 shows the usage of Map<int, ObjectRef> type to obtain waveform spectra as a Map<int, ObjectRef> . The MultiFFT node can be connected to either side of MatrixToMap .

\includegraphics[width=.9\textwidth ]{fig/modules/MatrixToMap-1}
Figure 6.88: Example of a connection to MatrixToMap 

\includegraphics[width=.9\textwidth ]{fig/modules/MatrixToMap-2}
Figure 6.89: Example of a connection of MatrixToMap to MultiFFT 

6.7.5.4 Input-output and property of the node

Input

INPUT

: Matrix<float> or Matrix<complex<float> > types.

Output

OUTPUT

: Map<int, ObjectRef> type. The structure of the same ID for input data.

Parameter No parameters.

6.7.5.5 Details of the node

ID: Values of ID are always 0.