Melting a mafic source results in a felsic to intermediate magma, while melting ultramafic (peridotite) rocks from the mantle should form basaltic magmas
When a molten body moves up through an existing basement rock, it assimilates rock (melts and incorporates elements from the surrounding rock), changing the magma composition
A rock dominated by olivine (and possibly few pyroxene) comes from an ultramafic source, while a mafic rock is dominated by pyroxeneandCa-richplagioclase with significant amount of amphibole, biotite and possibly olivine