6.7.31 SourceSelectorByID

6.7.31.1 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.

6.7.31.2 Necessary files

No files are required.

6.7.31.3 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.134. 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.134 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.134: Example of connection of SourceSelectorByID 

6.7.31.4 Input-output and properties of the node

Input

INPUT

: 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 .

Output

OUTPUT

: 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.

Parameter

Table 6.132: Parameters of SourceSelectorByID 

Parameter name

Type

Default value

Unit

Description

MIN_ID

int 

0

 

Sound sources with IDs greater than this value are passed.

MIN_ID

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