The initial composition of the magma is dictated by the composition of the source rock and the degree of partial melting. In general, melting of a mantle source (garnet peridotite) results in mafic/basaltic magmas. Melting of crustal sources yields more siliceous magmas.