In this paper we describe the use of heteronuclear scalar couplings in solid-state NMR in order to generate multiple-quantum filtering (MQF) pulse sequences. These sequences can be used to edit CP/MAS spectra according to carbon multiplicity. Analytic expressions for the intensity of the MQF signals are obtained using the standard product operator formalism. Experiments that demonstrate the technique are shown in powder samples of camphor and a tripeptide. (C) 2001 Academic Press.