6.7.31 SourceSelectorByID Outline of the node

This node is used to output only sound source separation results with IDs over a designated value among multiple sound source separation results. 0 ID are given to stationary noise specified by ConstantLocalization node. This node is used to filter the sounds other than this. Necessary files

No files are required. Usage

When to use

In case it is known that stationary noise exists, for example, performing sound source separation under conditions in which noise (e.g. the sound of the fan) is known and stationary, only separated sound other than stationary noise can be extracted by specifying the ID of the stationary noise in ConstantLocalization . In the ConstantLocalization node, the sound source ID can be controlled in its property, MIN_ID. So, the sound source ID for the stationary noise can be fixed as 0 by setting MIN_ID to 0 when the number of sound source of stationary noise is 1. The sound source ID of the separated sound corresponding to the stationary noise can be always set to 0 by connecting ConstantLocalization combined with LocalizeMUSIC , SourceTracker , CombineSource to GHDSS as shown in the figure 6.142. Only sound sources correspondig to separated sound other than stationary noise can be chosen since sound sources whose ID is 0 will be ignored if setting the MIN_ID to 1 after connecting SourceSelectorByID to GHDSS .

Typical connection

Figure 6.142 shows a example of a connection, in which the node is connected to the posterior half of GHDSS .

\includegraphics[width=\linewidth ]{fig/modules/SourceSelectorByID}
Figure 6.142: Example of connection of SourceSelectorByID Input-output and properties of the node



: Map<int, ObjectRef>  type. Since this node is usually connected after the sound source separation node is connected, sound source IDs correspond to int , the key of Map . ObjectRef is of Vector<float> type (power spectra) or Vector<complex<float> > (complex spectra), indicating a separation .



: Map<int, ObjectRef>  type. Only data with sound source IDs greater than MIN_ID are extracted as output. The content of Map is same as that of INPUT.


Table 6.137: Parameters of SourceSelectorByID 

Parameter name


Default value







Sound sources with IDs greater than this value are passed.


: int  type. Separated sounds with sound source IDs greater than this parameter value are passed. The default value is 0.