The high-mass IMF index, α3, versus the cloud-core density, ρcl (stars+gas). Symbols and lines as in Fig. 2. The gap between the GCs and UCDs seen in Fig. 2 vanishes and the IMF indices, α3, now form a single sequence as a function of ρcl: the IMF index at the high-mass end decreases (the IMF becomes flatter) with increasing density of the objects’ progenitor cloud core. It is canonical (α3= 2.3) below 9.5 × 104 M⊙ pc−3.